---
title: "Create a new campaign"
method: POST
path: "/api/campaign"
tags: ["Campaign"]
---

# Create a new campaign

`POST /api/campaign`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/campaign`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/campaign/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new campaign for the authenticated user.

## Request body

- object
  - `entityId` integer, required: The entity ID
  - `entityType` string, required: The entity type

## Response `200`

Campaign creation result.

- object
  - `success` boolean
  - `message` string
  - `data` object

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden

---

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