Skip to content

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/insertTag

Content Type ​

application/json

Parameter Description ​

PropertyTypeRequiredDescription
namestringRequiredTag name, must not be empty

Response Description ​

PropertyTypeDescription
statusnumber200 on success
dataobjectThe created tag — same fields as Tag
data.tagIdstringTag 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 ​

HTTPResponseCause
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.