List Campaigns
Lists every campaign in the store — the data behind the admin Marketing → Communications → Campaigns datagrid.
TIP
New here? Read the Campaigns overview for what a campaign does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
adminMarketingCampaigns | Query | Cursor-paginated list of all campaigns |
Details
- Requires an admin Bearer token in the
Authorizationheader. - Cursor pagination — pass
firstfor the page size andafter(theendCursorfrom the previous page) to advance.totalCountis the grand total. - Each
nodecarries the scalar campaign fields shown in the example. Thechannel,customerGroup, andmarketingTemplateobjects resolve only on the detail query — they arenullon list rows. The campaign's event is REST-only.
Filtering
Pass any of these arguments alongside first / after (they mirror the admin datagrid filters):
| Argument | Description |
|---|---|
name | Name — partial match |
status | 0 (inactive) / 1 (active) |
marketing_template_id | Email template id — exact match |
marketing_event_id | Event id — exact match |
channel_id | Channel id — exact match |
customer_group_id | Customer-group id — exact match |
sort, order | Sort field (id, name) + asc / desc (default id desc) |

