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

NameTypeDescription
limitnumberPage size.
afterstringCursor: older campaigns.
beforestringCursor: newer campaigns.
status"all" / "DRAFT" / "ARCHIVED" / "SCHEDULED" / "SENDING" / "SENT" / "FAILED"Filter by status. "all" is omitted from the request.
querystringSearch by name or subject.

Response Fields

FieldTypeDescription
object"list"Discriminator. Always list.
has_morebooleantrue when another page exists.
dataCampaignListItem[]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 } }.