Tasks API

List, create, approve, and manage tasks across all agents.

List Tasks

Retrieve tasks for the current site.

GET /api/v1/tasks

Query Parameters

ParameterTypeDefaultDescription
site_idstringFilter by site
statusstringFilter by status (queued, awaiting_approval, in_progress, completed, failed)
categorystringFilter by category (strategy, research, content, technical, seo)
pageinteger1Page number
page_sizeinteger20Results per page

Example Response

{
  "items": [
    {
      "id": "task-uuid",
      "title": "Optimize meta description for /products",
      "description": "The current meta description is missing. Adding an optimized description will improve CTR.",
      "type": "meta_description_optimization",
      "status": "awaiting_approval",
      "priority": "high",
      "site_id": "site-uuid",
      "created_at": "2026-02-25T08:00:00Z"
    }
  ],
  "total": 15,
  "page": 1,
  "page_size": 20
}

Get Task

Retrieve details for a specific task.

GET /api/v1/tasks/{task_id}

Returns full task details including configuration, deliverables, and execution history.

Approve Task

Approve a task that is awaiting approval.

POST /api/v1/tasks/{task_id}/approve

Example Response

{
  "id": "task-uuid",
  "status": "queued",
  "message": "Task approved and queued for execution"
}

Cancel Task

Cancel a pending or queued task.

POST /api/v1/tasks/{task_id}/cancel

Example Response

{
  "id": "task-uuid",
  "status": "cancelled",
  "message": "Task cancelled"
}

Task Statuses

StatusDescription
queuedWaiting to be processed
awaiting_approvalNeeds your review and approval
in_progressAgent is actively executing
completedSuccessfully executed
failedExecution failed (see error details)
cancelledCancelled by user