Zum Inhalt springen

List campaigns

GET
/campaigns
Code sample: Shell / cURL
curl --request GET \
--url 'https://rocketem.fotone.io/api/v2/campaigns?status=draft&mail_status=idle&campaign_type=batch&per_page=50&page=1' \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read

Returns paginated campaigns, optionally filtered by status.

status
string
Allowed values: draft published scheduled sending sent paused cancelled failed

Workflow lifecycle filter. sending is a compatibility alias that translates to mail_status IN (sending, paused, ab_testing) — use the explicit mail_status parameter for precise queries. An unknown value answers 422.

mail_status
string
Allowed values: idle scheduled queued sending paused completed sent failed stopped cancelled ab_testing simulating test_sending trigger_active trigger_inactive

Send-lifecycle filter. Unlike status, this reflects the current state of the actual send (idle/queued/sending/completed/etc.). An unknown value answers 422.

campaign_type
string
Allowed values: batch trigger

Filter by campaign type (batch = regular newsletter sends, trigger = API-triggered campaigns)

per_page
integer
default: 50 >= 1 <= 100
page
integer
default: 1 >= 1
include_total
boolean

Campaign list

Media typeapplication/json
object
data
Array<object>
object
id
string
name
string
subject
string
status
string
mail_status
string
campaign_type
string
language
string
sent_at
string format: date-time
nullable
created_at
string format: date-time
meta
object
per_page
integer
page
integer
has_more
boolean
total
integer

Example generated

{
"data": [
{
"id": "example",
"name": "example",
"subject": "example",
"status": "example",
"mail_status": "example",
"campaign_type": "example",
"language": "example",
"sent_at": "2026-04-15T12:00:00Z",
"created_at": "2026-04-15T12:00:00Z"
}
],
"meta": {
"per_page": 1,
"page": 1,
"has_more": true,
"total": 1
}
}