Get Campaign

Retrieve details for a specific campaign by ID

MethodGET
/api/v1/campaigns/{campaignId}

https://lumail.io/api/v1/campaigns/{campaignId}

Retrieve detailed information about a specific campaign, including its content, sender details, and performance metrics.

Response

  • Success (200 OK) - Returns the campaign object with full details.
  • Error (404 Not Found) - Campaign not found or doesn't belong to your organization.
  • Error (401 Unauthorized) - Invalid or missing API token.

Path Parameters

ParameterTypeDescription
campaignIdstringRequired. The unique campaign ID

Response Fields

FieldTypeDescription
successbooleanIndicates if the operation was successful
campaignobjectThe campaign object with full details
campaign.idstringUnique identifier for the campaign
campaign.campaignIdstringSame as id (for consistency)
campaign.namestringName of the campaign
campaign.subjectstringEmail subject line
campaign.previewstring or nullPreview text for the email
campaign.statusstringCampaign status: DRAFT, SCHEDULED, SENDING, SENT
campaign.contentTypestringContent type: MAILY, PLATE, or MARKDOWN
campaign.contentobjectEmail content in TipTap JSON format
campaign.replyTostring or nullReply-to email address
campaign.senderIdstringEmail sender ID
campaign.scheduledAtstring or nullISO timestamp when the campaign is scheduled
campaign.sendAtstring or nullISO timestamp when the campaign was sent
campaign.timezonestringTimezone for scheduling
campaign.recipientCountnumberNumber of recipients
campaign.recipientFiltersarrayFilters applied to select recipients
campaign.emailsSentCountnumberNumber of emails sent
campaign.emailsOpenedCountnumberNumber of emails opened
campaign.emailsClickedCountnumberNumber of emails clicked
campaign.createdAtstringISO timestamp when the campaign was created
campaign.updatedAtstringISO timestamp when the campaign was last updated
campaign.senderobjectEmail sender details
campaign.sender.idstringSender ID
campaign.sender.namestringSender name
campaign.sender.displayNamestringDisplay name shown in emails
campaign.sender.localPartstringLocal part of the email address
campaign.sender.replyTostring or nullReply-to address for the sender
campaign.sender.domain.domainstringDomain for the sender email
campaignIdstringCampaign ID at the root level for convenience

Usage Example

Use this API endpoint to:

  • Retrieve full campaign details for editing
  • Display campaign content in your application
  • Check campaign status and performance metrics
  • Get sender information for a campaign
  • Build campaign preview functionality