---
title: "Создать рекламную кампанию"
method: POST
path: "/campaigns"
tags: ["campaigns"]
---

# Создать рекламную кампанию

`POST /campaigns`

## Request

- The document declares no server URL.
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/campaigns/post.ts> (a function with typed inputs; its response is checked against the schema)

Создание новой рекламной кампании.

## Request body

- AppWebapiSchemasCampaignsCampaignCreateRequest
  - `name` string, required
  - `start_parameter` string, required: Start parameter для deep-link (уникальный)
  - `bonus_type` 'balance' | 'subscription' | 'none' | 'tariff', required: Тип бонуса кампании: balance (баланс), subscription (пробная подписка), none (без награды), tariff (тариф)
  - `balance_bonus_kopeks` integer
  - `subscription_duration_days` integer, nullable
  - `subscription_traffic_gb` integer, nullable
  - `subscription_device_limit` integer, nullable
  - `subscription_squads` string[]
  - `tariff_id` integer, nullable: ID тарифа для выдачи
  - `tariff_duration_days` integer, nullable: Длительность тарифа в днях
  - `is_active` boolean

## Response `201`

Successful Response

- CampaignResponse
  - `id` integer, required
  - `name` string, required
  - `start_parameter` string, required
  - `bonus_type` 'balance' | 'subscription' | 'none' | 'tariff', required: Тип бонуса кампании: balance (баланс), subscription (пробная подписка), none (без награды), tariff (тариф)
  - `balance_bonus_kopeks` integer, required
  - `balance_bonus_rubles` number, required
  - `subscription_duration_days` integer, nullable
  - `subscription_traffic_gb` integer, nullable
  - `subscription_device_limit` integer, nullable
  - `subscription_squads` string[]
  - `tariff_id` integer, nullable
  - `tariff_duration_days` integer, nullable
  - `tariff_name` string, nullable
  - `is_active` boolean, required
  - `created_by` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `registrations_count` integer

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/campaigns/post.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
