List tags
GET
/api/v1/ext/tags
A workspace's tag library, A–Z.
Auth: Bearer access_token
Scope: contacts.read
The library is the list the dashboard's tag pickers and Settings › Tags manage. A contact's tags are kept on the contact itself, so a tag can be on contacts without being in the library (imports, platform sync, automations). Pass include_in_use=1 to get those too: rows with source: "contact" (on contacts only) or source: "agent" (an AI agent's tag, with agent_name) and id: null. Only library rows have an id and can be renamed or deleted.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | The workspace. |
| search | query | string | no | Part of a name. |
| include_in_use | query | boolean | no | 1 = also the tags that are on contacts or AI agents but not in the library. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | No workspace_id |
401 | Missing or invalid token |
403 | Missing scope |
404 | Workspace does not exist or is not owned by the installer (same response for both) |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/tags" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": [
{
"id": 310,
"workspace_id": 7,
"name": "vip",
"source": "library",
"created_at": "2026-11-04T02:10:00.000Z",
"updated_at": "2026-11-04T02:10:00.000Z"
},
{
"id": 311,
"workspace_id": 7,
"name": "demo-booked",
"source": "library",
"created_at": "2026-11-04T02:11:00.000Z",
"updated_at": "2026-11-04T02:11:00.000Z"
},
{
"id": null,
"workspace_id": 7,
"name": "Sales Agent",
"source": "agent",
"agent_name": "Sales Agent",
"created_at": null,
"updated_at": null
}
]
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters
The workspace.
Part of a name.
1 = also the tags that are on contacts or AI agents but not in the library.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/tags
Previous
« Set DND
Next
Create tag »
