Basic

Create a campaign

Create a campaign with the specified properties and receive a copy of the object, including its ID. Read-only and non-existent properties will result in a 400 error. Note: The 'hs_goal' property is deprecated and will be ignored if provided.

post/marketing/campaigns/2026-09

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/marketing/campaigns/2026-09
  • Auth
    OAuth 2
    Authorization code: https://app.hubspot.com/oauth/authorize
    Token URL: https://api.hubapi.com/oauth/v1/token scopes: marketing.campaigns.write

Request body

propertiesobject required

An object containing key-value pairs where each key is a property name and each value is a string representing the property's value. This object holds the various attributes of the campaign.

Response

successful operation

createdAtstring date-time required

The date and time when the campaign was created, in ISO 8601 format.

idstring required

The unique identifier for the campaign.

propertiesobject required

A map of custom property names to their values, representing specific attributes of the campaign.

updatedAtstring date-time required

The date and time when the campaign was last updated, in ISO 8601 format.

Changes

No recorded changes to this operation across all 5 revisions of this API.