List marketing campaigns
The store’s marketing campaigns, newest first. IT DOES NOT CARRY THE CAMPAIGN BODY, and that is a size bound rather than a permission one: a body may be 500 KB and a page may hold 100 rows, so a list that served them could answer one request with fifty megabytes of markup. Read a single campaign to get its copy. ?status= and ?channel= narrow it, so “what is sending right now” is one call. An unknown value for either is a 400 rather than the unfiltered list, because “no paused campaign” and “there is no such status” are different facts and a client told the first stops looking. enqueued_count IS NOT DELIVERY. It counts the messages a campaign handed to the sending spine; the spine’s own compliance gate can still decline an individual recipient, and the stats route is where that shows up.
Authorizations
A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.
Query Parameters
Filter by lifecycle state. sending and paused are the two a monitoring client polls; sent and cancelled are terminal, so a campaign in either will not move again. A value outside the enum is a 400 naming the legal set.
draft, scheduled, sending, paused, sent, cancelled Filter by transport. A value outside the enum is a 400 rather than an empty page, which would read as "this store sends no email".
email, sms, push Rows per page. Out of range is a 400 rather than a silent clamp, so a client asking for more than 100 learns it did not get it.
1 <= x <= 100The next_cursor from the previous page. Opaque: decode nothing from it and construct nothing by hand, since its encoding is not part of this contract. Omit it to read the first page.
