List Campaign Templates
curl --request GET \
--url https://{cluster}.voucherify.io/v1/templates/campaigns \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "campaign_templates",
"campaign_templates": [
{
"id": "camp_tpl_hFK6hpVc9WKsWaBv4mz7uZn8",
"name": "DISCOUNT-CAMPAIGN-TEMPLATE",
"description": "New discount for Q4",
"campaign_type": "DISCOUNT_COUPONS",
"created_at": "2024-06-21T13:03:09.431Z",
"object": "campaign_template"
},
{
"id": "camp_tpl_cR8va5Ga2nAi4Nxoi1I1qR8S",
"name": "GIFT-CAMPAIGN-TEMPLATE",
"campaign_type": "GIFT_VOUCHERS",
"created_at": "2024-07-05T14:26:31.600Z",
"updated_at": "2024-07-05T14:27:02.905Z",
"object": "campaign_template"
}
],
"total": 14,
"has_more": true
}List Campaign Templates
Lists all campaign templates available in the project.
Campaign Templates – Documentation
Read the Campaign Templates documentation to learn more about this feature.
GET
/
v1
/
templates
/
campaigns
List Campaign Templates
curl --request GET \
--url https://{cluster}.voucherify.io/v1/templates/campaigns \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "campaign_templates",
"campaign_templates": [
{
"id": "camp_tpl_hFK6hpVc9WKsWaBv4mz7uZn8",
"name": "DISCOUNT-CAMPAIGN-TEMPLATE",
"description": "New discount for Q4",
"campaign_type": "DISCOUNT_COUPONS",
"created_at": "2024-06-21T13:03:09.431Z",
"object": "campaign_template"
},
{
"id": "camp_tpl_cR8va5Ga2nAi4Nxoi1I1qR8S",
"name": "GIFT-CAMPAIGN-TEMPLATE",
"campaign_type": "GIFT_VOUCHERS",
"created_at": "2024-07-05T14:26:31.600Z",
"updated_at": "2024-07-05T14:27:02.905Z",
"object": "campaign_template"
}
],
"total": 14,
"has_more": true
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Query Parameters
Response
200 - application/json
Returns a dictionary of campaign template objects. The templates are returned by creation date by default. The most recent objects appear last unless specified otherwise with the order parameter.
Response body schema for GET /v1/templates/campaign.

