{
  "info": {
    "name": "Adwix Atlas API v1",
    "description": "Public REST API for Adwix Atlas. Set the `apiKey` collection variable to your workspace key (Settings → Integrations → API Keys). Docs: https://adwixatlas.com/platform/rest-api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{apiKey}}", "type": "string" }]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://adwixatlas.com/api/v1" },
    { "key": "apiKey", "value": "aa_live_YOUR_KEY_HERE" }
  ],
  "item": [
    {
      "name": "Leads",
      "item": [
        {
          "name": "List leads",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/leads?limit=25&offset=0",
              "host": ["{{baseUrl}}"],
              "path": ["leads"],
              "query": [
                { "key": "limit", "value": "25" },
                { "key": "offset", "value": "0" },
                { "key": "status", "value": "new", "disabled": true }
              ]
            }
          }
        },
        {
          "name": "Create lead",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{baseUrl}}/leads", "host": ["{{baseUrl}}"], "path": ["leads"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Rahul Sharma\",\n  \"phone\": \"+91 98765 43210\",\n  \"email\": \"rahul@example.com\",\n  \"destination\": \"Bali\",\n  \"budget\": 150000,\n  \"pax\": 2,\n  \"travel_date\": \"12 Aug 2026\",\n  \"source\": \"api\",\n  \"notes\": \"Created from Postman\"\n}"
            }
          }
        },
        {
          "name": "Fetch one lead",
          "request": {
            "method": "GET",
            "url": { "raw": "{{baseUrl}}/leads/:id", "host": ["{{baseUrl}}"], "path": ["leads", ":id"], "variable": [{ "key": "id", "value": "" }] }
          }
        }
      ]
    },
    {
      "name": "Customers",
      "item": [
        {
          "name": "List customers",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/customers?limit=25&offset=0",
              "host": ["{{baseUrl}}"],
              "path": ["customers"],
              "query": [
                { "key": "limit", "value": "25" },
                { "key": "offset", "value": "0" },
                { "key": "search", "value": "", "disabled": true }
              ]
            }
          }
        },
        {
          "name": "Create customer",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{baseUrl}}/customers", "host": ["{{baseUrl}}"], "path": ["customers"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Rahul Sharma\",\n  \"phone\": \"+91 98765 43210\",\n  \"email\": \"rahul@example.com\",\n  \"address\": \"Andheri West, Mumbai\",\n  \"state\": \"Maharashtra\",\n  \"tags\": [\"honeymoon\"]\n}"
            }
          }
        },
        {
          "name": "Fetch one customer",
          "request": {
            "method": "GET",
            "url": { "raw": "{{baseUrl}}/customers/:id", "host": ["{{baseUrl}}"], "path": ["customers", ":id"], "variable": [{ "key": "id", "value": "" }] }
          }
        }
      ]
    }
  ]
}
