List SMS campaigns
GET /sms_campaigns
/sms_campaignsReturns the SMS campaigns of your account, newest first, with their status, audience, message and sender. Email campaigns are not included: they have their own list.
When to use: To find an SMS campaign by name, status or audience, to see what was sent last, or to get the UUID that the other SMS campaign operations ask for.
When not to use: To read one SMS campaign in full, with its recipient count and delivery warnings, use get_sms_campaign. For email campaigns, use list_campaigns.
Filters: Default order: newest created first.
title: campaigns whose name contains the text.status: exact status, for examplecampaign.status.sent(same values as thestatusfield).type: exact type; SMS campaigns are alwayscampaign.regular.hash: exact hash of the campaign.audience: UUID of the audience.
Sorting: order[createdAt], order[updatedAt], order[status], order[startedAt] (when sending began) or order[finishedAt] (when it ended), each asc or desc. For the last one sent, combine status=campaign.status.sent with order[startedAt]=desc&itemsPerPage=1.
Permissions: Requires the viewer role or higher, or the marketing.campaigns.read capability.
Value for the X-Auth-Token header parameter.
In: header
Query Parameters
Page number, starting at 1.
1Number of SMS campaigns per page (default 30, maximum 50).
0 <= value <= 5030Return only SMS campaigns whose name contains this text.
Return only SMS campaigns in this status, with the same value as the status field of a campaign.
Return only campaigns of this type, with the same value as the type field. SMS campaigns are always campaign.regular.
Return only the campaign with this hash: the unique tracking code of the campaign.
Return only SMS campaigns of the audience with this UUID (the UUID alone, not the IRI).
Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/sms_campaigns?page=1&itemsPerPage=30&title=Black+Friday&status=campaign.status.sent&type=campaign.regular&hash=ELGMiR3jr3pHxR4P5AS0sX&audience=0df14405-90ff-4287-b3e4-ef088901ee6f" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "sms_config": { "message": "string", "sms_sender": "/entity/1" }, "sms_campaign_config": { "track_clicks": true, "track_ecommerce": true, "track_google_analytics": true, "google_analytics_tag": "string" }, "sms_campaign_stats": { "sent": 0, "delivered": 0, "failed": 0, "failed_rate": 0.1, "unsubscribed": 0, "replies": 0, "credits_consumed": 0, "credits_reserved": 0, "delivery_rate": 0.1, "clicked": 0, "click_rate": 0.1, "to_send": 0 }, "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "status": "campaign.status.draft", "type": "campaign.regular", "channel": "sms", "send_to": "string", "audience": "string", "list_segment": "/entity/1", "groups": [ "string" ], "hash": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "finished_at": "2019-08-24T14:15:22Z", "contact_targeting": { "kind": "segment", "contact_segment": "/entity/1", "contact_segment_name": "string", "contact_segment_deleted": true, "revision_status": "following_latest", "pinned_at": "2019-08-24T14:15:22Z", "error_code": "string", "filter": { "match": "all", "conditions": [ { "field": "string", "operator": "string", "value": null, "audience": "0ff0092a-9631-4ad5-a4dd-fe4329a52f3b", "match": "all", "conditions": [ {} ] } ] } } }]