List Email Campaigns
Lists the project's campaigns with status and send progress. Audience, UTM, A/B config, and message bodies are omitted — fetch a campaign by id for those. Optionally narrow with type or types. Omit take to return every matching campaign; the dashboard passes take (max 100) and after to page.
Authorization
Authorization In: header
Path Parameters
ID of the project to list campaigns for.
Query Parameters
Return campaigns created before this campaign id. Requires the same type / types and sort as the previous page.
Maximum campaigns to return, newest first. Omit to return every matching campaign.
Return only campaigns of this kind: STANDARD for a one-off broadcast, AUTOMATION for a triggered send, AB_TEST for a split test. Omit for all three.
Return only campaigns of these kinds. Takes precedence over type when both are set.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://www.saasco.com/api/v2/projects/string/email-campaigns"[
{
"createdAt": "string",
"id": "string",
"name": "string",
"projectId": "string",
"sendCount": 0,
"sentAt": "string",
"status": "DRAFT",
"type": "STANDARD",
"updatedAt": "string"
}
]{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}