{
  "info": {
    "name": "WaitForge Public API",
    "description": "Public, unauthenticated WaitForge API. Set the {{slug}} variable to your waitlist slug and {{turnstile}} to a Cloudflare Turnstile token. Docs: https://waitforge.com/docs/api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://waitforge.com"
    },
    {
      "key": "slug",
      "value": "your-slug"
    },
    {
      "key": "turnstile",
      "value": "TURNSTILE_TOKEN"
    }
  ],
  "item": [
    {
      "name": "Get waitlist config",
      "request": {
        "method": "GET",
        "header": [],
        "description": "Public config for a waitlist (title, theme, fields, Turnstile site key). Edge-cached 60s.",
        "url": {
          "raw": "{{baseUrl}}/api/public/{{slug}}/config",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "public",
            "{{slug}}",
            "config"
          ]
        }
      }
    },
    {
      "name": "Create signup",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "description": "Add a signup. email + turnstile required; name/company/twitter optional. Returns position + referral code (or duplicate:true for an already-registered email).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"alice@example.com\",\n  \"name\": \"Alice\",\n  \"turnstile\": \"{{turnstile}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/public/{{slug}}/signup",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "public",
            "{{slug}}",
            "signup"
          ]
        }
      }
    }
  ]
}