Skip to main content
GET
/
api
/
campaigns
/
templates
Get templates with pagination and filtering
curl --request GET \
  --url https://apiv1.delightloop.ai/api/campaigns/templates \
  --header 'x-api-key: <x-api-key>'
{
  "success": true,
  "message": "Templates 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"
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 5,
    "totalCount": 50,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

Headers

x-api-key
string
required

auth key

Query Parameters

page
number

Page number (starts from 1)

Example:

1

limit
number

Number of items per page

Example:

10

Search templates by name or description

Example:

"gift campaign"

category
string

Filter templates by category

Example:

"Digital Gifting"

tags
string

Filter templates by tags (comma-separated)

Example:

"gift-card,digital,onboarding"

status
enum<string>

Filter templates by status

Available options:
active,
draft

Response

200 - application/json

Templates retrieved successfully

success
boolean
required

Success status

Example:

true

message
string
required

Response message

Example:

"Templates retrieved successfully"

data
object[]
required

Array of templates

pagination
object
required

Pagination information