v3

latestOpenAPI 3.1.02026-08-0431146.5 KB

Get the status or result of a background research task

Retrieve the current status of a background research task. While the task is in progress, the result field is null. Once the task reaches completed, the full research result is returned in result. If the task fails, status is failed and error contains a diagnostic message.

get/v1/research/{task_id}

Path parameters

task_idstring uuid required

The unique identifier of the background research task.

Response

The current status and, if completed, the result of the task.

idstring uuid required

Unique identifier for the background research task.

task_type'research' required

The task type.

status'queued' | 'running' | 'completed' | 'failed' | 'cancelled' required

The status of a background research task.

created_atstring date-time required

When the task was created, in RFC 3339 format.

updated_atstring date-time nullable required

When the task was last updated, in RFC 3339 format. null if the task has not yet started running.

completed_atstring date-time nullable required

When the task reached a terminal status, in RFC 3339 format. null if the task has not yet completed, failed, or been cancelled.

errorstring nullable required

A diagnostic message when status is failed. null for all other statuses.

Example response

{
  "id": "f1e2d3c4-0000-0000-0000-000000000000",
  "task_type": "research",
  "status": "queued",
  "created_at": "2026-06-26T00:00:00Z",
  "result": {
    "output": {
      "content_type": "text",
      "sources": [
        {
          "url": "https://sustainablemobility.iclei.org/air-pollution-beijing/",
          "title": "Clearing the skies: how Beijing tackled air pollution & what lies ahead",
          "snippets": [
            "The city actively coordinated air pollution control measures with surrounding areas, such as the Beijing-Tianjin-Hebei region."
          ]
        }
      ]
    },
    "warnings": []
  }
}