{
  "info": {
    "_postman_id": "a1b2c3d4-small-server-0001-0000-000000000001",
    "name": "Small-Server",
    "description": "Set base_url (defaults to the live Fly app) and api_key in collection variables. Public requests need no key; secure requests use X-API-Key. Claire gateways are mocks. Use only synthetic test data.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Meta",
      "description": "Health check, docs, and schema introspection.",
      "item": [
        {
          "name": "Health Check",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('status = ok', () => pm.expect(pm.response.json().status).to.eql('ok'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/health",
            "description": "Liveness probe. Returns `{\"status\":\"ok\"}`."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"ok\"\n}"
            }
          ]
        },
        {
          "name": "Swagger Docs (HTML)",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/docs",
            "description": "Interactive Swagger UI \u2014 open in a browser."
          }
        },
        {
          "name": "OpenAPI Schema",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/openapi.json",
            "description": "Raw OpenAPI 3.x schema."
          }
        }
      ]
    },
    {
      "name": "HTTP Lab",
      "description": "Public endpoints for exercising HTTP client behavior. Echo redacts Authorization, Cookie, and X-API-Key values; request bodies are capped at 1 MiB.",
      "item": [
        {
          "name": "Echo GET",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/lab/echo",
            "description": "Echo method, path, query, headers, body, parsed JSON, and byte count."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('method echoed', () => pm.expect(pm.response.json().method).to.eql('GET'));",
                  "pm.test('query values are arrays', () => pm.expect(pm.response.json().query).to.be.an('object'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Echo POST JSON",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}/lab/echo",
            "description": "Echo JSON and raw request details.",
            "body": {
              "mode": "raw",
              "raw": "{\"lab\":true,\"items\":[1,2]}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('POST echoed', () => pm.expect(pm.response.json().method).to.eql('POST'));",
                  "pm.test('parsed JSON echoed', () => pm.expect(pm.response.json().json).to.eql({lab:true,items:[1,2]}));"
                ]
              }
            }
          ]
        },
        {
          "name": "Echo PUT",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}/lab/echo",
            "description": "Echo a raw JSON request body.",
            "body": {
              "mode": "raw",
              "raw": "{\"method\":\"put\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('PUT echoed', () => pm.expect(pm.response.json().method).to.eql('PUT'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Echo PATCH",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}/lab/echo",
            "description": "Echo a raw JSON request body.",
            "body": {
              "mode": "raw",
              "raw": "{\"method\":\"patch\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('PATCH echoed', () => pm.expect(pm.response.json().method).to.eql('PATCH'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Echo DELETE",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": "{{base_url}}/lab/echo",
            "description": "Echo a DELETE request."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('DELETE echoed', () => pm.expect(pm.response.json().method).to.eql('DELETE'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Echo HEAD",
          "request": {
            "method": "HEAD",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{base_url}}/lab/echo",
            "description": "HEAD returns the same response headers without a response body."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));"
                ]
              }
            }
          ]
        },
        {
          "name": "Return status 418",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/lab/status/418",
            "description": "Return the requested HTTP status code with a JSON status/message body."
          },
          "response": []
        },
        {
          "name": "Status 204 (no body)",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/lab/status/204",
            "description": "Return 204 No Content without a response body."
          },
          "response": []
        },
        {
          "name": "Delay 250 ms",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/lab/delay/250",
            "description": "Wait 250 milliseconds, then return {delay_ms,status}. Delay range is 0\u201310000 ms."
          },
          "response": []
        },
        {
          "name": "Redirect to echo",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/lab/redirect",
            "description": "Redirect to a local absolute path. Defaults to /lab/echo with code 302."
          },
          "response": []
        },
        {
          "name": "Conditional cache",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "If-None-Match",
                "value": "\"small-server-v1\""
              }
            ],
            "url": "{{base_url}}/lab/cache",
            "description": "Return the cached response and ETag. Set If-None-Match: \"small-server-v1\" to receive 304."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('ETag set', () => pm.expect(pm.response.headers.get('ETag')).to.eql('\\\"small-server-v1\\\"'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Conditional cache (304)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "If-None-Match",
                "value": "*"
              }
            ],
            "url": "{{base_url}}/lab/cache",
            "description": "Matching If-None-Match returns 304 with no body."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('ETag may be set to check 304', () => pm.expect(pm.response.code).to.be.oneOf([200,304]));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Public",
      "description": "Unauthenticated endpoints. Accept and return any JSON payload. No auth header needed.",
      "item": [
        {
          "name": "List public items",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('returns array', () => pm.expect(pm.response.json()).to.be.an('array'));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/public/items",
            "description": "Return all public items, newest first."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"id\": 1,\n    \"payload\": { \"event\": \"user.signup\", \"tags\": [\"new\"] },\n    \"scope\": \"public\",\n    \"created_at\": \"2026-06-30 01:22:01\"\n  }\n]"
            }
          ]
        },
        {
          "name": "Create public item (any JSON)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('201 Created', () => pm.response.to.have.status(201));",
                  "pm.test('echoes payload', () => {",
                  "    const sent = JSON.parse(pm.request.body.raw);",
                  "    pm.expect(pm.response.json().payload).to.eql(sent);",
                  "});"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"user.signup\",\n  \"user\": {\n    \"id\": 42,\n    \"email\": \"a@b.com\"\n  },\n  \"tags\": [\"new\", \"trial\"]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": "{{base_url}}/public/items",
            "description": "Store ANY valid JSON payload \u2014 objects, arrays, nested structs, strings, numbers, booleans, or null. Stored verbatim and echoed back. No auth required."
          },
          "response": [
            {
              "name": "201 Created",
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1,\n  \"payload\": {\n    \"event\": \"user.signup\",\n    \"user\": { \"id\": 42, \"email\": \"a@b.com\" },\n    \"tags\": [\"new\", \"trial\"]\n  },\n  \"scope\": \"public\",\n  \"created_at\": \"2026-06-30 01:22:01\"\n}"
            }
          ]
        },
        {
          "name": "Read one public item",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404]));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [],
            "body": null,
            "url": "{{base_url}}/public/items/1",
            "description": "Get a single public item by id. Returns 404 if not found."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 1,\n  \"payload\": { \"event\": \"user.signup\" },\n  \"scope\": \"public\",\n  \"created_at\": \"2026-07-02 12:00:00\"\n}"
            }
          ]
        },
        {
          "name": "Update public item (PUT)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404]));",
                  "if (pm.response.code === 200) { pm.test('payload updated', () => pm.expect(pm.response.json().payload.event).to.eql('user.updated')); }"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"user.updated\",\n  \"updated\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": "{{base_url}}/public/items/1",
            "description": "Replace a public item's payload with any new JSON. Returns the updated item, or 404."
          },
          "response": []
        },
        {
          "name": "Delete public item",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404]));",
                  "if (pm.response.code === 200) { pm.test('deleted shape', () => pm.expect(pm.response.json().status).to.eql('deleted')); }"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "DELETE",
            "header": [],
            "body": null,
            "url": "{{base_url}}/public/items/1",
            "description": "Delete a single public item by id. Returns {status:deleted, id} or 404."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"deleted\",\n  \"id\": 1\n}"
            }
          ]
        },
        {
          "name": "Clear all public items",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('cleared shape', () => pm.expect(pm.response.json().status).to.eql('cleared'));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "DELETE",
            "header": [],
            "body": null,
            "url": "{{base_url}}/public/items",
            "description": "Delete every public item. Returns {status:cleared, scope, removed:N}."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"cleared\",\n  \"scope\": \"public\",\n  \"removed\": 3\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Secure",
      "description": "API-key-protected endpoints. Each request includes X-API-Key: {{api_key}}.",
      "item": [
        {
          "name": "List secure items",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('200 OK', () => pm.response.to.have.status(200));",
                  "pm.test('returns array', () => pm.expect(pm.response.json()).to.be.an('array'));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "url": "{{base_url}}/secure/items",
            "description": "Return all secure items. Requires header X-API-Key: {{api_key}}."
          },
          "response": [
            {
              "name": "200 OK",
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"id\": 2,\n    \"payload\": { \"secret\": \"data\", \"ts\": 1690000000 },\n    \"scope\": \"secure\",\n    \"created_at\": \"2026-06-30 01:22:01\"\n  }\n]"
            }
          ]
        },
        {
          "name": "Create secure item (any JSON)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('201 Created', () => pm.response.to.have.status(201));",
                  "pm.test('scope = secure', () => pm.expect(pm.response.json().scope).to.eql('secure'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"secret\": \"data\",\n  \"ts\": 1690000000,\n  \"nested\": { \"ok\": true }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": "{{base_url}}/secure/items",
            "description": "Store ANY valid JSON payload under the secure scope. Requires header X-API-Key: {{api_key}}."
          },
          "response": [
            {
              "name": "201 Created",
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"id\": 2,\n  \"payload\": { \"secret\": \"data\", \"ts\": 1690000000, \"nested\": { \"ok\": true } },\n  \"scope\": \"secure\",\n  \"created_at\": \"2026-06-30 01:22:01\"\n}"
            },
            {
              "name": "401 Unauthorized (missing key)",
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"detail\": \"Invalid or missing API key. Send header 'X-API-Key'.\"\n}"
            }
          ]
        },
        {
          "name": "Read one secure item",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404, 401]));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "body": null,
            "url": "{{base_url}}/secure/items/1",
            "description": "Get a single secure item by id. Requires X-API-Key."
          },
          "response": []
        },
        {
          "name": "Update secure item (PUT)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404, 401]));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"secret\": \"updated\",\n  \"ts\": 1690000001\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": "{{base_url}}/secure/items/1",
            "description": "Replace a secure item's payload. Requires X-API-Key."
          },
          "response": []
        },
        {
          "name": "Delete secure item",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 404, 401]));"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "body": null,
            "url": "{{base_url}}/secure/items/1",
            "description": "Delete a single secure item by id. Requires X-API-Key."
          },
          "response": []
        },
        {
          "name": "Clear all secure items",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('status', () => pm.expect(pm.response.code).to.be.oneOf([200, 401]));",
                  "if (pm.response.code === 200) { pm.test('cleared shape', () => pm.expect(pm.response.json().status).to.eql('cleared')); }"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              }
            ],
            "body": null,
            "url": "{{base_url}}/secure/items",
            "description": "Delete every secure item. Requires X-API-Key."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Uploads (Cloudflare R2)",
      "description": "R2 must be configured on the server; upload body is raw, not multipart. This folder uses its own API-key auth; edit the folder key to match API_KEY.",
      "item": [
        {
          "name": "Configuration status",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/secure/uploads/status",
            "description": "Check whether all R2 settings are present and read the 10 MiB upload limit. Credentials are never returned."
          },
          "response": []
        },
        {
          "name": "List uploads",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/secure/uploads",
            "description": "List up to 100 files in the application uploads/ prefix. Add cursor=<opaque> to the URL for another page."
          },
          "response": []
        },
        {
          "name": "Upload raw file bytes",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/octet-stream"
              }
            ],
            "url": "{{base_url}}/secure/uploads?filename=example.txt",
            "description": "Send nonempty raw bytes (not multipart/form-data), at most 10 MiB. Replace the body with the file content.",
            "body": {
              "mode": "raw",
              "raw": "Small-Server R2 upload example",
              "options": {
                "raw": {
                  "language": "text"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Download upload",
          "request": {
            "method": "GET",
            "header": [],
            "url": "{{base_url}}/secure/uploads/0123456789abcdef0123456789abcdef-example.txt",
            "description": "Replace the sample object key with the key returned by Upload raw file bytes."
          },
          "response": []
        },
        {
          "name": "Inspect upload headers",
          "request": {
            "method": "HEAD",
            "header": [],
            "url": "{{base_url}}/secure/uploads/0123456789abcdef0123456789abcdef-example.txt",
            "description": "Replace the sample object key with an uploaded file key."
          },
          "response": []
        },
        {
          "name": "Delete upload",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": "{{base_url}}/secure/uploads/0123456789abcdef0123456789abcdef-example.txt",
            "description": "Idempotently delete the file (204). Replace the sample object key with an uploaded file key."
          },
          "response": []
        }
      ],
      "auth": {
        "type": "apikey",
        "apikey": [
          {
            "key": "key",
            "value": "X-API-Key",
            "type": "string"
          },
          {
            "key": "value",
            "value": "{{api_key}}",
            "type": "string"
          },
          {
            "key": "in",
            "value": "header",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "Claire mock gateways",
      "item": [
        {
          "name": "Test crm",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": "{{base_url}}/secure/gateways/crm",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"operation\": \"create_record\",\n  \"record_type\": \"contact\",\n  \"fields\": {\n    \"name\": \"Test customer\",\n    \"email\": \"test@example.com\"\n  }\n}"
            },
            "description": "Operations: create_record (fields), find_record (match), update_record (record_id, fields), add_note (record_id, note). record_type: contact, company, deal, case, custom. Returns root id/name for body.id/body.name mappings."
          }
        },
        {
          "name": "Test calendar",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": "{{base_url}}/secure/gateways/calendar",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"operation\": \"create_booking\",\n  \"calendar_id\": \"demo\",\n  \"timezone\": \"UTC\",\n  \"start_at\": \"2030-01-10T10:00:00Z\",\n  \"end_at\": \"2030-01-10T10:30:00Z\",\n  \"title\": \"Test appointment\",\n  \"attendee_email\": \"test@example.com\"\n}"
            },
            "description": "Operations: check_availability, create_booking, reschedule_booking, cancel_booking. calendar_id/timezone required. RFC3339 start_at/end_at required except cancel. reschedule/cancel require event_id. Create requires title/attendee_email. Overlaps return 409."
          }
        },
        {
          "name": "Test business",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": "{{base_url}}/secure/gateways/business",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"operation\": \"create_ticket\",\n  \"description\": \"Test support request\",\n  \"inputs\": {\n    \"subject\": \"Demo\"\n  }\n}"
            },
            "description": "Stores a mock accepted request. operation is a lowercase identifier; description required; inputs is an object."
          }
        },
        {
          "name": "Test database",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": "{{base_url}}/secure/gateways/database",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"operation\": \"create\",\n  \"resource\": \"customers\",\n  \"values\": {\n    \"name\": \"Test customer\",\n    \"active\": true\n  }\n}"
            },
            "description": "Operations: read, create, update, delete. resource is a lowercase sandbox identifier, not SQL. Flat equality filters; values required for create/update; nonempty filters required for update/delete; read limit 1\u2013100 (default 10)."
          }
        },
        {
          "name": "Test voice",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-Key",
                "value": "{{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": "{{base_url}}/secure/gateways/voice",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"analysis\": \"summary\",\n  \"transcript\": \"Hello, I would like to book an appointment.\",\n  \"language\": \"en\"\n}"
            },
            "description": "analysis: summary, sentiment, intent, quality, custom. transcript/language required; instructions required for quality/custom. Simulated text output; no AI/audio provider or timestamps."
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://small-server.fly.dev",
      "type": "string"
    },
    {
      "key": "api_key",
      "value": "",
      "type": "string"
    }
  ]
}
