Skip to main content
GET/sms-campaign/:id/

Get single SMS campaign

You can return details about a specific SMS campaign.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the campaign which is given by User automatically.

Request​

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

Response examples​

{
"extra_data": {
"all_recipients": null,
"recipients_lists": [],
"recipients_segments": []
},
"id": 11,
"description": "",
"type": 1,
"eta": null,
"name": "Example name",
"status": 1,
"messages": [
{
"id": 40,
"body": "Example body",
"name": "Example name",
"message_id": 11,
"is_archived": false
}
],
"recipients": [
1081
],
"created_at": "2026-10-23T15:26:44.449379Z",
"updated_at": "2026-10-23T15:29:44.004077Z",
"phone_number": null,
"provider": null,
"recipients_count": 1,
"statistics": {
"scheduled": 1,
"delivered": 0,
"delivery_percentage": 0,
"bounced": 0,
"total_click_count": 0,
"unique_click_count": 0,
"click_percentage": 0
},
"twoway_provider": null,
"provider_redlink": null,
"provider_serwersms": null,
"provider_clicksend": null,
"provider_messente": null,
"provider_cm": null,
"provider_autopay": null,
"use_trial_provider": false,
"category": null,
"url_shortener_enabled": false,
"folder": null,
"recipients_segments": [],
"recipients_lists": []
}

Response fields​

Fields returned in the 200 OK response body.

extra_dataobjectnullable
Recipients chosen in the panel: recipients_lists, recipients_segments and all_recipients. null for campaigns created through the API.
extra_data.all_recipientsbooleannullable
Whether the panel's all-recipients option was chosen.
extra_data.recipients_listsarray
IDs of the lists chosen as recipients.
extra_data.recipients_segmentsarray
IDs of the segments chosen as recipients.
idinteger
A unique identifier for the campaign which is given by User automatically.
descriptionstring
A description of the SMS campaign.
typeintegernullable
A type of SMS campaign (1 - simple, 2 - automated).
etastringnullable
When sending starts. Set when the campaign is sent from the panel without one; null until then.
namestring
A SMS campaign name.
statusintegernullable
1 draft, 2 active or 3 archived.
messagesarray of objects
Message variations of the campaign.
messages[].idinteger
A unique identifier for the campaign which is given by User automatically.
messages[].bodystring
A content of a web push message.
messages[].namestring
A SMS campaign name.
messages[].message_idinteger
ID of the SMS message.
messages[].is_archivedboolean
Whether the message is archived.
recipientsarray of integernullable
A list of user_ids.
created_atstring (date-time)
A creation date of a campaign.
updated_atstring (date-time)
A date of last campaign update.
phone_numberobjectnullable
A phone number where SMS will be sent
providerintegernullable
ID of the SMSAPI credentials the campaign sends with, or null.
recipients_countinteger
A number of recipients.
statisticsobject
Delivery and click statistics of the campaign.
statistics.scheduledinteger
Number of notifications scheduled.
statistics.deliveredinteger
Number of notifications delivered.
statistics.delivery_percentageinteger
Delivered messages as a percentage of scheduled ones, rounded.
statistics.bouncedinteger
Number of messages that failed to deliver.
statistics.total_click_countinteger
Number of clicks on shortened links in the messages.
statistics.unique_click_countinteger
Number of messages whose shortened links were clicked at least once.
statistics.click_percentageinteger
Messages with a click as a percentage of messages with shortened links.
twoway_providerintegernullable
ID of the two-way SMS provider, or null. With one, every message ends with STOP and the provider's short number.
provider_redlinkintegernullable
ID of the RedLink credentials the campaign sends with, or null.
provider_serwersmsintegernullable
ID of the SerwerSMS credentials the campaign sends with, or null.
provider_clicksendintegernullable
ID of the ClickSend credentials the campaign sends with, or null.
provider_messenteintegernullable
ID of the Messente credentials the campaign sends with, or null.
provider_cmintegernullable
ID of the CM.com credentials the campaign sends with, or null.
provider_autopayintegernullable
ID of the Autopay credentials the campaign sends with, or null.
use_trial_providerboolean
Whether the campaign sends through User's trial SMS provider.
categoryintegernullable
ID of the campaign's SMS category, or null.
url_shortener_enabledboolean
Whether links in the messages are shortened so that clicks can be counted.
folderintegernullable
ID of the folder the campaign is in, or null.
recipients_segmentsarray
IDs of the segments chosen as recipients in the panel, copied from extra_data.
recipients_listsarray
IDs of the lists chosen as recipients in the panel, copied from extra_data.
all_recipientsbooleannullable
Whether the panel's all-recipients option was chosen.
note

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