Skip to main content

SMS campaign model

You can send SMS and get statistics of your campaigns through API.

Properties​

Attributes

idinteger
A unique identifier for the campaign which is given by User.com automatically.
created_atstring
A creation date of a campaign.
descriptionstring
A description of the SMS campaign.
etastring
When sending starts, ISO 8601. Set when the campaign is sent from the panel without one. Creating a campaign through the API doesn't send it.
finished_atstring
When sending finished. Returned by list, create and update, not by Get single SMS campaign.
namestring
A SMS campaign name.
phone_numberobject
Twilio sender number of the campaign, with provider, phone_number and name; null for campaigns that send through another provider.
recipientsarray
Contact IDs the campaign goes to, or a segment filter.
recipients_countinteger
A number of recipients.
started_atstring
When sending started. Returned by list, create and update, not by Get single SMS campaign.
statusinteger
1 draft, 2 active or 3 archived.
typeinteger
A type of SMS campaign (1 - simple, 2 - automated).
updated_atstring
A date of last campaign update.
statisticsobject
Delivery and click statistics: scheduled, delivered, delivery_percentage, bounced, total_click_count, unique_click_count and click_percentage.
messagesarray
Message variations of the campaign, each with id, message_id, name, body and is_archived. Returned by Get single SMS campaign.
extra_dataobject
Recipients chosen in the panel: recipients_lists, recipients_segments and all_recipients. null for campaigns created through the API.
recipients_listsarray
IDs of the lists chosen as recipients in the panel, copied from extra_data.
recipients_segmentsarray
IDs of the segments chosen as recipients in the panel, copied from extra_data.
providerinteger
ID of the SMSAPI credentials the campaign sends with, or null.
provider_redlinkinteger
ID of the RedLink credentials the campaign sends with, or null.
provider_serwersmsinteger
ID of the SerwerSMS credentials the campaign sends with, or null.
provider_clicksendinteger
ID of the ClickSend credentials the campaign sends with, or null.
provider_messenteinteger
ID of the Messente credentials the campaign sends with, or null.
provider_cminteger
ID of the CM.com credentials the campaign sends with, or null.
provider_autopayinteger
ID of the Autopay credentials the campaign sends with, or null.
twoway_providerinteger
ID of the two-way SMS provider, or null. With one, every message ends with STOP and the provider's short number.
use_trial_providerboolean
Whether the campaign sends through User's trial SMS provider.
url_shortener_enabledboolean
Whether links in the messages are shortened so that clicks can be counted.
categoryinteger
ID of the campaign's SMS category, or null.
folderinteger
ID of the folder the campaign is in, or null.