Skip to main content
Submit long-running agent tasks and retrieve results asynchronously via HTTP API.

Quick Start

Start Server

Workflow

Endpoints

Submit Run

POST /api/v1/runs - Submit a new job

List Runs

GET /api/v1/runs - List all jobs

Get Status

GET /api/v1/runs/ - Get job status

Get Result

GET /api/v1/runs//result - Get job result

Stream Progress

GET /api/v1/runs//stream - SSE stream updates

Cancel Run

POST /api/v1/runs//cancel - Cancel a job

Delete Run

DELETE /api/v1/runs/ - Delete a job

Health Check

GET /health - Server health status

Key Features

  • Idempotency: Use Idempotency-Key header to prevent duplicate job submissions
  • Webhooks: Receive callbacks when jobs complete via webhook_url
  • Session Grouping: Group related jobs with session_id
  • SSE Streaming: Real-time progress updates via Server-Sent Events
  • Polling: Use retry_after field for optimal polling intervals

Status Values

Authentication

The async jobs API does not require authentication by default. Configure authentication in your server deployment as needed.

CLI Usage

See Also