campaigns
List campaigns
Returns a list of campaigns in a paginated manner. Each object in the collection represents a Campaign. This endpoint should always return a result even if there are zero campaigns in the collection.
get/campaigns
Query parameters
per_pageinteger
Number of objects to be returned, per page.
ending_beforestring
ending_before is the ID of the object that should be included in order to fetch the previous page of the list, which ends before this object's place in the collection.
starting_afterstring
starting_after is the ID of the object that should be included in order to fetch the next page of the list, which begins after this object's place in the collection.
scopesobject
Scopes can be used to search through and filter a collection of results.
Response
OK
Example response
{
"per_page": 15,
"total": 100,
"collection": [
{
"id": 111,
"name": "January Newsletter",
"status": "draft",
"template": {
"id": 111,
"name": "Welcome",
"subject_part": "Welcome to Mailbadger {{name}}!"
}
}
]
}