---
title: "Get Task by ID"
method: GET
path: "/tasks/{task_id}"
tags: ["Tasks"]
---

# Get Task by ID

`GET /tasks/{task_id}`

Get a task by its unique ID.

## Path parameters

- `task_id` string, required

## Query parameters

- `relationships` TaskRelationships[]

## Response `200`

Successful Response

- TaskResponse — Task response model with optional related data based on relationships
  - `agents` Agent[], nullable
    - `agent_input_type` 'text' | 'json'
    - `created_at` string, date-time, required — The timestamp when the agent was created
    - `description` string, required — The description of the action.
    - `id` string, required — The unique identifier of the agent.
    - `name` string, required — The agent name (unique within namespace).
    - `namespace_id` string, required — The namespace ID this agent belongs to.
    - `registered_at` string, date-time, nullable — The timestamp when the agent was last registered
    - `registration_metadata` object, nullable — The metadata for the agent's registration.
    - `status` 'ACTIVE' | 'DELETED' — Agent status - runtime statuses (Ready/Failed/Unhealthy) now live on Deployment.
    - `status_reason` string, nullable — The reason for the status of the action.
    - `updated_at` string, date-time, required — The timestamp when the agent was last updated
  - `created_at` string, date-time, nullable
  - `created_version_id` string, nullable
  - `current_version_id` string, nullable
  - `filesystem_id` string, required
  - `id` string, required
  - `name` string, nullable
  - `namespace_id` string, required
  - `params` object, nullable
  - `status` 'IDLE' | 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
  - `status_reason` string, nullable
  - `task_metadata` object, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/versions/f24a474dc415/schema)
