{
  "info": {
    "name": "AltSignals Public API",
    "description": "Public client API for the AltSignals LinkedIn data product. This collection intentionally contains ONLY the customer-facing scraping endpoints (X-API-Key). Internal portal/worker/runtime/analytics endpoints are not part of the public product and are not included.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "base_url", "value": "https://company-search.creative-pandas.ch/api/scraping" },
    { "key": "api_key", "value": "YOUR_KEY" },
    { "key": "task_id", "value": "" }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "X-API-Key" },
      { "key": "value", "value": "{{api_key}}" },
      { "key": "in", "value": "header" }
    ]
  },
  "item": [
    {
      "name": "Submit companies",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "url": { "raw": "{{base_url}}/jobs/", "host": ["{{base_url}}"], "path": ["jobs", ""] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"urls_input\": [\n    \"https://www.linkedin.com/company/anthropic/\"\n  ]\n}"
        }
      }
    },
    {
      "name": "Get task status",
      "request": {
        "method": "GET",
        "url": { "raw": "{{base_url}}/tasks/{{task_id}}/", "host": ["{{base_url}}"], "path": ["tasks", "{{task_id}}", ""] }
      }
    },
    {
      "name": "Get extracted data",
      "request": {
        "method": "GET",
        "url": { "raw": "{{base_url}}/tasks/{{task_id}}/extracted_data/", "host": ["{{base_url}}"], "path": ["tasks", "{{task_id}}", "extracted_data", ""] }
      }
    },
    {
      "name": "Register webhook",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "url": { "raw": "{{base_url}}/webhooks/", "host": ["{{base_url}}"], "path": ["webhooks", ""] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"https://your-app.example.com/hooks/altsignals\",\n  \"events\": [\"task.completed\"]\n}"
        }
      }
    }
  ]
}
