List Campaigns

List campaigns newest first.

MethodGET
/api/v2/campaigns

Lists campaigns newest first. Permission: campaigns.

Query Parameters

NameTypeDescription
limitintegerPage size.
afterstringCampaign id cursor. Next page after this id.
statusstringFilter: DRAFT, ARCHIVED, SCHEDULED, SENDING, SENT, FAILED, or all.
querystringSearch name or subject.

after is a campaign id from the previous page. before is rejected.

Response Fields

FieldTypeDescription
object"list"Discriminator. Always list.
has_morebooleantrue when another page exists.
dataarrayCampaign list rows.

Each row: id, name, subject, status, recipientCount, emailsSentCount, emailsOpenedCount, emailsClickedCount, scheduledAt, sendAt.

Errors

StatusnameWhen
401missing_api_keyMissing or invalid bearer token
403missing_permissionToken lacks the campaigns permission
422validation_errorbefore passed, or invalid query