cURL
curl --request GET \ --url https://apiv1.delightloop.ai/api/campaigns/templates/{templateId} \ --header 'x-api-key: <x-api-key>'
{ "success": true, "message": "Template retrieved successfully", "data": { "templateId": "tmpl-abcd1234", "organizationId": "org-001", "templateName": "Gift Campaign with Claim Page", "templateCategory": "Digital Gifting", "isDelightloop": true, "tags": [ "Achievement", "Celebration", "Luxury" ], "successRate": 85, "templateData": { "goal": { "goalId": "g1", "name": "Customer Delight", "description": "Delight top customers with gifts", "logo": "https://cdn.com/goal.png", "logoColor": "#FF5733" } }, "createdAt": "2025-09-01T12:43:16.948Z", "updatedAt": "2025-09-01T12:43:16.948Z", "description": "Blueprint with landing + claim pages for digital gifting", "imageUrl": "https://cdn.delightloop.ai/templates/preview/template-123.png" } }
Retrieve a specific template by its ID
auth key
Template ID
"tmpl-abcd1234"
Template retrieved successfully
Success status
true
Response message
"Template retrieved successfully"
Template data
Show child attributes