Skip to main content
GET/sms-campaign/

Get all SMS campaigns

You can return a list of your SMS campaigns.

Results are paginated: follow next to get the next page (see Response pagination).

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/sms-campaign/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 11,
"name": "Example name",
"description": "",
"phone_number": null,
"type": 1,
"eta": null,
"status": 1,
"recipients": ,1 item
"recipients_ids": "Example recipients ids",
"recipients_count": 1,
"started_at": null,
"last_message_sent_at": null,
"finished_at": null,
"author": 77,
"created_at": "2026-10-23T15:26:44.449379Z",
"updated_at": "2026-10-23T15:29:44.004077Z",
"statistics": ,7 fields
"folder": null
},
{
"id": 10,
"name": "Example name",
"description": "",
"phone_number": null,
"type": 1,
"eta": null,
"status": 1,
"recipients": null,
"recipients_ids": null,
"recipients_count": null,
"started_at": null,
"last_message_sent_at": null,
"finished_at": null,
"author": 59,
"created_at": "2026-10-23T10:56:40.548493Z",
"updated_at": "2026-10-23T10:56:40.548537Z",
"statistics": ,7 fields
"folder": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the campaign which is given by User automatically.
results[].namestring
A SMS campaign name.
results[].descriptionstring
A description of the SMS campaign.
results[].phone_numberobjectnullable
A phone number where SMS will be sent
results[].typeinteger
A type of SMS campaign (1 - simple, 2 - automated).
results[].etastringnullable
When sending starts. Set when the campaign is sent from the panel without one; null until then.
results[].statusinteger
1 draft, 2 active or 3 archived.
results[].recipientsarray of integernullable
A list of user_ids.
results[].recipients_idsstringnullable
Contact IDs the campaign goes to, as a JSON array in a string; worked out when the recipients are saved.
results[].recipients_countintegernullable
A number of recipients.
results[].started_atstringnullable
A date when SMS campaign started.
results[].last_message_sent_atstring (date-time)nullable
When the campaign last sent a message, or null.
results[].finished_atstringnullable
A finish date of a campaign.
results[].authorinteger
ID of the agent who created the campaign or last changed it through the API.
results[].created_atstring (date-time)
A creation date of a campaign.
results[].updated_atstring (date-time)
A date of last campaign update.
results[].statisticsobject
Delivery and click statistics of the campaign.
results[].statistics.scheduledinteger
Number of notifications scheduled.
results[].statistics.deliveredinteger
Number of notifications delivered.
results[].statistics.delivery_percentageinteger
Delivered messages as a percentage of scheduled ones, rounded.
results[].statistics.bouncedinteger
Number of messages that failed to deliver.
results[].statistics.total_click_countinteger
Number of clicks on shortened links in the messages.
results[].statistics.unique_click_countinteger
Number of messages whose shortened links were clicked at least once.
results[].statistics.click_percentageinteger
Messages with a click as a percentage of messages with shortened links.
results[].folderintegernullable
ID of the folder the campaign is in, or null.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.