{
  "info": {
    "name": "Viral Hooks Public API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://api.viralhooks.org/v1" },
    { "key": "apiKey", "value": "YOUR_API_KEY" }
  ],
  "item": [
    {
      "name": "Render — script to video",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "key", "value": "{{apiKey}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"workflow\": \"script-to-video\",\n  \"source\": { \"text\": \"Did you know honey never spoils?\" },\n  \"hook\": { \"slug\": \"flip-on-head\" },\n  \"webhookUrl\": \"https://your-server.com/viralhooks/webhook\"\n}"
        },
        "url": "{{baseUrl}}/render"
      }
    },
    {
      "name": "Render — prompt to video",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "key", "value": "{{apiKey}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"workflow\": \"prompt-to-video\",\n  \"source\": { \"prompt\": \"Street interview reaction, vertical 9:16\" },\n  \"options\": { \"durationSec\": 10 }\n}"
        },
        "url": "{{baseUrl}}/render"
      }
    },
    {
      "name": "Status",
      "request": {
        "method": "GET",
        "header": [{ "key": "key", "value": "{{apiKey}}" }],
        "url": "{{baseUrl}}/status?pid=YOUR_PID"
      }
    },
    {
      "name": "Estimate credits",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "key", "value": "{{apiKey}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"workflow\": \"prompt-to-video\",\n  \"source\": { \"prompt\": \"Street interview reaction, 9:16\" },\n  \"options\": { \"durationSec\": 10 }\n}"
        },
        "url": "{{baseUrl}}/estimate"
      }
    }
  ]
}
