Skip to main content

Templates

To retrieve template information, send a GET request to the /api/template/:template_id endpoint with your template ID.

The response will be a JSON object containing:

  • name: The name of the template.
  • created: The creation timestamp of the template.
  • last_modified: The last modification timestamp of the template.
  • elements: The editable elements of the template.
endpoints
GET
/api/template/:template_id
Example Response Body
{
"status": 200,
"data": {
"name": "My Template",
"created_at": "2024-01-01T00:00:00.000Z",
"last_modified": "2024-01-01T00:00:00.000Z",
"elements": [
{
"name": "title",
"description": "The title of the template",
"type": "text"
},
{
"name": "background-image",
"description": "The background image of the template",
"type": "image"
}
]
},
"error": null
}