lumail.campaigns.list
SDK 2.1.0 · API v2 · GET /api/v2/campaigns
MethodGET
/api/v2/campaigns[email protected] · lumail.campaigns
campaigns.list(params?: ListCampaignsParams): Promise<ListCampaignsResponse>Newest first. status: "all" is dropped by the SDK and not sent.
Query Parameters
| Name | Type | Description |
|---|---|---|
limit | number | Page size. |
after | string | Cursor: older campaigns. |
before | string | Cursor: newer campaigns. |
status | "all" / "DRAFT" / "ARCHIVED" / "SCHEDULED" / "SENDING" / "SENT" / "FAILED" | Filter by status. "all" is omitted from the request. |
query | string | Search by name or subject. |
Response Fields
| Field | Type | Description |
|---|---|---|
object | "list" | Discriminator. Always list. |
has_more | boolean | true when another page exists. |
data | CampaignListItem[] | Campaigns. Each row: id, name, subject, status, recipientCount, emailsSentCount, emailsOpenedCount, emailsClickedCount, scheduledAt, sendAt. |
data is { object, data, has_more }. Failures return { data: null, error: { name, message, statusCode } }.