List Campaigns
List campaigns newest first.
MethodGET
/api/v2/campaignsLists campaigns newest first. Permission: campaigns.
Query Parameters
| Name | Type | Description |
|---|---|---|
limit | integer | Page size. |
after | string | Campaign id cursor. Next page after this id. |
status | string | Filter: DRAFT, ARCHIVED, SCHEDULED, SENDING, SENT, FAILED, or all. |
query | string | Search name or subject. |
after is a campaign id from the previous page. before is rejected.
Response Fields
| Field | Type | Description |
|---|---|---|
object | "list" | Discriminator. Always list. |
has_more | boolean | true when another page exists. |
data | array | Campaign list rows. |
Each row: id, name, subject, status, recipientCount, emailsSentCount, emailsOpenedCount, emailsClickedCount, scheduledAt, sendAt.
Errors
| Status | name | When |
|---|---|---|
| 401 | missing_api_key | Missing or invalid bearer token |
| 403 | missing_permission | Token lacks the campaigns permission |
| 422 | validation_error | before passed, or invalid query |