Basic

Create a campaign with the given properties and return a copy of the object, including the ID. Note: The 'hs_goal' property is deprecated and will be ignored if provided.

post/marketing/v3/campaigns

Request

  • Base URL
    https://api.hubapi.com
  • Auth
    OAuth 2
    Authorization codehttps://app.hubspot.com/oauth/authorize
    Token URLhttps://api.hubapi.com/oauth/v1/token
    Scopesmarketing.campaigns.write

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