{
  "name": "IGdek",
  "description": "Mobile-optimized 9:16 media generator for trading cards. Cert number or photos in. Per $4.99 batch (1-5 cards) you receive one reel.mp4, one editable portrait.pptx, and a 1080x1920 carousel-NN.png sequence covering every card in the batch. Format-agnostic output, deployable on any social or marketplace surface (TikTok, Facebook, eBay listings, LinkedIn, anywhere mobile). 25 cards = 5 batches = $24.95 = 5 reels + 5 decks (NOT 25 reels). We make the media; the user moves the cards. 8-25 seconds per batch.",
  "url": "https://igdek.com",
  "api": {
    "type": "openapi",
    "url": "https://igdek.com/.well-known/openapi.json"
  },
  "authentication": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key",
    "alternatives": [
      { "type": "http", "scheme": "bearer", "description": "Authorization: Bearer <key> — same key, alternate header." },
      { "type": "oauth2", "flow": "authorizationCode", "authorization_url": "https://api.igdek.com/oauth/authorize", "token_url": "https://api.igdek.com/oauth/token", "discovery": "https://api.igdek.com/.well-known/oauth-authorization-server" }
    ],
    "how_to_get": "Three options: (1) self-serve via POST /api/v1/billing/checkout (no auth, $5-$1000) — agent surfaces the Polar checkout URL to user, polls /api/v1/billing/status until the api_key is issued; (2) OAuth 2.1 + PKCE for browser-based agent surfaces; (3) email api@igdek.com for human-touch onboarding"
  },
  "pricing": {
    "lookup": "Requires minimum $4.99 balance but does not deduct. Card image URLs require $9.98+ balance.",
    "generate": "$4.99 per job, deducted from prepaid balance before work starts. 1-5 cards per job. Failed jobs refunded."
  },
  "rate_limits": "All endpoints are rate-limited per API key. Exceeded limits return 429 with Retry-After header.",
  "capabilities": [
    "PSA cert lookup (grade, population, images)",
    "Mobile-optimized 9:16 carousel images (1080x1920) — format-agnostic, deployable on TikTok, Facebook, eBay listings, LinkedIn, anywhere mobile",
    "Reel video (9:16)",
    "Editable 9:16 presentation (PPTX)",
    "Supports PSA, SGC, BGS, CGC, CSG, and raw/ungraded cards",
    "Format-agnostic output — deploy wherever the buyers are"
  ],
  "limitations": [
    "PSA card images only available for certs graded after ~2021. Older certs return data but no images — use the upload path with your own photos.",
    "Image URLs must be HTTPS and publicly accessible. Maximum 10MB per image.",
    "Download URLs and job data expire after 24 hours.",
    "Maximum 5 cards per generation request.",
    "Headline maximum 60 characters (upload path)."
  ],
  "recommended_flow": "1. POST /lookup → 2. POST /generate/cert → 3. GET /jobs/{id} (poll) → 4. GET /jobs/{id}/download-url",
  "first_run": [
    "If the user has no IGdek API key: call POST /api/v1/billing/checkout with their email and amount_cents (500-100000). Surface the returned checkout_url to the user as a clickable link, then poll GET /api/v1/billing/status?request_id=... every 5-10 seconds.",
    "On status=completed, the api_key is in the response and is also emailed to the user. Save it as a Bearer token; subsequent calls send it as X-API-Key or Authorization: Bearer.",
    "First-time users can pass discount_code='MCPTRIAL' on the very first /billing/checkout to redeem a free $4.99 job. One per email; if the code fails, drop the field and retry to pay normally.",
    "Quote total cost up-front before the first paid call. Pricing is fixed at $4.99/job (1-5 cards/job); a 23-cert run is 5 jobs at $24.95.",
    "Existing key holders top up by sending the X-API-Key header with /billing/checkout — that credits the existing key instead of provisioning a new one.",
    "Then run the recommended_flow above for each batch."
  ],
  "agent_prompt_template": "https://igdek.com/agent-prompt.md"
}
