lumail.campaigns.get
SDK 2.1.0 · API v2 · GET /api/v2/campaigns/:campaignId
MethodGET
/api/v2/campaigns/:campaignId[email protected] · lumail.campaigns
campaigns.get(campaignId: string): Promise<LumailResult<GetCampaignResponse>>One campaign.
Path Parameters
| Name | Type | Description |
|---|---|---|
campaignId | string | Required. Campaign id. |
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Campaign id. |
campaignId | string | Optional alias of id. |
name | string | Internal name. |
subject | string | Subject line. |
preview | string or null | Preview text. |
status | CampaignStatus | DRAFT, ARCHIVED, SCHEDULED, SENDING, SENT, or FAILED. |
contentType | ContentType | Editor format. |
sendAt | string or null | Actual send time. |
scheduledAt | string or null | Scheduled send time. |
recipientCount | number | Audience size. |
emailsSentCount | number | Sent count. |
emailsOpenedCount | number | Open count. |
emailsClickedCount | number | Click count. |
createdAt | string | Optional ISO 8601 timestamp. |
updatedAt | string | Optional ISO 8601 timestamp. |
content | unknown | Campaign body. |
replyTo | string or null | Reply-To address. |
senderId | string | Sending identity id. |
timezone | string or null | Schedule timezone. |
recipientFilters | unknown[] | Audience filters. |
sender | CampaignSender | Sender: id, name, displayName, localPart, replyTo, domain.domain. |
data is the campaign. Failures return { data: null, error: { name, message, statusCode } }.