Create tag
POST
/api/v1/ext/tags
Add a tag to the library.
Auth: Bearer access_token
Scope: contacts.write
Up to 100 characters. Creating a name the workspace already has answers 200 with the existing tag (201 when it is new), so the call is safe to repeat. The library row makes the tag available in pickers; it does not tag any contact — use *Add tags* on a contact for that.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | body | number | yes | The workspace. |
| name | body | string | yes | The tag. |
Responses
| Status | When |
|---|---|
201 | Created |
200 | The name was already in the library |
400 | No name, or over 100 characters |
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 POST "https://backend.mysmsgateway.app/api/v1/ext/tags" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 7,
"name": "vip"
}'Created
{
"success": true,
"message": "Tag created",
"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"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/tags
Previous
« List tags
Next
Rename tag »
