Agent Gateway
Build agent‑native commerce
One scoped, idempotent, job-aware API that lets autonomous agents — OpenClaw or your own — run every capability of your store: build, catalog, ads, marketing, analytics, and orders.
Quickstart
Mint a key, call
whoami, build your first store — in five minutes.Authentication
Scoped
sq_agt_* service-account keys and user-JWT access.Connect your own agent
Claude, ChatGPT, Claude Code, Cursor or Codex work on your store through one MCP address.
Build themes with your agent
Claude Code, Codex or Cursor build and publish your storefront theme over MCP.
API Reference
Interactive playground for all 36 endpoints, generated from OpenAPI.
Why it exists
A chatbot that only talks is not enough. Merchants need agents that take real actions in real systems — and do it safely. The Agent Gateway is the enterprise control plane that makes that possible:Least privilege
Per-agent keys with fine-grained scopes; spend actions are gated.
Safe retries
Mandatory idempotency keys; duplicate calls never double-charge.
Async by design
Long operations return a job; poll one surface for every workflow.
Full audit
Every call recorded — principal, tool, scopes, status, latency.
Webhooks
Signed event callbacks so agents react instead of polling.
Human approval
Optional gate on spend so agents propose, humans confirm.
The shape
36 REST endpoints
Versioned at
/api/v1/agent/v1. Same contract by curl or SDK.23 agent tools
The
dtc_* MCP toolset, mirroring the REST surface 1:1 for OpenClaw.