Get Email Campaign by ID
Get a single email campaign by its ID. Pass includeContent=true to get the current editorContent (version A). abVersions lists its A/B versions B, C, ... Status lifecycle: draft (created, editable) → Schedule Campaign → scheduled (waiting for sendAt or the next batch) → processing (sending) → sent. RSS campaigns have no scheduled state: while active, including between feed checks, they report processing or the status of their latest send. failed = sending errored. Pause Email Campaign: scheduled/processing → paused; Resume Email Campaign: paused → processing. Cancel Email Campaign: scheduled/processing/paused → cancelled. draft, paused and cancelled campaigns can be (re)scheduled with Schedule Campaign. archived = archived campaign (any underlying status).
How an A/B test works (follow these steps in order):
- Version A is the campaign itself. Create it with Create Email Campaign and edit it with Update Email Campaign.
- Versions B, C, ... are stored inside the same campaign, not as separate campaigns or templates. Create or edit each one with Upsert A/B Variation (
index1 = B, 2 = C, ...; create them in order). Never create another campaign or template to make a version. Versions do not show in the campaign list, and the builder only shows them once the test is scheduled. - Check the versions before sending: Get Email Campaign lists them in
abVersions(with eachdocumentId); Validate Email Campaign checks every version (issues carryvariationIndex); Preview Email Campaign and Test Send Email Campaign takevariationIndexto show or test-send one version. Use these to read a version; Upsert A/B Variation creates the version when it is missing. - Start the test with Schedule Campaign
abTestConfig:testType=emailContentwithvariations[index].documentIdfromabVersions(index 0 = version A, no documentId needed), ortestType=subjectLinewith onesubjectper version. WithoutabTestConfigthe campaign sends version A only, and versions B, C, ... are never sent. The test group must give every version at least 10 contacts (seeabTestConfig.testSize); otherwise Schedule Campaign returns 400.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
emails/ campaigns. readonlyOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version
v3v3Path Parameters
Location ID
ve9EPM428h8vShlRW1KTCampaign ID
67f15c2ae99226d5bcccb8f3Query Parameters
Set to true to include the current editorContent (HTML string or design-editor JSON) in the response. Use before editing content so changes are applied to the latest version.
falsetrueResponse
Success
Campaign ID
67f15c2ae99226d5bcccb8f3Source of the campaign
email-campaignSource ID of the campaign
bulkRequest_abc123Campaign name
February NewsletterCampaign status
allsentfailedarchiveddraftprocessingscheduledcancelledpausedsentCampaign delivery type
bulk-emailCampaign category
normalAB test variation identifiers (available only for AB test campaigns)
A/B versions after version A (the campaign itself), made with Upsert A/B Variation. Present before the test is scheduled; omitted when the campaign has none.
Original editor type the campaign was created with
htmlbuildertexthtmlWhether the campaign uses plain text
falseURL to fetch the rendered campaign content as HTML. Issue a GET against this URL to retrieve the body.
https://storage.googleapis.com/email-templates/abc123.htmlCurrent editor content, returned only when includeContent=true. A string (HTML or plain text) when editorType is html or text; the design-editor JSON (elements, attrs, templateSettings) when editorType is builder. Same shape the Update endpoint accepts, so it can be edited and sent back.
Returned as true with includeContent=true when the latest version was saved in the new design editor (DnD 2.0, block format). editorContent is then omitted: this API reads and writes only the classic design-editor JSON, and the stored classic version is older. A builder update through this API replaces the DnD 2.0 design.
trueSender name
John DoeEmail subject line
Welcome to our newsletterPreview text
Check out our latest updatesWhether the campaign is deleted
falseCreated at timestamp
2025-07-24T11:55:43.598ZLast updated timestamp
2026-02-09T04:49:12.322ZTrace ID of the request
019e4ef5-a65e-4198-8cf9-8e93dca9bda4