The Endpoints section in the sidebar is generated from the OpenAPI spec and includes an interactive playground — set your X-Agent-Key and call live.

Conventions

  • Auth: X-Agent-Key: sq_agt_* (or Authorization: Bearer). See Authentication.
  • Idempotency: every non-GET requires Idempotency-Key. See Idempotency.
  • Envelope (success): { "success": true, "message": "…", "data": … }. Async ops return data: { job_id, status, poll }.
  • Envelope (error): { "success": false, "message": "…", "error_code": "…", "errors": … }. See Errors.
  • Pagination: list endpoints return data: { items, total, page, limit }.

Surface map

A few routes named in the design (e.g. /automations, /analytics/daily-summary, /campaigns/{id}/analytics, /jobs/{id}/stream, /orders/import) are planned and not yet live. The Endpoints reference below lists only what’s shipped.