API Surface¶
This page summarizes the currently active public/control endpoints used by Settld workflows.
Core Settld API (typically :3000)¶
Identity / runtime:
POST /agents/registerGET /runs/{runId}/verificationGET /runs/{runId}/settlement
x402 flow:
POST /x402/gate/createPOST /x402/gate/quotePOST /x402/gate/authorize-paymentPOST /x402/gate/verifyGET /x402/gate/escalationsPOST /x402/gate/escalations/{id}/resolvePOST /x402/gate/agents/{agentId}/wind-down
Wallet and webhook controls:
POST /x402/wallets/{walletId}/authorizePOST /x402/webhooks/endpointsGET /x402/webhooks/endpointsPOST /x402/webhooks/endpoints/{endpointId}/rotate-secret
Ops:
POST /ops/api-keys
Hosted onboarding API (Magic Link service, typically :3090)¶
POST /v1/tenants/{tenantId}/onboarding/runtime-bootstrap- Auth:
x-api-key(bootstrap/admin key) or buyer session cookie (ml_buyer_session) - Success contract: always returns
mcp.envwithSETTLD_BASE_URL,SETTLD_TENANT_ID,SETTLD_API_KEY POST /v1/tenants/{tenantId}/onboarding/runtime-bootstrap/smoke-testPOST /v1/tenants/{tenantId}/onboarding/first-paid-callGET /v1/tenants/{tenantId}/onboarding/first-paid-call/historyPOST /v1/tenants/{tenantId}/onboarding/conformance-matrix
Error behavior¶
Common control-plane failure classes:
RATE_LIMITEDINVALID_IDEMPOTENCY_KEYMCP_SMOKE_TEST_FAILEDSETTLD_API_CALL_FAILED- x402 policy/verification specific fail-closed codes (returned by x402 endpoints)
Contract source¶
- Generated OpenAPI:
openapi/settld.openapi.json - Generator command:
npm run openapi:write