Tasks
Get task file download
Get a short-lived link that downloads one of a task’s files.
GET
Returns a signed link to the original bytes of a file on the task. It works like Get file download, but needs only the
tasks:read scope, and only for files the task lists.
Download the file with a plain GET to url and no Authorization header. The URL is already signed, and the storage host refuses a request that carries your API key. The link lasts at most 5 minutes, until expires_at, so fetch it straight away. Call this endpoint again for a fresh link.
To give a person a link, use web_url instead. It opens in a browser, asks for Wordsmith sign-in, and does not expire.
A file is served only once its malware scan is clean. While the scan is still running, the response is 409 scan_in_progress; retry shortly. A file the scan flagged returns 404.
Authentication
Send an API key, or an OAuth access token with thetasks:read scope, as a bearer token in the Authorization header.
Path parameters
string
required
The task the file is on. Accepts a display id like
#12 or the task’s UUID.string (uuid)
required
An
id from the task’s input_files or output_files, or from a comment’s or thread message’s file_ids. Attaching stores a copy with a new id, so the id you attached is not on the task.Response
string (uuid)
The file’s id.
string
The signed download link. Fetch it without an
Authorization header.string
A link for people. It downloads the file in a browser after Wordsmith sign-in, does not expire, and checks the signed-in user’s access on every click.
string | null
The file’s name.
string | null
The file’s MIME type.
string
When
url stops working. ISO 8601 UTC, at most 5 minutes after the request.