https://api.agentruntime.io. Replace tenant slug, project ID, workflow UUIDs, and tokens with your values.
All authenticated examples require:
Create a workflow
POST /v1/workflows — project_contributor
Request:
201):
Publish a version
POST /v1/workflows/{id}/versions — project_contributor
Request:
201):
Start a run
POST /v1/workflows/{id}/command — project_contributor
Request:
200):
params become workflow input ({{input.customer_email}}, etc.).
Pause, resume, stop
Complete a human task
POST /v1/workflows/{id}/runs/{runID}/tasks/{task_id}/complete — project_contributor
Approve only (Console default):
200):
Create inbound webhook subscription
POST /v1/inbound-webhooks — project_contributor
Request (Vault-backed PAT id):
201):
signing_secret is returned once. List endpoints never include secrets.
Public ingress (external sender)
POST /v1/inbound-webhooks/{subscription_id} — HMAC + Bearer PAT (no session cookie)
Workflow connection overrides
PUT /v1/workflows/{id}/connection-overrides — project_contributor (API only — no Console panel)
Request:
200):
Create a custom connection
POST /v1/connections — project_contributor
Request:
201):
Register a custom MCP server
POST /v1/mcp/servers — project_contributor
Request:
201):
POST /v1/mcp/instances. See Custom MCP servers.
Create a PAT
POST /v1/pats — project_contributor
Request:
201):
token is shown once. Create keys in the Console under Settings → API keys.
Billing usage snapshot
GET /v1/billing/usage — project_contributor
Response (200):
Plan catalog (product-scoped)
GET /v1/billing/plans — project_contributor
The BFF filters to its deployment product_code (agentruntime on api.agentruntime.io). Response omits product_code — it is implicit for this host.
Response (200, excerpt):
stripe_price_id when starting trials or subscriptions via POST /v1/billing/subscription. See Multi-product billing.
Error responses
Most endpoints return JSON errors:| Status | Meaning |
|---|---|
401 | Missing or invalid auth |
403 | Role or scope insufficient |
404 | Resource or feature not found |
503 | Dependency unavailable (Vault, inbound PAT resolution, analytics) |
Related
- API reference — full endpoint tables
- API authentication
- Platform MCP