latestSwagger 2.02026-08-10148196271.0 KB

afaab604b58c

campaigns

List campaign metadata

Get metadata about campaigns in a project. Use <code>page</code> and <code>pageSize</code> parameters to paginate results. If the unpaginated campaigns API is allowed for your project, then all campaigns are returned if no pagination parameters are provided. The unpaginated behavior is deprecated and may be removed in the future. <b>Rate limit</b>: 100 requests/second, per project.

get/api/campaigns

Query parameters

pageinteger

Page number (starting at 1).

pageSizeinteger

Number of results to return per page (defaults to 20, maximum of 1000).

sortstring

Field to sort campaigns by, with optional direction prefix. Use - for descending, + or no prefix for ascending. Campaigns can be sorted by id, name, createdAt, updatedAt, or startAt. Examples: -createdAt, +name, id

campaignStatestring[]

Filter campaigns by state. Can be specified multiple times to filter by multiple states. Valid states: Draft, Ready, Scheduled, Running, Finished, Starting, Aborted, Recurring, Archived. Example: ?campaignState=Ready&campaignState=Running

Response

successful operation