Skip to main content
GET
Returns the task’s files, split the way the task splits them:
  • input_files are files people or integrations attached, including attachments that arrived by email or chat with the request.
  • output_files are files the task produced, such as an agent’s drafts.
Files added to a comment or a thread message are copied onto the task. The ids in their file_ids normally appear here too. To read a file, pass its id to Get task file text or Get task file download.

Authentication

Send an API key, or an OAuth access token with the tasks:read scope, as a bearer token in the Authorization header.

Path parameters

string
required
The task to read. Accepts a display id like #12 or the task’s UUID.

Response

string (uuid)
The task’s id.
object[]
Files attached to the task. Each has id, file_name, content_type, content_length and sensitivity_label.
object[]
Files the task produced, in the same shape as input_files.

Errors

See Errors for the error format.