{
  "info": {
    "name": "OGPeek API",
    "description": "Dynamic OG Image Generation API. Generate beautiful Open Graph images for social media previews with a single API call.\n\nBase URL: https://todd-agent-prod.web.app\nDocs: https://todd-agent-prod.web.app/docs\nPricing: https://todd-agent-prod.web.app/pricing\n\nFree tier: 50 images/day (watermarked)\nStarter: $9/mo — 10,000 images/month, no watermark\nPro: $29/mo — 50,000 images/month, custom fonts",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "1.0.0"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://todd-agent-prod.web.app",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Health Check",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/health",
          "host": ["{{baseUrl}}"],
          "path": ["api", "health"]
        },
        "description": "Check API status and version."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"status\":\"ok\",\"version\":\"1.0.0\"}"
        }
      ]
    },
    {
      "name": "Generate OG Image (Free Tier)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/v1/og?title=My%20Awesome%20Project&subtitle=Build%20something%20great&template=gradient&theme=dark&brandColor=%236366F1",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "og"],
          "query": [
            { "key": "title", "value": "My Awesome Project", "description": "Main title text (required)" },
            { "key": "subtitle", "value": "Build something great", "description": "Subtitle text (optional)" },
            { "key": "template", "value": "gradient", "description": "Template: basic, gradient, split, hero, editorial, modern, minimal" },
            { "key": "theme", "value": "dark", "description": "Theme: dark, light, midnight, sunset, ocean" },
            { "key": "brandColor", "value": "#6366F1", "description": "Brand accent color (hex)" },
            { "key": "logo", "value": "", "description": "Logo URL (optional)", "disabled": true }
          ]
        },
        "description": "Generate a watermarked OG image (free tier, 50/day). Returns a 1200x630 PNG image."
      }
    },
    {
      "name": "Generate OG Image (Paid Tier)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"My Awesome Project\",\n  \"subtitle\": \"Build something great\",\n  \"template\": \"gradient\",\n  \"theme\": \"dark\",\n  \"brandColor\": \"#6366F1\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/og",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "og"]
        },
        "description": "Generate a full-quality OG image (no watermark). Requires API key. Returns a 1200x630 PNG image."
      }
    },
    {
      "name": "Create API Key",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"you@example.com\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/keys",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "keys"]
        },
        "description": "Create a free API key. Returns the key and plan info."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"apiKey\":\"ogp_abc123...\",\"plan\":\"free\",\"limit\":\"50 requests/day\"}"
        }
      ]
    },
    {
      "name": "Check Usage",
      "request": {
        "method": "GET",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}", "type": "text" }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/usage",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "usage"]
        },
        "description": "Check your current usage stats (requests today, this month, plan)."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"plan\":\"free\",\"requestsToday\":12,\"requestsThisMonth\":145}"
        }
      ]
    },
    {
      "name": "Create Checkout Session",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"plan\": \"starter\",\n  \"email\": \"you@example.com\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/checkout",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "checkout"]
        },
        "description": "Create a Stripe checkout session to upgrade. Plans: starter ($9/mo), pro ($29/mo)."
      }
    }
  ]
}
