---
title: "Create a campaign"
method: POST
path: "/marketing/campaigns/2026-03"
tags: ["Basic"]
---

# Create a campaign

`POST /marketing/campaigns/2026-03`

## Request

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

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.

## Request body

- MarketingCampaignsPublicCampaignInput
  - `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

- MarketingCampaignsPublicCampaign
  - `businessUnits` MarketingCampaignsPublicBusinessUnit[], 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.

## Other responses

- `default`: An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-04-08** `b0d8bc008db9`: 1 info
  - api operation id `post-/marketing/campaigns/2026-03_/marketing/campaigns/v3` removed and replaced with `post-/marketing/campaigns/2026-03`
- **2026-03-30** `dc2fdad57f7f`: 1 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`
- **2026-03-25** `37a93e10d5c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/marketing/campaigns/2026-03/post.md)

---

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