List Tags POST
Returns your account's tags (contact groups), paginated, with optional search by tag name.
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/requestTagContent Type
application/json — the body is optional; if it is missing or not valid JSON, all defaults apply
Parameter Description
| Property | Type | Required | Description |
|---|---|---|---|
search | string | Optional | Case-insensitive partial match on the tag name |
page | number | Optional | Page number, starting at 1 (default 1) |
pageSize | number | Optional | Items per page, 1–100 (default 50) — 101–200 is treated as 20; any other out-of-range value as 50 |
Response Description
| Property | Type | Description |
|---|---|---|
status | number | 200 on success |
data | array | null | List of Tag, newest first — null when nothing matches |
total | number | Total number of matching tags |
page | number | Current page |
pageSize | number | Page size actually applied |
totalPages | number | Total number of pages |
Tag
| Property | Type | Description |
|---|---|---|
tagId | string | Tag ID (UUID) |
accountId | number | Your account ID |
name | string | Tag name |
isDeleted | boolean | Always false in this result |
createdBy | number | ID of the user who created it |
createdAt | string | Creation time (ISO 8601) |
updatedAt | string | Last update time (ISO 8601) |
Request Example
bash
curl -X POST 'https://public-api.smsup-plus.com/Tag/requestTag' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"search": "vip",
"page": 1,
"pageSize": 50
}'js
const res = await fetch('https://public-api.smsup-plus.com/Tag/requestTag', {
method: 'POST',
headers: { Authorization: 'Bearer <API_KEY>', 'Content-Type': 'application/json' },
body: JSON.stringify({ search: 'vip', page: 1, pageSize: 50 }),
})
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.000Z",
"updatedAt": "2026-11-16T03:10:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 50,
"totalPages": 1
}Possible Errors
| HTTP | Response | Cause |
|---|---|---|
| 200 | {"status":500,"description":"Failed to query tags."} | Query failed, e.g. search is an invalid regular expression |
| 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.
TIP
search is interpreted as a regular expression — escape special characters such as + ( ) . * ? with \ to match them literally.
