Create Tag POST
Creates a new tag (contact group) in your account. Use the returned tagId to assign contacts.
Authorization
API Key (Authentication) — send the header Authorization: Bearer <API_KEY> (API keys start with smsk_)
HTTP Request
http
POST https://public-api.smsup-plus.com/Tag/insertTagContent Type
application/json
Parameter Description
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Required | Tag name, must not be empty |
Response Description
| Property | Type | Description |
|---|---|---|
status | number | 200 on success |
data | object | The created tag — same fields as Tag |
data.tagId | string | Tag ID (UUID) used by the other endpoints |
Request Example
bash
curl -X POST 'https://public-api.smsup-plus.com/Tag/insertTag' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"name": "VIP"
}'js
const res = await fetch('https://public-api.smsup-plus.com/Tag/insertTag', {
method: 'POST',
headers: { Authorization: 'Bearer <API_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'VIP' }),
})
console.log(await res.json())Response Example
json
{
"status": 200,
"data": {
"tagId": "a1c2e3f4-5b6d-4e7f-8a9b-0c1d2e3f4a5b",
"accountId": 1024,
"name": "VIP",
"isDeleted": false,
"createdBy": 2048,
"createdAt": "2026-11-16T03:10:00.123456789Z",
"updatedAt": "2026-11-16T03:10:00.123456789Z"
}
}Possible Errors
| HTTP | Response | Cause |
|---|---|---|
| 200 | {"status":400,"description":"name is required."} | name missing or empty, or body is not JSON |
| 200 | {"status":500,"description":"Failed to create tag."} | Save failed — retry |
| 401 | {"error":"invalid api key"} | Invalid API key — see Errors |
WARNING
Once authenticated, this endpoint always answers HTTP 200. Check the status field in the body.
INFO
Tag names are not checked for duplicates — calling again with the same name creates another tag with a different tagId. List tags first.
