---
title: "Get Task Traces"
method: GET
path: "/v2/tasks/{task_id}/traces"
tags: ["tasks"]
---

# Get Task Traces

`GET /v2/tasks/{task_id}/traces`

## Request

- Base URL: `https://api.hud.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hud.ai/v2/tasks/{task_id}/traces`
- Auth: none declared

List the task's traces, newest first, optionally for one version or model.

Callers without scoped access to the task receive traces from public jobs only.

## Path parameters

- `task_id` string, uuid, required

## Query parameters

- `limit` integer
- `offset` integer
- `task_version_id` string, uuid, nullable
- `model_id` string, uuid, nullable
- `exclude_training` boolean

## Response `200`

Successful Response

- PaginatedResponseTaskTrace
  - `items` TaskTrace[], required
    - `id` string, uuid, required
    - `job_id` string, uuid, required
    - `job_name` string, nullable
    - `imported_from` ExternalOrigin: Where an imported entity comes from: a system and the entity's id in it.
      - `system` 'harbor', required: A system HUD imports environments and runs from.
      - `external_id` string, required
    - `status` string, required
    - `reward` number, nullable
    - `stop_reason` 'done' | 'max_steps' | 'length' | 'timeout' | 'malformed_tool_call'
    - `is_valid` boolean
    - `error` string, nullable
    - `created_at` string, date-time, required
    - `start_time` string, date-time, nullable
    - `end_time` string, date-time, nullable
    - `views` integer
    - `task_version_id` string, uuid, nullable
    - `task_slug` string, nullable
    - `task_version_number` integer, nullable
    - `task_prompt` string, nullable
    - `thumbnail_url` string, nullable
    - `inference_llm_model_id` string, uuid, nullable
    - `metadata` object
    - `evaluation_result` object, nullable
    - `user_name` string, nullable
    - `user_avatar_url` string, nullable
    - `model` TraceThumbnailModel
      - `id` string, uuid, required
      - `name` string, required
      - `model_name` string, nullable
      - `provider_name` string, nullable
      - `icon_url` string, nullable
      - `sdk_agent_type` string, nullable
    - `can_edit` boolean
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `400`: Invalid or malformed request
- `401`: Missing or invalid credentials
- `403`: Caller may not access this resource
- `404`: Referenced entity does not exist
- `409`: Resource already exists
- `422`: Validation Error
- `429`: Rate limit exceeded; wait at least Retry-After seconds
- `503`: The server is at capacity; retry after Retry-After seconds

## Changes

- **2026-10-12** `362fe814734d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hud/apis/hud-platform/changes/v2/tasks/:task_id/traces/get.md)

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) - [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/hud/apis/hud-platform/revisions/d642039f5fa6?raw)
