---
title: "Get task details with logs and attachments"
method: GET
path: "/api/tasks/{id}"
tags: ["Tasks"]
---

# Get task details with logs and attachments

`GET /api/tasks/{id}`

Returns the full `AgentTask` row decorated with `logs` (capped by `logsLimit`) and `attachments` (pointer-based artifacts stored on the task, ordered by `created_at`).

## Path parameters

- `id` string, required

## Query parameters

- `logsLimit` integer

## Response `200`

Task with logs and attachments

## Other responses

- `404` — Task not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
