Campaigns

List campaigns

List campaigns.

Query Parameters

status?string

One status, or several comma separated.

period?string

Keeps 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?string

Part of the name, any case.

since?string

Created at or after this time; instead of period.

Formatdate-time
until?string

Created before this time; instead of period.

Formatdate-time
channel?string

Keeps campaigns on that channel.

Value in"sms""whatsapp"
sender_id?string

Sent from this sender ID.

Lengthlength <= 11
run_type?string

Campaigns with a run of this type.

Value in"single""recurring"
group_id?string

Campaigns whose audience includes this group.

Formatuuid
limit?integer
Range1 <= value <= 100
Default25
cursor?string

The next_cursor of the previous page. Opaque.

Header Parameters

X-Request-Id?string

Your 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"    }  ]}