GET
/
v1
/
templates
{
  "templates": [
    {
      "uid": "<string>",
      "name": "<string>",
      "type": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "total": 123
}

This endpoint returns a list of all templates in your organization. The results are paginated and can be controlled using the limit and offset query parameters.

Query Parameters

limit
string
default:"20"

Number of templates to return per page

offset
string
default:"0"

Number of templates to skip (for pagination)

Response

The endpoint returns a JSON object containing an array of templates and the total count.

{
  "templates": [
    {
      "uid": "template_abc123",
      "name": "Welcome Email Header",
      "type": "image",
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-02T00:00:00Z"
    }
  ],
  "total": 1
}

Headers

X-API-Key
string
required

API Key

Query Parameters

limit
string
default:20
offset
string
default:0

Response

200
application/json
List of templates
templates
object[]
required
total
number
required