Skip to content
DocsFiles

API reference

Files

Files attached to tasks. Endpoints, parameters, examples and errors.

View as Markdown

On this page

Files attached to tasks. Send up to 8 MiB in one request with upload_attachment, or up to 100 MiB in parts with start_upload, upload_part and complete_upload. Downloads stream and take a Range. downloadUrl and previewUrl are signed links that work without an Authorization header for 10 minutes.

More in Files.

List a task’s attachments

#

Lists the files attached to a task, oldest first.

HTTP
GET /api/v1/tasks/{taskId}/attachments
  • Scopes: files:read
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Returns the finished files of one task, oldest first, with signed links (downloadUrl, previewUrl) that work for 10 minutes. Unfinished uploads are not listed.

Parameters

#
NameInTypeRequiredDescription
taskIdpathid (task_…)YesTask id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
limitqueryinteger, 1–100NoHow many to return, 1–100 (default 50).
cursorquerystringNonextCursor from the previous page, to get the next one. Up to 2,048 characters.

Response

#

200 with a list of Attachment objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.

FieldTypeDescription
object"list"
hasMorebooleanTrue when there is a next page.
nextCursorstring or nullPass it as cursor to read the next page; null on the last page.
dataarray of Attachment

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/attachments \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "attachment",
      "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "name": "launch-plan.pdf",
      "size": 482133,
      "mimeType": "application/pdf",
      "kind": "file",
      "status": "ready",
      "width": null,
      "height": null,
      "durationSeconds": null,
      "preview": {
        "status": "none"
      },
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-18T10:00:00.123Z",
      "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content",
      "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
      "previewUrl": null,
      "urlsExpireAt": "2026-11-18T10:10:00.000Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

List a project’s attachments

#

Lists every file attached to tasks of a project, oldest first.

HTTP
GET /api/v1/projects/{projectId}/attachments
  • Scopes: files:read
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Returns the finished files of a project, oldest first, optionally only those of one task (taskId) or of one kind (kind: image, video or file). Each comes with signed links that work for 10 minutes. A task that is not in the project is a 400, never an ignored filter.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskIdqueryid (task_…)NoOnly the files of this task (task_…), which must be in the project.
kindquery"image" or "video" or "file"NoOnly files of this kind: image, video or file.
limitqueryinteger, 1–100NoHow many to return, 1–100 (default 50).
cursorquerystringNonextCursor from the previous page, to get the next one. Up to 2,048 characters.

Response

#

200 with a list of Attachment objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.

FieldTypeDescription
object"list"
hasMorebooleanTrue when there is a next page.
nextCursorstring or nullPass it as cursor to read the next page; null on the last page.
dataarray of Attachment

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl 'https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/attachments?kind=image' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "attachment",
      "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "name": "homepage-hero.png",
      "size": 1838220,
      "mimeType": "image/png",
      "kind": "image",
      "status": "ready",
      "width": 2400,
      "height": 1350,
      "durationSeconds": null,
      "preview": {
        "status": "ready"
      },
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-18T10:00:00.123Z",
      "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content",
      "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?disposition=inline&exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
      "previewUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/preview?exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
      "urlsExpireAt": "2026-11-18T10:10:00.000Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Get an attachment

#

Returns one attachment, with fresh signed links.

HTTP
GET /api/v1/attachments/{attachmentId}
  • Scopes: files:read
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Returns a finished attachment: its name, size, type, preview status and who attached it, with downloadUrl and previewUrl, signed links that work without an Authorization header for 10 minutes (urlsExpireAt). Read it again for fresh links; do not store them. contentUrl is the plain API address, for requests with your header.

Parameters

#
NameInTypeRequiredDescription
attachmentIdpathid (att_…)YesAttachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.

Response

#

200 with an Attachment object.

FieldTypeDescription
object"attachment"
idid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskIdid (task_…)The task the file is attached to (task_…).
projectIdid (prj_…)The task’s project (prj_…).
namestringThe file name as Taskloader keeps it (up to 255 characters): the name sent, with /, \, tabs, line breaks and other control characters replaced by _; zero-width spaces, byte-order marks and text-direction characters removed; and spaces at either end trimmed.
sizeintegerThe file’s size in bytes.
mimeTypestringThe file’s type, one of the 19 accepted types, for example application/pdf.
kindstringHow the file can be shown: image or video (they open in the app) or file (it only downloads). New kinds may be added; treat unknown ones as file.
status"ready"Always ready: unfinished uploads are Upload objects, not attachments.
widthinteger or nullImages and videos: the width in pixels, when known; otherwise null.
heightinteger or nullImages and videos: the height in pixels, when known; otherwise null.
durationSecondsnumber or nullVideos: the length in seconds, when known; otherwise null.
previewobjectThe small preview image (a thumbnail, or a video’s poster frame).
createdByobjectWho attached the file.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.
contentUrlstringThe file’s API address (GET, with your Authorization header). It does not expire.
downloadUrlstringA signed link to the file that works without an Authorization header until urlsExpireAt; images and videos open in the browser. Never store it.
previewUrlstring or nullA signed link to the preview image (WebP or JPEG); null when there is none.
urlsExpireAtstring (date-time) or nullWhen downloadUrl and previewUrl stop working (10 minutes after this was read). Read the attachment again for fresh ones.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "attachment",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "launch-plan.pdf",
  "size": 482133,
  "mimeType": "application/pdf",
  "kind": "file",
  "status": "ready",
  "width": null,
  "height": null,
  "durationSeconds": null,
  "preview": {
    "status": "none"
  },
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-18T10:00:00.123Z",
  "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content",
  "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
  "previewUrl": null,
  "urlsExpireAt": "2026-11-18T10:10:00.000Z"
}

Download an attachment

#

Streams a file’s bytes, whole or one byte range.

HTTP
GET /api/v1/attachments/{attachmentId}/content
  • Scopes: files:read, or a signed link from Taskloader (no Authorization header)
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket; through a signed link, the link bucket instead (600 a minute, bursts of up to 200, per credential and address)

Streams the file with Content-Length, a strong ETag (files never change) and Content-Disposition naming the file. It answers as application/octet-stream, so browsers save it; disposition=inline shows images and videos in the browser with their real type (other files still download). One byte range per request: Range: bytes=0-1048575 answers 206 with Content-Range; a range outside the file answers 416. Works with your Authorization header, or without one through a signed link from downloadUrl.

Parameters

#
NameInTypeRequiredDescription
attachmentIdpathid (att_…)YesAttachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
dispositionquery"attachment" or "inline"Noattachment (the default) downloads; inline shows images and videos in the browser.
expquerystringNoPart of a signed link (downloadUrl, previewUrl): when it expires. Never build it yourself. Up to 20 characters.
credquerystringNoPart of a signed link: the credential it was issued to. Up to 200 characters.
sigquerystringNoPart of a signed link: its signature. Up to 100 characters.
RangeheaderstringNoOne byte range, for example bytes=0-1048575, bytes=1048576- or bytes=-500. Up to 200 characters.
If-None-MatchheaderstringNoThe file’s ETag from an earlier download, as "<attachment id>-<size>". Files never change, so when it matches the answer is 304 with no body.

Response

#

200: The file’s bytes: application/octet-stream with Content-Disposition: attachment, or, for an image or a video asked for with disposition=inline, its own type with inline. HEAD answers with the same headers and no body.

Media types: application/octet-stream, image/jpeg, image/png, image/webp, image/gif, image/avif, video/mp4, video/webm, video/quicktime.

Headers it sends: Content-Length, Content-Disposition, ETag, Accept-Ranges, Cache-Control.

Send the ETag back as If-None-Match to get 304 Not Modified instead of the bytes again.

206: Partial content: the one byte range asked for with Range, described by Content-Range.

304: Not modified: the ETag you sent in If-None-Match is still current. No body.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
404not_foundNot found
416range_not_satisfiableThe range cannot be served
429too_many_transfersToo many file transfers at once
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -o download.bin
HTTP
HTTP/1.1 200 OK
Content-Type: application/octet-stream

Get an attachment’s preview

#

Streams the preview image of a file (WebP or JPEG).

HTTP
GET /api/v1/attachments/{attachmentId}/preview
  • Scopes: files:read, or a signed link from Taskloader (no Authorization header)
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket; through a signed link, the link bucket instead (600 a minute, bursts of up to 200, per credential and address)

Streams the small preview image of an attachment: a thumbnail of an image, or a video’s poster frame, as WebP or JPEG. Answers 404 when the file has no preview; its preview.status says whether one is coming. Works with your Authorization header, or without one through a signed link from previewUrl.

Parameters

#
NameInTypeRequiredDescription
attachmentIdpathid (att_…)YesAttachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
expquerystringNoPart of a signed link (downloadUrl, previewUrl): when it expires. Never build it yourself. Up to 20 characters.
credquerystringNoPart of a signed link: the credential it was issued to. Up to 200 characters.
sigquerystringNoPart of a signed link: its signature. Up to 100 characters.

Response

#

200: The preview image, WebP or JPEG. Cached privately for an hour (not when read through a signed link).

Media types: image/webp, image/jpeg.

Headers it sends: Content-Length, Cache-Control.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
404not_foundNot found
429too_many_transfersToo many file transfers at once
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/preview \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -o download.bin
HTTP
HTTP/1.1 200 OK
Content-Type: application/octet-stream

Upload a preview

#

Stores a preview image you made for an image or video you uploaded.

HTTP
PUT /api/v1/attachments/{attachmentId}/preview
  • Scopes: files:write
  • Who: The person who started the upload
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: naturally idempotent: repeating it changes nothing more
  • Rate limit: the write bucket

Stores your own preview of a file you uploaded: a WebP or JPEG image up to 1 MiB as the body, with its type as Content-Type and what you measured of the original (width, height in pixels and, for videos only, duration in seconds) in the query. Send it during the upload or after it. Only the person who uploaded the file can, while they can edit the task. Sending another replaces it, and it replaces a preview Taskloader made. Taskloader makes previews itself only for JPEG, PNG, WebP, GIF and AVIF images up to 25 MiB; HEIC and HEIF photos, larger images and videos have a preview only if you send one.

Parameters

#
NameInTypeRequiredDescription
attachmentIdpathid (att_…)YesAttachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
widthqueryinteger, 1–30,000NoThe original’s width in pixels.
heightqueryinteger, 1–30,000NoThe original’s height in pixels.
durationquerynumber, 0–86,400NoVideos only: the length in seconds. Images answer invalid_preview.
Content-DigestheaderstringNoThe SHA-256 of the body, as sha-256=:<base64>: (RFC 9530). Optional: when sent, the bytes are checked against it before anything is stored (digest_mismatch).

Request body

#

The bytes themselves (not JSON), up to 8 MiB unless stated above, with their media type as Content-Type. Accepted types: image/webp, image/jpeg.

Response

#

200 with an attachment_preview object.

FieldTypeDescription
object"attachment_preview"
attachmentIdid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
widthinteger or nullThe width you sent, in pixels.
heightinteger or nullThe height you sent, in pixels.
durationSecondsnumber or nullThe length you sent, in seconds.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_previewThe preview is not accepted
400invalid_idempotency_keyThe Idempotency-Key header is not valid
400digest_mismatchThe part does not match its digest
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
413payload_too_largeThe request body is too large
413storage_quota_exceededStorage quota reached
415unsupported_media_typeUnsupported media type
429too_many_transfersToo many file transfers at once
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X PUT 'https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/preview?width=1920&height=1080&duration=42.5' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: image/webp" \
  --data-binary @file.bin
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "attachment_preview",
  "attachmentId": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "width": 1920,
  "height": 1080,
  "durationSeconds": 42.5
}

Upload an attachment

#

Attaches a file of up to 8 MiB to a task in one request.

HTTP
POST /api/v1/tasks/{taskId}/attachments
  • Scopes: files:write
  • Who: Editor or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the upload bucket

Attaches a file to a task: the bytes are the request body (up to 8 MiB), Content-Type is the file’s type (one of the 19 accepted types), and the name comes from ?name= or Content-Disposition: attachment; filename*=UTF-8''…. Taskloader checks the first bytes against the type (file_type_mismatch otherwise) and stores the file exactly as sent; photos keep their metadata. Answers 201 with the attachment. For larger files, or to resume after a broken connection, use start_upload. With an Idempotency-Key, also send Content-Digest: sha-256=:<base64>:.

Parameters

#
NameInTypeRequiredDescription
taskIdpathid (task_…)YesTask id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namequerystringNoThe file name, for example launch-plan.pdf (or send Content-Disposition). Up to 255 characters.
Content-DispositionheaderstringNoattachment; filename*=UTF-8''<percent-encoded name>, for names with any characters. Up to 4,096 characters.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.
Content-DigestheaderstringNoThe SHA-256 of the body, as sha-256=:<base64>: (RFC 9530). Checked against the bytes received; required together with Idempotency-Key, so a retry with other bytes is told apart.

Request body

#

The bytes themselves (not JSON), up to 8 MiB unless stated above, with their media type as Content-Type. Accepted types: image/jpeg, image/png, image/webp, image/gif, image/avif, image/heic, image/heif, video/mp4, video/webm, video/quicktime, application/pdf, text/plain, text/markdown, text/csv, application/json, application/zip, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation. Name the file with Content-Disposition.

Response

#

201 with the new Attachment object. Location is its address.

FieldTypeDescription
object"attachment"
idid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskIdid (task_…)The task the file is attached to (task_…).
projectIdid (prj_…)The task’s project (prj_…).
namestringThe file name as Taskloader keeps it (up to 255 characters): the name sent, with /, \, tabs, line breaks and other control characters replaced by _; zero-width spaces, byte-order marks and text-direction characters removed; and spaces at either end trimmed.
sizeintegerThe file’s size in bytes.
mimeTypestringThe file’s type, one of the 19 accepted types, for example application/pdf.
kindstringHow the file can be shown: image or video (they open in the app) or file (it only downloads). New kinds may be added; treat unknown ones as file.
status"ready"Always ready: unfinished uploads are Upload objects, not attachments.
widthinteger or nullImages and videos: the width in pixels, when known; otherwise null.
heightinteger or nullImages and videos: the height in pixels, when known; otherwise null.
durationSecondsnumber or nullVideos: the length in seconds, when known; otherwise null.
previewobjectThe small preview image (a thumbnail, or a video’s poster frame).
createdByobjectWho attached the file.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.
contentUrlstringThe file’s API address (GET, with your Authorization header). It does not expire.
downloadUrlstringA signed link to the file that works without an Authorization header until urlsExpireAt; images and videos open in the browser. Never store it.
previewUrlstring or nullA signed link to the preview image (WebP or JPEG); null when there is none.
urlsExpireAtstring (date-time) or nullWhen downloadUrl and previewUrl stop working (10 minutes after this was read). Read the attachment again for fresh ones.

Headers it sends: Location, Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
400digest_mismatchThe part does not match its digest
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
413file_too_largeThe file is too large
413storage_quota_exceededStorage quota reached
415unsupported_media_typeUnsupported media type
415unsupported_file_typeThis file type is not accepted
422file_type_mismatchThe file is not of its declared type
422idempotency_key_reusedThe Idempotency-Key was used for another request
429too_many_open_uploadsToo many unfinished uploads
429too_many_transfersToo many file transfers at once
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl 'https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/attachments?name=launch-plan.pdf' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/pdf" \
  -H "Content-Digest: sha-256=:$(openssl dgst -sha256 -binary launch-plan.pdf | base64):" \
  -H "Idempotency-Key: $(uuidgen)" \
  --data-binary @launch-plan.pdf
HTTP
HTTP/1.1 201 Created
Content-Type: application/json
Location: /api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718

{
  "object": "attachment",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "launch-plan.pdf",
  "size": 482133,
  "mimeType": "application/pdf",
  "kind": "file",
  "status": "ready",
  "width": null,
  "height": null,
  "durationSeconds": null,
  "preview": {
    "status": "none"
  },
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-18T10:00:00.123Z",
  "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content",
  "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
  "previewUrl": null,
  "urlsExpireAt": "2026-11-18T10:10:00.000Z"
}

Start an upload

#

Opens a resumable upload of a file of up to 100 MiB, sent in parts.

HTTP
POST /api/v1/tasks/{taskId}/uploads
  • Scopes: files:write
  • Who: Editor or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket

Opens an upload for a file of up to 100 MiB (104,857,600 bytes). The answer lists every part with its exact size and an uploadUrl: PUT each part there (any order, in parallel), then complete_upload. Part n is bytes (n − 1) × partSize to n × partSize − 1 of the file. An upload is canceled when no part arrives for an hour, and 24 hours after it started at the latest (expiresAt); get_upload says which parts arrived, so you can resume. You can have 12 unfinished uploads at a time.

Parameters

#
NameInTypeRequiredDescription
taskIdpathid (task_…)YesTask id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
namestringYesThe file name, for example product-demo.mp4. Up to 255 characters.
sizeinteger, at least 1YesThe whole file’s size in bytes, at most 104,857,600 (100 MiB).
type"image/jpeg" or "image/png" or "image/webp" or "image/gif" or "image/avif" or "image/heic" or "image/heif" or "video/mp4" or "video/webm" or "video/quicktime" or "application/pdf" or "text/plain" or "text/markdown" or "text/csv" or "application/json" or "application/zip" or "application/vnd.openxmlformats-officedocument.wordprocessingml.document" or "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" or "application/vnd.openxmlformats-officedocument.presentationml.presentation"YesThe file’s type, one of the 19 accepted types, for example video/mp4. Up to 255 characters.

Response

#

201 with the new Upload object. Location is its address.

FieldTypeDescription
object"upload"
idid (att_…)The upload’s id (att_…); once completed, the attachment has the same id.
taskIdid (task_…)Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namestringThe file name as Taskloader keeps it (up to 255 characters): the name sent, with /, \, tabs, line breaks and other control characters replaced by _; zero-width spaces, byte-order marks and text-direction characters removed; and spaces at either end trimmed.
sizeintegerThe whole file’s size in bytes.
mimeTypestringThe file’s type.
partSizeintegerBytes in every part but the last: part n starts at (n − 1) × partSize.
partCountintegerHow many parts the file is sent in.
partsarray of objectEvery part to send, in order. They can be sent in any order, and in parallel.
receivedPartsarray of integerThe part numbers storage already holds; send only the others.
status"uploading"
expiresAtstring (date-time)When the upload is canceled unless a part arrives first: an hour after its last part arrived (or it started), and 24 hours after it started at the latest. Each part moves it on.

Headers it sends: Location, Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
413file_too_largeThe file is too large
413storage_quota_exceededStorage quota reached
415unsupported_media_typeUnsupported media type
415unsupported_file_typeThis file type is not accepted
422idempotency_key_reusedThe Idempotency-Key was used for another request
429too_many_open_uploadsToo many unfinished uploads
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/uploads \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"product-demo.mp4","size":20971520,"type":"video/mp4"}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json
Location: /api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718

{
  "object": "upload",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "product-demo.mp4",
  "size": 20971520,
  "mimeType": "video/mp4",
  "partSize": 8388608,
  "partCount": 3,
  "parts": [
    {
      "partNumber": 1,
      "size": 8388608,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/1"
    },
    {
      "partNumber": 2,
      "size": 8388608,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/2"
    },
    {
      "partNumber": 3,
      "size": 4194304,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/3"
    }
  ],
  "receivedParts": [],
  "status": "uploading",
  "expiresAt": "2026-11-18T11:00:00.123Z"
}

Get an upload

#

Returns an unfinished upload and the parts that already arrived.

HTTP
GET /api/v1/uploads/{uploadId}
  • Scopes: files:write
  • Who: The person who started the upload
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Returns an unfinished upload as start_upload did, with receivedParts: every part storage accepted (each upload_part that answered 200, plus any part storage holds that Taskloader has no record of). After a restart, send only the parts not listed, then complete_upload. Only the person who started the upload can read it, while they can edit the task. Once the upload is complete, get_upload answers 404 saying so; complete_upload is safe to repeat and returns the attachment. An upload no part reached for an hour, or started 24 hours ago, was canceled: every request about it answers 404 saying so, and the file needs a new upload.

Parameters

#
NameInTypeRequiredDescription
uploadIdpathid (att_…)YesThe upload’s id (att_…), as start_upload returned it.

Response

#

200 with an Upload object.

FieldTypeDescription
object"upload"
idid (att_…)The upload’s id (att_…); once completed, the attachment has the same id.
taskIdid (task_…)Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namestringThe file name as Taskloader keeps it (up to 255 characters): the name sent, with /, \, tabs, line breaks and other control characters replaced by _; zero-width spaces, byte-order marks and text-direction characters removed; and spaces at either end trimmed.
sizeintegerThe whole file’s size in bytes.
mimeTypestringThe file’s type.
partSizeintegerBytes in every part but the last: part n starts at (n − 1) × partSize.
partCountintegerHow many parts the file is sent in.
partsarray of objectEvery part to send, in order. They can be sent in any order, and in parallel.
receivedPartsarray of integerThe part numbers storage already holds; send only the others.
status"uploading"
expiresAtstring (date-time)When the upload is canceled unless a part arrives first: an hour after its last part arrived (or it started), and 24 hours after it started at the latest. Each part moves it on.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "upload",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "product-demo.mp4",
  "size": 20971520,
  "mimeType": "video/mp4",
  "partSize": 8388608,
  "partCount": 3,
  "parts": [
    {
      "partNumber": 1,
      "size": 8388608,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/1"
    },
    {
      "partNumber": 2,
      "size": 8388608,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/2"
    },
    {
      "partNumber": 3,
      "size": 4194304,
      "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/3"
    }
  ],
  "receivedParts": [
    1
  ],
  "status": "uploading",
  "expiresAt": "2026-11-18T11:00:00.123Z"
}

Upload a part

#

Stores one part of an upload; sending a part again replaces it.

HTTP
PUT /api/v1/uploads/{uploadId}/parts/{partNumber}
  • Scopes: files:write
  • Who: The person who started the upload
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: naturally idempotent: repeating it changes nothing more
  • Rate limit: the upload bucket

Stores part partNumber of an upload: the body is exactly that part’s bytes (parts[n].size; part_length_mismatch otherwise). Parts can be sent in any order and in parallel, and sending one again replaces it. An optional Content-Digest: sha-256=:<base64>: is checked before the part is stored. Part 1 is checked against the file’s type; a mismatch cancels the upload (file_type_mismatch).

Parameters

#
NameInTypeRequiredDescription
uploadIdpathid (att_…)YesThe upload’s id (att_…), as start_upload returned it.
partNumberpathintegerYesFrom 1 to the upload’s partCount.
Content-DigestheaderstringNoThe SHA-256 of the body, as sha-256=:<base64>: (RFC 9530). Optional: when sent, the bytes are checked against it before anything is stored (digest_mismatch).

Request body

#

The bytes themselves (not JSON), up to 8 MiB unless stated above, with their media type as Content-Type.

Response

#

200 with an upload_part object.

FieldTypeDescription
object"upload_part"
partNumberinteger
sizeintegerBytes stored for this part.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400part_out_of_rangeThe part number is out of range
400part_length_mismatchThe part has the wrong size
400digest_mismatchThe part does not match its digest
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422file_type_mismatchThe file is not of its declared type
429too_many_transfersToo many file transfers at once
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X PUT https://taskloader.com/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/2 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @file.bin
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "upload_part",
  "partNumber": 2,
  "size": 8388608
}

Complete an upload

#

Joins an upload’s parts into the attachment; safe to repeat.

HTTP
POST /api/v1/uploads/{uploadId}/complete
  • Scopes: files:write
  • Who: The person who started the upload
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: naturally idempotent: repeating it changes nothing more
  • Rate limit: the write bucket

Joins the parts once every one has arrived and attaches the file to its task. Call it as soon as the last upload_part answered 200: every part that answered 200 is joined. Answers with the attachment, also when the upload was already completed (or is being completed by another request at the same time): the file is attached once. Before every part arrived it answers 409 upload_incomplete at once with missingParts and receivedParts: send the missing parts, then complete again. A 503 storage_unavailable is temporary: wait Retry-After seconds and complete again.

Parameters

#
NameInTypeRequiredDescription
uploadIdpathid (att_…)YesThe upload’s id (att_…), as start_upload returned it.

Response

#

200 with an Attachment object.

FieldTypeDescription
object"attachment"
idid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskIdid (task_…)The task the file is attached to (task_…).
projectIdid (prj_…)The task’s project (prj_…).
namestringThe file name as Taskloader keeps it (up to 255 characters): the name sent, with /, \, tabs, line breaks and other control characters replaced by _; zero-width spaces, byte-order marks and text-direction characters removed; and spaces at either end trimmed.
sizeintegerThe file’s size in bytes.
mimeTypestringThe file’s type, one of the 19 accepted types, for example application/pdf.
kindstringHow the file can be shown: image or video (they open in the app) or file (it only downloads). New kinds may be added; treat unknown ones as file.
status"ready"Always ready: unfinished uploads are Upload objects, not attachments.
widthinteger or nullImages and videos: the width in pixels, when known; otherwise null.
heightinteger or nullImages and videos: the height in pixels, when known; otherwise null.
durationSecondsnumber or nullVideos: the length in seconds, when known; otherwise null.
previewobjectThe small preview image (a thumbnail, or a video’s poster frame).
createdByobjectWho attached the file.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.
contentUrlstringThe file’s API address (GET, with your Authorization header). It does not expire.
downloadUrlstringA signed link to the file that works without an Authorization header until urlsExpireAt; images and videos open in the browser. Never store it.
previewUrlstring or nullA signed link to the preview image (WebP or JPEG); null when there is none.
urlsExpireAtstring (date-time) or nullWhen downloadUrl and previewUrl stop working (10 minutes after this was read). Read the attachment again for fresh ones.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409upload_incompleteThe upload is missing parts
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
503storage_unavailableFile storage is unavailable

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X POST https://taskloader.com/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/complete \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "attachment",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "product-demo.mp4",
  "size": 20971520,
  "mimeType": "video/mp4",
  "kind": "video",
  "status": "ready",
  "width": null,
  "height": null,
  "durationSeconds": null,
  "preview": {
    "status": "none"
  },
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-18T10:00:00.123Z",
  "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content",
  "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?disposition=inline&exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
  "previewUrl": null,
  "urlsExpireAt": "2026-11-18T10:10:00.000Z"
}

Cancel an upload

#

Cancels an unfinished upload and frees what storage holds for it.

HTTP
DELETE /api/v1/uploads/{uploadId}
  • Scopes: files:write
  • Who: The person who started the upload
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket

Cancels an unfinished upload; the parts already stored are removed in the background, and then the upload is not found. To retry a cancel safely, send an Idempotency-Key: the same key gets the first answer for 24 hours. Only the person who started the upload can cancel it. A completed upload is an attachment: delete it with delete_attachment instead.

Parameters

#
NameInTypeRequiredDescription
uploadIdpathid (att_…)YesThe upload’s id (att_…), as start_upload returned it.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Response

#

200 with an upload object.

FieldTypeDescription
object"upload"
idid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
canceledtrue

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X DELETE https://taskloader.com/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "upload",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "canceled": true
}

Delete an attachment

#

Deletes a file from its task.

HTTP
DELETE /api/v1/attachments/{attachmentId}
  • Scopes: files:write
  • Who: Editor or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket
  • MCP tool: delete_attachment

Deletes a finished attachment: it disappears for everyone at once and its storage is freed in the background. It cannot be restored. The task’s history records who removed it. To retry a delete safely, send an Idempotency-Key: the same key gets the first answer for 24 hours, while a retry without one answers 404 once the delete went through. To stop an unfinished upload, use cancel_upload.

Parameters

#
NameInTypeRequiredDescription
attachmentIdpathid (att_…)YesAttachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Response

#

200 with an attachment object.

FieldTypeDescription
object"attachment"
idid (att_…)Attachment id: att_ followed by 32 lowercase hex digits, for example att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namestringThe name of the file that was deleted.
deletedtrue

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X DELETE https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "attachment",
  "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "launch-plan.pdf",
  "deleted": true
}