Basic

Create a campaign

Changed on

Create a campaign with the specified properties and receive a copy of the campaign object, including its ID. Note that the 'hs_goal' property is deprecated and will be ignored if provided.

post/marketing/campaigns/2026-03

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/marketing/campaigns/2026-03
  • Auth
    • HTTP bearer
    • or API key in query parameter hapikey
    • or none

Request body

propertiesobject required

A collection of key-value pairs representing the properties of the campaign. Each key is a property name, and the corresponding value is the property's value.

Response

successful operation

createdAtstring date-time required

The date and time when the campaign was created, formatted as a date-time string.

idstring required

The unique identifier for the campaign.

propertiesobject required

A collection of key-value pairs representing additional properties of the campaign.

updatedAtstring date-time required

The date and time when the campaign was last updated, formatted as a date-time string.

Changes

    • info

      api operation id post-/marketing/campaigns/2026-03_/marketing/campaigns/v3 removed and replaced with post-/marketing/campaigns/2026-03

    • info

      api operation id post-/marketing/campaigns/2026-03_/marketing/campaigns/2026-03 removed and replaced with post-/marketing/campaigns/2026-03_/marketing/campaigns/v3

Some revisions have not been checked yet.