Skip to main content
GET
/
api
/
task
/
v1
/
{task_id}
Get task
curl --request GET \
  --url https://api.example.com/api/task/v1/{task_id}
{
  "messages": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metadata": {},
      "parts": [
        {
          "metadata": {},
          "text": "<string>",
          "type": "text-part"
        }
      ],
      "reference_task_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "role": "user",
      "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "task": {
    "context_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "metadata": {},
    "status": "submitted",
    "status_timestamp": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "status_message_id": "<unknown>"
  },
  "messages_next_page_token": "<string>",
  "status_message": "<unknown>"
}

Path Parameters

task_id
string<uuid>
required

Task ID

Response

Get task by id

messages
object[]
required
task
object
required
messages_next_page_token
string | null
status_message
object