---
title: "Read Task"
method: GET
path: "/api/v1/tasks/{task_id}"
tags: ["tasks"]
---

# Read Task

`GET /api/v1/tasks/{task_id}`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/tasks/{task_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Get task by ID with all resolved relations.

## Path parameters

- `task_id` integer, required

## Response `200`

Successful Response

- Task: Complete task schema with resolved relations.
  - `title` string, required
  - `description` string, nullable
  - `input_message` string, nullable
  - `type` string
  - `status` string
  - `tags` string[]
  - `session_id` string, nullable
  - `id` integer, required
  - `account_id` integer, required
  - `assigned_team_id` integer, required
  - `assigned_agent_id` integer, nullable
  - `parent_id` integer, nullable
  - `reporter_team_id` integer, nullable
  - `reporter_agent_id` integer, nullable
  - `assigned_team_identifier` string, nullable
  - `assigned_agent_identifier` string, nullable
  - `reporter_team_identifier` string, nullable
  - `reporter_agent_identifier` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `assigned_team` TeamForTask: Team schema for task relationships.
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
    - `identifier` string, nullable
  - `assigned_agent` AgentForTask: Agent schema for task relationships.
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
    - `identifier` string, nullable
  - `reporter_team` TeamForTask: Team schema for task relationships.
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
    - `identifier` string, nullable
  - `reporter_agent` AgentForTask: Agent schema for task relationships.
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
    - `identifier` string, nullable
  - `parent` TaskSummary: Lightweight task summary to prevent circular references.
    - `id` integer, required
    - `title` string, required
    - `status` string, required
    - `type` string, required
  - `subtasks` TaskSummary[]
    - `id` integer, required
    - `title` string, required
    - `status` string, required
    - `type` string, required
  - `dependencies` TaskDependency[]
    - `id` integer, required
    - `title` string, required
    - `status` string, required
    - `type` string, required
  - `dependents` TaskDependency[]
    - `id` integer, required
    - `title` string, required
    - `status` string, required
    - `type` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gnosari/apis/gnosari-api.md) · [All operations](https://skmtc.dev/gnosari/apis/gnosari-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gnosari/apis/gnosari-api/revisions/f299cf53ae5f?raw)
