×
GET

https://<your_api_key>:<your_api_token><subdomain>/v2/accounts/<your_sid>/campaigns

To get the details of bulk campaign details in your account, make an HTTP GET request.

This API allows you to fetch bulk campaign details with sorting and searching capabilities. 
 

Parameter
Name
Value
Description
* offset
query

offset (optional)-  By specifying offset, you retrieve a subset of records starting with the offset value. Offset is zero-based i.e. the 10th record is at offset 9

* limit
query

limit(optional)- number of records on single page default:20 maximum=500

* name
query

name (optional)-Search on Campaign name 

* status
query

status (optional)- By default all records will be populated of all status. However, you can filter on set of status too. eg, status=in-progress, created

* sort_by
query

sort_by (optional)- This indicates in what order the campaign records are sorted in the API response. By default records are sorted by DateCreated in ascending order. However, you can override the same in following way for ascending order: Eg: date_created:asc or name:asc

* type
query

type (Optional)- It’s an optional parameter in the request but mandatory in the response. It’s allowed (and default) value is ‘trans’. If not passed in the request, we will create campaign as type ‘trans’ and pass this parameter in the API response. As per regulations, we support only transactional type of campaigns.

Response Content Type
GET

https://<your_api_key>:<your_api_token><subdomain>/v2/accounts/<your_sid>/campaigns

To get the details of bulk campaign details in your account, make an HTTP GET request.

This API allows you to fetch bulk campaign details with sorting and searching capabilities. 
 

Parameter
Name
Value
Description
* offset
query

offset (optional)-  By specifying offset, you retrieve a subset of records starting with the offset value. Offset is zero-based i.e. the 10th record is at offset 9

* limit
query

limit(optional)- number of records on single page default:20 maximum=500

* name
query

name (optional)-Search on Campaign name 

* status
query

status (optional)- By default all records will be populated of all status. However, you can filter on set of status too. eg, status=in-progress, created

* sort_by
query

sort_by (optional)- This indicates in what order the campaign records are sorted in the API response. By default records are sorted by DateCreated in ascending order. However, you can override the same in following way for ascending order: Eg: date_created:asc or name:asc

* type
query

type (Optional)- It’s an optional parameter in the request but mandatory in the response. It’s allowed (and default) value is ‘trans’. If not passed in the request, we will create campaign as type ‘trans’ and pass this parameter in the API response. As per regulations, we support only transactional type of campaigns.

Response Content Type
Share