POST /api/run
Run an agent — SSE stream (default) or dispatch to the background. Reference →
Agent API base URL: https://agent-api.auteryn.ai
Auth API base URL: https://profile-api.auteryn.ai
The Auteryn REST API lets you integrate AI agents directly into your applications.
POST /api/run
Run an agent — SSE stream (default) or dispatch to the background. Reference →
POST /api/run/async
Fire-and-forget background runs; poll, stream, or reconnect. Reference →
GET /api/tasks
List, get, control, and stream tasks and runs — incl. HITL input. Reference →
GET /api/tasks/{id}/messages
Retrieve message history for a task. Reference →
GET /api/agents/{id}/memories
Read agent long-term memory. Reference →
Errors & rate limits
Status codes, error shape, and 429 handling. Reference →
POST /api/v1/widget/*
Widget gateway for embedded chat. Reference →
sk_live_...) in the ConsolePOST /api/v1/auth/exchange/agent-token on the auth APIAuthorization: Bearer <jwt> and X-Agent-Id on agent API requestsRate limits are enforced per org+user at the agent API layer (default 30/min
for POST /api/run). On 429 Too Many Requests, honor the Retry-After header
and back off. See the Errors & rate limits reference →.
POST /api/run returns Server-Sent Events (SSE) by default — real-time
frames for agent text, tool calls, artifacts, and status. Each data: frame is
one JSON event; see the AG-UI event types.
For background execution, set "stream": false (returns 202) or use
POST /api/run/async, then follow progress with
GET /api/tasks/{task_id}/stream (SSE) or GET /api/runs/{run_id}/events
(paginated JSON).