Skip to main content

Tags

GET List tags

https://focus.toggl.com/api/workspaces/{workspace_id}/tags

Returns a list of tags based on the workspace ID.

curl  https://focus.toggl.com/api/workspaces/{workspace_id}/tags \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID

Query

nametyperequireddescription
namestringfalsefilter by name
pageintegerfalsepage number
per_pageintegerfalseresults per page
order_by[]stringfalseorder by
tag_id[]integerfalsefilter by tag IDs

Response

200

NameTypeDescription
dataArray of object-
pageinteger-
per_pageinteger-
totalinteger-
data
NameTypeDescription
colorstring-
created_atstring-
deleted_atstring-
idinteger-
namestring-
updated_atstring-
workspace_idinteger-

400

Invalid request

500

Internal Server Error

POST Create a new tag

https://focus.toggl.com/api/workspaces/{workspace_id}/tags

Creates a new tag with the provided details.

curl -X POST https://focus.toggl.com/api/workspaces/{workspace_id}/tags \
-H "Content-Type: application/json" \
-d '\{"color":"string","name":"string"\}' \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID

Body

NameTypeDescription
colorstring-
namestring-

Response

201

Tag created successfully

400

Invalid request

500

Internal Server Error

GET Get tag by ID

https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id}

Returns a tag with the provided ID.

curl  https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id} \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID
tag_idintegertruetag ID

Response

200

NameTypeDescription
colorstring-
created_atstring-
deleted_atstring-
idinteger-
namestring-
updated_atstring-
workspace_idinteger-

400

Invalid request

500

Internal Server Error

PUT Update tag

https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id}

Update an existing tag

curl -X PUT https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id} \
-H "Content-Type: application/json" \
-d '\{"color":"string","name":"string"\}'

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID
tag_idintegertrueTag ID

Body

NameTypeDescription
colorstring-
namestring-

Response

200

Successfully updated tag

NameTypeDescription
colorstring-
created_atstring-
deleted_atstring-
idinteger-
namestring-
updated_atstring-
workspace_idinteger-

400

Invalid request

500

Internal Server Error

DELETE Delete a tag by ID

https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id}

Deletes a tag with the provided ID.

curl -X DELETE https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id} \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID
tag_idintegertruetag ID

Response

204

Successfully deleted tag

400

Invalid request

500

Internal Server Error

PATCH Restore a tag by ID

https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id}/restore

Restores a tag by the provided ID.

curl -X PATCH https://focus.toggl.com/api/workspaces/{workspace_id}/tags/{tag_id}/restore \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueworkspace ID
tag_idintegertruetag ID

Response

204

Successfully restored tag

400

Invalid request

500

Internal Server Error

© 2026 Toggl. All rights reserved.