---
title: "Create a batch of campaigns"
method: POST
path: "/marketing/v3/campaigns/batch/create"
tags: ["Batch"]
---

# Create a batch of campaigns

`POST /marketing/v3/campaigns/batch/create`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/v3/campaigns/batch/create`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `marketing.campaigns.write`

This endpoint creates a batch of campaigns. The maximum number of items in a batch request is 50.
The campaigns in the response are not guaranteed to be in the same order as they were provided in the request.

## Request body

- BatchInputPublicCampaignInput
  - `inputs` PublicCampaignInput[], required: An array of PublicCampaignInput objects, each representing the properties of a campaign to be created in the batch. This property is required.
    - `properties` object, 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 `201`

successful operation

- BatchResponsePublicCampaign
  - `completedAt` string, date-time, required: The date and time when the batch operation was completed, formatted as a date-time string.
  - `links` object: 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.
  - `results` PublicCampaign[], required: An array of results from the batch operation, each item representing a public campaign.
    - `businessUnits` PublicBusinessUnit[], required: An array of business units associated with the campaign, each represented by a PublicBusinessUnit object.
      - `id` integer, required: The unique identifier for the business unit, represented as an integer.
    - `createdAt` string, date-time, required: The date and time when the campaign was created, formatted as a date-time string.
    - `id` string, required: The unique identifier for the campaign.
    - `properties` object, required: A collection of key-value pairs representing additional properties of the campaign.
    - `updatedAt` string, date-time, required: The date and time when the campaign was last updated, formatted as a date-time string.
  - `startedAt` string, date-time, required: The date and time when the batch operation started, formatted as a date-time string.
  - `status` 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING', required: The current status of the batch operation, with possible values: CANCELED, COMPLETE, PENDING, PROCESSING.

## Other responses

- `207`: multiple statuses
- `default`: An error occurred.

## Changes

- **2026-08-17** (v3) `d72436413d14`: 1 info
  - endpoint added
- **2026-07-13** (v3) `b6daafa307a3`: 1 breaking
  - api path removed without deprecation
- **2026-07-13** (v3) `bbabb550b117`: 1 info
  - endpoint added
- **2026-07-13** (v3) `888934953fff`: 1 breaking
  - api path removed without deprecation
- **2026-05-22** (v3) `abb310dc80b9`: 2 info
  - the security scope `marketing.campaigns.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `campaigns-write` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api/changes/marketing/v3/campaigns/batch/create/post.md)

---

[API](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api.md) - [All operations](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api/revisions/f31b87ae2953?raw)
