Skip to main content
POST
/
v1
/
templates
/
campaigns
Create Campaign Template
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/templates/campaigns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "campaign_id": "<string>",
  "promotion_tier_id": "<string>",
  "name": "<string>",
  "description": "<string>"
}'
{
"id": "camp_tpl_0f887664cfe19f2162",
"name": "Template Halloween Campaigns",
"description": "Reuse every October",
"campaign_type": "DISCOUNT_COUPONS",
"created_at": "2024-10-17T14:37:59.488Z",
"object": "campaign_template"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Body

application/json
name
string
required
campaign_id
string | null
promotion_tier_id
string | null
description
string | null

Response

id
string
required
Example:
name
string
required
campaign_type
enum<string>
required
Available options:
DISCOUNT_COUPONS,
GIFT_VOUCHERS
created_at
string<date-time>
required
Example:
object
enum<string>
required
Available options:
campaign_template
description
string