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

NameTypeDescription
campaignIdstringRequired. Campaign id.

Response Fields

FieldTypeDescription
idstringCampaign id.
campaignIdstringOptional alias of id.
namestringInternal name.
subjectstringSubject line.
previewstring or nullPreview text.
statusCampaignStatusDRAFT, ARCHIVED, SCHEDULED, SENDING, SENT, or FAILED.
contentTypeContentTypeEditor format.
sendAtstring or nullActual send time.
scheduledAtstring or nullScheduled send time.
recipientCountnumberAudience size.
emailsSentCountnumberSent count.
emailsOpenedCountnumberOpen count.
emailsClickedCountnumberClick count.
createdAtstringOptional ISO 8601 timestamp.
updatedAtstringOptional ISO 8601 timestamp.
contentunknownCampaign body.
replyTostring or nullReply-To address.
senderIdstringSending identity id.
timezonestring or nullSchedule timezone.
recipientFiltersunknown[]Audience filters.
senderCampaignSenderSender: id, name, displayName, localPart, replyTo, domain.domain.

data is the campaign. Failures return { data: null, error: { name, message, statusCode } }.