X-Agent-Key and call live.
Conventions
- Auth:
X-Agent-Key: sq_agt_*(orAuthorization: Bearer). See Authentication. - Idempotency: every non-GET requires
Idempotency-Key. See Idempotency. - Envelope (success):
{ "success": true, "message": "…", "data": … }. Async ops returndata: { 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.