List Campaign Templates
curl --request GET \
--url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/templates/campaigns \
--header 'X-Management-Id: <api-key>' \
--header 'X-Management-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
}{
"code": 401,
"message": "Unauthorized",
"key": "unauthorized"
}{
"code": 402,
"message": "Payment required",
"details": "Your current plan does not include a feature required to perform this operation.",
"key": "missing_required_feature"
}{
"code": 404,
"message": "Resource not found",
"details": "Cannot find project with id proj_5itvDU7"
}List Campaign Templates
Lists all campaign templates available in the project.
List Campaign Templates
This endpoint works in the same way as the List Campaign Templates endpoint.
Campaign Templates – Documentation
Read the Campaign Templates documentation to learn more about this feature.
GET
/
management
/
v1
/
projects
/
{projectId}
/
templates
/
campaigns
List Campaign Templates
curl --request GET \
--url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/templates/campaigns \
--header 'X-Management-Id: <api-key>' \
--header 'X-Management-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
}{
"code": 401,
"message": "Unauthorized",
"key": "unauthorized"
}{
"code": 402,
"message": "Payment required",
"details": "Your current plan does not include a feature required to perform this operation.",
"key": "missing_required_feature"
}{
"code": 404,
"message": "Resource not found",
"details": "Cannot find project with id proj_5itvDU7"
}Path Parameters
Query Parameters
Response
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 /management/v1/projects/{projectId}/templates/campaigns.

