List campaigns
Changed onMerchant campaigns only: Shopper campaigns are not listed, and their ids read 404 here and on the campaign's other routes. Declared filters — filter[status] (eq, in), filter[channel] (eq — over messages[].channel), filter[created_at] (gt/gte/lt/lte). Any undeclared filter/sort/expand is 400, never silently ignored.
Request
- Base URLhttps://api.pscrpt.com/v1
- URLhttps://api.pscrpt.com/v1/campaigns
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.pscrpt.com/oauth/authorizeToken URL: https://api.pscrpt.com/oauth/token scopes: campaigns:read
Query parameters
preparing/active are system-driven; completed/cancelled/archived are terminal (archived via the archive-style DELETE). paused is a migrated campaign whose schedule is carried over but not armed; it never sends until armed.
Comma-separated sort keys; a leading - is descending and its absence is ascending. Allowed fields: created_at, updated_at, name, id. Default: -created_at, -id.
Headers
Overrides the key's pinned API revision for this request.
Response
One page of campaigns.
Example response
{
"data": [
{
"archived_at": "2026-07-23T17:32:01.123456Z",
"created_at": "2026-07-23T17:32:01.123456Z",
"schedule": {
"send_at": "2026-07-23T17:32:01.123456Z"
},
"send_completed_at": "2026-07-23T17:32:01.123456Z",
"send_started_at": "2026-07-23T17:32:01.123456Z",
"updated_at": "2026-07-23T17:32:01.123456Z"
}
]
}Changes
- info
endpoint added
- info