Get Campaign Message
GEThttps://a.klaviyo.com/api/campaign-messages/{id}
Returns a specific message based on a required id.
- Revision header
revision: 2025-01-15required- Scopes
campaigns:read- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
The message ID to be retrieved
Query parameters
For more information please visit API overview
For more information please visit API overview
For more information please visit API overview
For more information please visit API overview
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2025-01-15
Responses
200Success
Content type: application/vnd.api+json
Show 5 fields
Show 3 fields
The message ID
Show 4 fields
Option 1:
EmailMessageDefinitionThe label or name on the message
Show 7 fields
The subject of the message
Preview text associated with the message
The email the message should be sent from
The label associated with the from_email
Optional Reply-To email address
Optional CC email address
Optional BCC email address
Option 2:
SMSMessageDefinitionOption 3:
MobilePushMessageStandardDefinitionThe key-value pairs to be sent with the push notification
Show 3 fields
Only supported on iOS.
Option 1:
MobilePushBadgeWhether to display a badge on the app icon
Badge options
Option 2:
MobilePushNoBadgeWhether to display a badge on the app icon
Only supported on iOS.
The list of appropriate Send Time Sub-objects associated with the message
The datetime when the message was created
The datetime when the message was last updated
Show 1 field
Option 1:
CampaignResponseObjectResourceThe campaign ID
Show 11 fields
The campaign name
The current status of the campaign
Whether the campaign has been archived or not
Options to use when sending a campaign
The tracking options associated with the campaign
Option 1:
CampaignsEmailTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Whether the campaign is tracking click events. If not specified, uses company defaults.
Whether the campaign is tracking open events. If not specified, uses company defaults.
Option 2:
CampaignsSMSTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Option 1:
DynamicTrackingParamOption 2:
StaticTrackingParam
The send strategy the campaign will send with
Option 1:
StaticSendStrategyThe time to send at
If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 1:
LocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.
Option 2:
NonLocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 3:
ImmediateSendStrategyOption 5:
ABTestSendStrategyOption 6:
UnsupportedSendStrategy
The datetime when the campaign was created
The datetime when the campaign was scheduled for future sending
The datetime when the campaign was last updated by a user or the system
The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.
Option 3:
TemplateResponseObjectResourceThe ID of template
Show 7 fields
The name of the template
editor_typehas a fixed set of values:- SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template
- SIMPLE: A rich text editor template
- CODE: A custom HTML template
- USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor
The rendered HTML of the template
The template plain_text
The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo
The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json