Read the text content of a task attachment
curl --request GET \ --url 'https://example.com/api/v1/tasks/example/attachments/example/content?offset=0&limit=262144' \ --header 'Authorization: Bearer <token>'Returns one page of the attachment’s UTF-8 text (markdown, JSON, CSV, plain text and similar). offset and limit count characters; follow nextOffset until truncated is false. A link, a binary file, a file over 2 MB or a file missing from storage answers 200 with readable: false and the unreadableReason. An unknown attachment, or one of a task the caller cannot reach, is a 404. Requires the tasks.view permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Attachment identifier (CUID2).
Attachment identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Character offset to start the page at.
Character offset to start the page at.
Most characters to return in this page.
Most characters to return in this page.
Responses
Section titled “Responses”One page of the attachment’s text.
object
One page of a task attachment’s text, or why it cannot be read.
object
The requested page of text.
File size in bytes.
True when content holds a page of the file’s UTF-8 text.
True when more text follows this page.
Example
{ "data": { "unreadableReason": "link" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC