List SMS topics
GET/api/v1/sms/topics
GET /sms/topics
curl -X GET 'https://www.unitpost.com/api/v1/sms/topics' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "topic",
"id": "id_123",
"name": "Example",
"description": "string",
"channel": "email",
"default_opt_in": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Retrieve your SMS subscription topics, cursor-paginated. An SMS topic is a category of marketing SMS (e.g. Flash sales) recipients can opt out of while still receiving your other texts. SMS and email topics are separate: a contact's email preference never changes their SMS one, and STOP still opts a number out of every SMS. Pass ?archived=true to list archived topics instead. Create one with Create an SMS topic. Requires the topics:read capability.
Parameters4 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
archived | boolean · query | When true, list only archived SMS topics instead of active ones. |
Response · 200 fields8 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
descriptionrequired | string | null | — |
channelrequired | enumemail | sms | Which channel the topic belongs to. Email topics are managed under `/email/topics`, SMS topics under `/sms/topics`. |
default_opt_inrequired | boolean | — |
created_atrequired | string | — |
updated_atrequired | string | — |
200401403404422