Skip to main content

Task-attachments

GET List task attachments​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments

Returns a list of task-attachments based on the provided workspace ID, task ID and filter params.

curl  https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID

Query​

nametyperequireddescription
order_by[]stringfalseorder by

Response​

200​

NameTypeDescription
itemsArray of object-
items​
NameTypeDescription
created_atstring-
deleted_atstring-
display_orderinteger-
idinteger-
mime_typestring-
namestring-
sizeinteger-
task_idinteger-
updated_atstring-

400​

Invalid request

500​

Internal Server Error

POST Create a new task attachment​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments

Creates a new task attachment with the provided name and workspace ID.

curl -X POST https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID

Query​

nametyperequireddescription
namestringfalseTask attachment name
display_ordernumbertrueTask attachment display order
filefiletrueattachment file

Response​

201​

Task attachment created successfully

400​

Invalid request

404​

Task does not exist

500​

Internal Server Error

POST Create task attachments in bulk​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/bulk

Creates up to 10 task attachments in a single request. All-or-nothing: if any file fails, none are created.

curl -X POST https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/bulk \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID

Query​

nametyperequireddescription
files[]filetrueattachment files (max 10)
names[]stringfalsenames for each file, indexed as names[0], names[1], etc.
display_orders[]numbertruedisplay orders for each file, indexed as display_orders[0], display_orders[1], etc.

Response​

201​

Task attachments created successfully

400​

Invalid request

404​

Task does not exist

500​

Internal Server Error

PUT Update task attachment​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id}

Update an existing task attachment

curl -X PUT https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id} \
-H "Content-Type: application/json" \
-d '\{"display_order":"integer","name":"string"\}'

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID
attachment_idstringtrueTaskAttachment ID

Body​

NameTypeDescription
display_orderinteger-
namestring-

Response​

204​

No Content

400​

Invalid request

404​

Task attachment does not exist

500​

Internal Server Error

DELETE Delete a task attachment by ID​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id}

Deletes a task attachment by the provided ID.

curl -X DELETE https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id} \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID
attachment_idintegertruetask attachment ID

Response​

204​

No Content

400​

Invalid request

404​

Task attachment does not exist

500​

Internal Server Error

GET View a task attachment​

https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id}/view

View a task attachment by the provided ID.

curl  https://focus.toggl.com/api/organizations/{organization_id}/workspaces/{workspace_id}/tasks/{task_id}/attachments/{attachment_id}/view \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
organization_idintegertrueorganization ID
workspace_idintegertrueworkspace ID
task_idintegertruetask ID
attachment_idintegertruetask attachment ID

Response​

200​

NameTypeDescription
created_atstring-
deleted_atstring-
display_orderinteger-
idinteger-
mime_typestring-
namestring-
sizeinteger-
task_idinteger-
updated_atstring-

400​

Invalid request

404​

TaskAttachment does not exist

500​

Internal Server Error

© 2026 Toggl. All rights reserved.