---
title: "Get task documents"
method: GET
path: "/tasks/{taskId}/documents"
tags: ["Tasks"]
---

# Get task documents

`GET /tasks/{taskId}/documents`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/tasks/{taskId}/documents`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

Returns a list of document links for the specified task, if associated with the authenticated client.

## Path parameters

- `taskId` string, uuid, required

## Response `200`

When request is successful. Returns a list of 'Link' objects.

- TaskDocumentCollection
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable
  - `self` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `value` TaskDocument[], nullable
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
    - `self` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `task` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `type` 0 | 1 | 2: Available document types: "File = 0", "FormTemplate = 1", "Memo = 2" The FormTemplate (1) document type is not currently supported for task document creation.
    - `isDeleted` boolean: True when the task document has been deleted.
    - `document` unknown

## Other responses

- `403`: When task with specified id is not associated with authenticated client.
- `404`: When task with specified id does not exist.

---

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