Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI ReferenceChangelog
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Campaign events

campaign_added

A campaign was added.

Payload

KeyTypeDescription
event_namestringName of the event. The value is campaign_added.
dataobjectData of the event.
data[campaign]objectData of the campaign associated with the event.
data[campaign][id]stringUnique identifier of the campaign.
data[campaign][links]objectLinks related to the campaign.
data[campaign][links][self]stringURL to fetch the campaign's details through the CMP Open API.
data[campaign][links][work_request]string or nullURL to fetch the work request's details through the CMP Open API. The URL is available if a campaign was started from a work request. Otherwise, it is null.

Example

When a campaign is added:

{
  "event_name": "campaign_added",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612",
        "work_request": null
      }
    }
  }
}

When a campaign is added from a work request:

{
  "event_name": "campaign_added",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612",
        "work_request": "https://api.cmp.optimizely.com/v3/work-requests/9q7f910551b00a722e0418830cee6613"
      }
    }
  }
}

campaign_metadata_modified

Any of the following campaign properties are modified:

  • Title
  • Description
  • Start date
  • End date
  • Is archived
  • Labels
  • Owner

Payload

KeyTypeDescription
event_namestringName of the event. The value is campaign_metadata_modified.
dataobjectData of the event.
data[campaign]objectData of the campaign associated with the event.
data[campaign][id]stringUnique identifier of the campaign.
data[campaign][links]objectLinks related to the campaign.
data[campaign][links][self]stringURL to fetch the campaign's details through the CMP Open API.

Example

{
  "event_name": "campaign_metadata_modified",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612"
      }
    }
  }
}

campaign_brief_added

A brief was added to a campaign.

Payload

KeyTypeDescription
event_namestringName of the event. The value is campaign_brief_added.
dataobjectData of the event.
data[campaign]objectData of the campaign associated with the event.
data[campaign][id]stringUnique identifier of the campaign.
data[campaign][links]objectLinks related to the campaign.
data[campaign][links][self]stringURL to fetch the campaign's details through the CMP Open API.
data[campaign][links][brief]stringURL to fetch the campaign's brief through the CMP Open API.

Example

{
  "event_name": "campaign_brief_added",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612",
        "brief": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612/brief"
      }
    }
  }
}

campaign_brief_removed

A campaign brief was removed.

Payload

KeyTypeDescription
event_namestringName of the event. The value is campaign_brief_removed.
dataobjectData of the event.
data[campaign]objectData of the campaign associated with the event.
data[campaign][id]stringUnique identifier of the campaign.
data[campaign][links]objectLinks related to the campaign.
data[campaign][links][self]stringURL to fetch the campaign's details through the CMP Open API.

Example

{
  "event_name": "campaign_brief_removed",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612"
      }
    }
  }
}

campaign_brief_modified

A campaign brief was modified.

Payload

KeyTypeDescription
event_namestringName of the event. The value is campaign_brief_modified.
dataobjectData of the event.
data[campaign]objectData of the campaign associated with the event.
data[campaign][id]stringUnique identifier of the campaign.
data[campaign][links]objectLinks related to the campaign.
data[campaign][links][self]stringURL to fetch the campaign's details through the CMP Open API.
data[campaign][links][brief]stringURL to fetch the campaign's brief through the CMP Open API.

Example

{
  "event_name": "campaign_brief_modified",
  "data": {
    "campaign": {
      "id": "8q7f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612",
        "brief": "https://api.cmp.optimizely.com/v3/campaigns/8q7f910551b00a722e0418830cee6612/brief"
      }
    }
  }
}