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

# Create a campaign

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

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.

## Request body

- PublicCampaignInput
  - `properties` object, 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 `201`

successful operation

- PublicCampaign
  - `businessUnits` PublicBusinessUnit[], required: An array of business units associated with the campaign, where each business unit is represented by its unique identifier.
    - `id` integer, required: The unique identifier for the business unit, represented as a 64-bit integer.
  - `createdAt` string, date-time, required: The date and time when the campaign was created, in ISO 8601 format.
  - `id` string, required: The unique identifier for the campaign.
  - `properties` object, required: A map of custom property names to their values, representing specific attributes of the campaign.
  - `updatedAt` string, date-time, required: The date and time when the campaign was last updated, in ISO 8601 format.

## Other responses

- `default`: An error occurred.

---

[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/c1eb1c9b504c?raw)
