Skip to main content
CampaignsVersion: v3New

Get Email Campaign by ID

GET/emails/locations/{locationId}/campaigns/emails/{campaignId}

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):

  1. Version A is the campaign itself. Create it with Create Email Campaign and edit it with Update Email Campaign.
  2. 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 (index 1 = 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.
  3. Check the versions before sending: Get Email Campaign lists them in abVersions (with each documentId); Validate Email Campaign checks every version (issues carry variationIndex); Preview Email Campaign and Test Send Email Campaign take variationIndex to show or test-send one version. Use these to read a version; Upsert A/B Variation creates the version when it is missing.
  4. Start the test with Schedule Campaign abTestConfig: testType=emailContent with variations[index].documentId from abVersions (index 0 = version A, no documentId needed), or testType=subjectLine with one subject per version. Without abTestConfig the campaign sends version A only, and versions B, C, ... are never sent. The test group must give every version at least 10 contacts (see abTestConfig.testSize); otherwise Schedule Campaign returns 400.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:emails/campaigns.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location ID

Example:ve9EPM428h8vShlRW1KT
campaignIdstringrequired

Campaign ID

Example:67f15c2ae99226d5bcccb8f3

Query Parameters

includeContentboolean

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.

Default:false
Example:true

Response

Success

idstringrequired

Campaign ID

Example:67f15c2ae99226d5bcccb8f3
sourcestring

Source of the campaign

Example:email-campaign
sourceIdstring

Source ID of the campaign

Example:bulkRequest_abc123
namestring

Campaign name

Example:February Newsletter
statusstring

Campaign status

Available optionsallsentfailedarchiveddraftprocessingscheduledcancelledpaused
Example:sent
campaignTypestring

Campaign delivery type

Example:bulk-email
campaignCategorystring

Campaign category

Example:normal
variationsobject[]

AB test variation identifiers (available only for AB test campaigns)

abVersionsobject[]

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.

editorTypestring

Original editor type the campaign was created with

Available optionshtmlbuildertext
Example:html
isPlainTextboolean

Whether the campaign uses plain text

Example:false
editorContentUrlstring

URL to fetch the rendered campaign content as HTML. Issue a GET against this URL to retrieve the body.

Example:https://storage.googleapis.com/email-templates/abc123.html
editorContentobject

Current 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.

designEditorV2boolean

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.

Example:true
fromNamestring

Sender name

Example:John Doe
fromEmailstring

Sender email address

subjectstring

Email subject line

Example:Welcome to our newsletter
replyToAddressstring

Reply-to email address

previewTextstring

Preview text

Example:Check out our latest updates
deletedbooleanrequired

Whether the campaign is deleted

Example:false
createdAtstringrequired

Created at timestamp

Example:2025-07-24T11:55:43.598Z
updatedAtstringrequired

Last updated timestamp

Example:2026-02-09T04:49:12.322Z
traceIdstring

Trace ID of the request

Example:019e4ef5-a65e-4198-8cf9-8e93dca9bda4