Skip to main content
GET
/
templates
/
{templateId}
Get a template
curl --request GET \
  --url https://apix.spotzee.com/api/client/templates/{templateId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 158,
  "project_id": 123,
  "campaign_id": 24,
  "type": "email",
  "locale": "en-AU",
  "data": {},
  "created_at": "<string>",
  "updated_at": "<string>",
  "name": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.

Path Parameters

templateId
integer | null

Numeric template identifier.

Example:

158

Response

The requested template.

A localised, channel-specific message body bound to a campaign.

id
integer
required

Numeric template identifier.

Example:

158

project_id
integer
required

Identifier of the owning project.

campaign_id
integer
required

Identifier of the campaign this template belongs to.

Example:

24

type
enum<string>
required

Delivery channel a template is bound to.

Available options:
email,
text,
push,
webhook,
in_app
Example:

"email"

locale
string
required

BCP-47 locale this template is authored in.

Example:

"en-AU"

data
object
required

Channel-specific template body. Shape varies by type — see TemplateEmailData, TemplatePushData, etc.

created_at
string | null
required
updated_at
string | null
required
name
string | null

Optional human-readable template name.