---
title: "Create Campaign Template"
method: POST
path: "/v1/templates/campaigns"
tags: ["Templates"]
---

# Create Campaign Template

`POST /v1/templates/campaigns`

Creates a template for a discount or gift campaign, or a promotion tier.

A template stores campaign configuration **without** the following details:
- Campaign name
- Category
- Code count

The following elements are not supported by campaign templates:
- Redeeming API keys
- Redeeming users
- Customer loyalty tier
- Static segments

> 👍 Promotion Tiers and Campaign Templates
>
>You can create a campaign template out of a promotion tier. Promotion tiers are converted to a discount campaign with the `DISCOUNT_COUPON` type. You can use this template to create:
>- [Discount campaign](/api-reference/templates/create-campaign-from-template),
>- [Promotion tier](/api-reference/templates/add-promotion-tier-from-template).

> 📘 Campaign Templates – Documentation
>
>Read the [Campaign Templates documentation](/build/campaign-templates) to learn more about this feature.

## Request body

- TemplatesCampaignsCreateRequestBody — Request body for updating a campaign template.
  - `campaign_id` string, nullable — Unique identifier of the campaign that will create a template. It must be an ID of an existing discount or gift card campaign. It cannot be passed when `promotion_tier_id` has value. Required when the `promotion_tier_id` is not passed or it is `null`.
  - `promotion_tier_id` string, nullable — Unique identifier of the promotion tier that will create a template. It cannot be passed when `campaign_id` has value. Required when the `campaign_id` is not passed or it is `null`.
  - `name` string, required — User-defined name of the campaign template. It must be unique.
  - `description` string, nullable — User-defined description of the campaign template.

## Response `200`

Returns the details of a created campaign template.

- TemplatesCampaignsCreateTemplateResponseBody — Stores details about a campaign template.
  - `id` string, required — Unique identifier of the campaign template. It is assigned by Voucherify.
  - `name` string, required — User-defined name of the campaign template.
  - `description` string — User-defined description of the campaign template.
  - `campaign_type` 'DISCOUNT_COUPONS' | 'GIFT_VOUCHERS', required — Type of the campaign used to create the campaign template. Templates created from a promotion tier are converted to `DISCOUNT_COUPONS`.
  - `created_at` string, date-time, required — Timestamp representing the date and time when the campaign template was created. The value is shown in the ISO 8601 format.
  - `object` 'campaign_template', required — The type of the object represented by JSON.

## Other responses

- `400` — Returns an error if the payload is missing required properties in the request or the campaign includes features not supported by campaign templates.
- `404` — Returns an error if a resource is not found.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
