Skip to main content
POST
/
marketing
/
campaigns
/
2026-03
/
batch
/
create
Create a batch of campaigns
curl --request POST \
  --url https://api.hubapi.com/marketing/campaigns/2026-03/batch/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": [
    {
      "properties": {}
    }
  ]
}
'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "results": [
    {
      "businessUnits": [
        {
          "id": 123
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "properties": {},
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "startedAt": "2023-11-07T05:31:56Z",
  "status": "CANCELED",
  "links": {},
  "requestedAt": "2023-11-07T05:31:56Z"
}

Supported products

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
inputs
object[]
required

An array of PublicCampaignInput objects, each representing the properties of a campaign to be created in the batch. This property is required.

Response

successful operation

completedAt
string<date-time>
required

The date and time when the batch operation was completed, formatted as a date-time string.

results
object[]
required

An array of results from the batch operation, each item representing a public campaign.

startedAt
string<date-time>
required

The date and time when the batch operation started, formatted as a date-time string.

status
enum<string>
required

The current status of the batch operation, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING.

Available options:
CANCELED,
COMPLETE,
PENDING,
PROCESSING

A map of related links associated with the batch operation.

requestedAt
string<date-time>

The date and time when the batch operation was requested, formatted as a date-time string.

Last modified on April 13, 2026