GET
/
v1
/
templates
/
{template_id}
{
  "cid": "<string>",
  "uid": "<string>",
  "name": "<string>",
  "type": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "published_variables": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "value": "<string>"
    }
  ]
}

This endpoint returns detailed information about a specific template, including its variables and metadata.

Path Parameters

template_id
string
required

The unique identifier of the template

Response

The endpoint returns a JSON object containing detailed information about the template.

{
  "cid": "content_abc123",
  "uid": "template_xyz789",
  "name": "Welcome Email Header",
  "type": "image",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-02T00:00:00Z",
  "published_variables": [
    {
      "id": "var_123",
      "name": "header_text",
      "type": "text",
      "value": "Welcome"
    },
    {
      "id": "var_456",
      "name": "profile_image",
      "type": "image",
      "value": "https://example.com/default.jpg"
    }
  ]
}

Variable Types

The published_variables array contains all variables that can be modified when rendering the template. Each variable has:

  • id: Unique identifier for the variable
  • name: Human-readable name used in API calls
  • type: Type of variable (text or image)
  • value: Default value for the variable

Headers

X-API-Key
string
required

API Key

Path Parameters

template_id
string
required

Response

200
application/json
Template details
cid
string
required
uid
string
required
name
string
required
type
string
required
created_at
string
required
updated_at
string
required
published_variables
object[]
required