Delete tag
DELETE
/api/v1/ext/tags/{id}
Remove a tag from the library.
Auth: Bearer access_token
Scope: contacts.write
The library row only: contacts that carry the tag keep it (remove it from them with *Remove tags*). AI agent tags are not library rows and cannot be deleted here.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | The tag id. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | Tag does not exist or is not owned by the installer (same response for both) |
RequestResponses
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/tags/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Tag deleted",
"data": {
"id": 310,
"workspace_id": 7,
"name": "vip"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The tag id.
Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/tags/%7Bid%7D
Previous
« Rename tag
Next
List custom fields »
