---
title: "Create a campaign — a repeated name returns the existing one"
method: POST
path: "/api/v1/campaigns"
tags: ["campaigns"]
---

# Create a campaign — a repeated name returns the existing one

`POST /api/v1/campaigns`

## Request

- Base URL: `https://app.utmkit.co`
- URL: `https://app.utmkit.co/api/v1/campaigns`
- Auth: HTTP bearer

Requires a token with the `campaigns:write` permission.

## Request body

- CampaignInput
  - `description` string, nullable
  - `name` string, required

## Response `201`

Campaign

- Campaign
  - `created_at` string, date-time
  - `description` string, nullable
  - `id` integer
  - `link_count` integer
  - `name` string

## Other responses

- `422`: Error

---

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