{
  "info": {
    "name": "Ranklify API",
    "description": "Generate platform-optimized product listings for Amazon, Shopify, and WooCommerce. Set the collection variables `baseUrl` and `apiKey`, then send. Docs: https://www.getranklify.com/developers",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://www.getranklify.com", "type": "string" },
    { "key": "apiKey", "value": "lfy_YOUR_KEY", "type": "string" }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{apiKey}}", "type": "string" }]
  },
  "item": [
    {
      "name": "Generate listing",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "url": { "raw": "{{baseUrl}}/api/v1/generate", "host": ["{{baseUrl}}"], "path": ["api", "v1", "generate"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"product_name\": \"Stainless Steel Pour-Over Kettle\",\n  \"features\": \"Gooseneck spout, 1L, food-grade steel, keeps heat\",\n  \"platform\": \"amazon\",\n  \"tone\": \"Professional\"\n}"
        },
        "description": "Requires an Agency-plan API key. Optional body fields: category, price, customer, competitors, brand_id."
      }
    },
    {
      "name": "Generate listing (Shopify example)",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "url": { "raw": "{{baseUrl}}/api/v1/generate", "host": ["{{baseUrl}}"], "path": ["api", "v1", "generate"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"product_name\": \"Organic Cotton Baby Blanket\",\n  \"features\": \"GOTS certified organic cotton, breathable, machine washable\",\n  \"category\": \"Baby\",\n  \"tone\": \"Friendly\",\n  \"platform\": \"shopify\"\n}"
        }
      }
    }
  ]
}
