Campaigns
List campaigns
List campaigns.
status?stringOne status, or several comma separated.
period?stringKeeps campaigns created in that window. Without it, every campaign counts.
Value in
"today""last_7_days""last_30_days""last_90_days""this_month""last_month""this_year""all_time"search?stringPart of the name, any case.
since?stringCreated at or after this time; instead of period.
Format
date-timeuntil?stringCreated before this time; instead of period.
Format
date-timechannel?stringKeeps campaigns on that channel.
Value in
"sms""whatsapp"sender_id?stringSent from this sender ID.
Length
length <= 11run_type?stringCampaigns with a run of this type.
Value in
"single""recurring"group_id?stringCampaigns whose audience includes this group.
Format
uuidlimit?integerRange
1 <= value <= 100Default
25cursor?stringThe next_cursor of the previous page. Opaque.
X-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
curl -X GET 'https://v3.ghala.io/v1/campaigns'{ "next_cursor": "string", "has_more": true, "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "sender_id": "string", "body": "string", "status": "draft", "channel": "sms", "audiences": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "contact_count": 0, "created_at": "2019-08-24T14:15:22Z" } ], "all_contacts": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]}