Application-level templates

Return all templates

Returns a list of application-level templates.

get/v3/templates

Query parameters

limitinteger

The maximum number of objects to return. See Pagination for more information.

page_tokenstring

An identifier that specifies which page of data to return. You can get this value from the next_cursor response field. See Pagination for more information.

Response

Success. Returns list of templates.

request_idstring required

The ID of the request.

next_cursorstring required

A cursor pointing to the next page of results for the request.

Example response

{
  "request_id": "3821703913-a3548169-0de0-49de-9801-37d972b51766",
  "data": [
    {
      "id": "template_123",
      "grant_id": "grant_456",
      "app_id": null,
      "engine": "mustache",
      "name": "Welcome Email",
      "subject": "Welcome {{user.name}}!",
      "body": "<p>Hello {{user.name}}, welcome to our service!</p><p>We're excited to have you on board.</p>",
      "created_at": 1640995200,
      "updated_at": 1640995200,
      "object": "template"
    },
    {
      "id": "template_456",
      "grant_id": "grant_456",
      "app_id": null,
      "engine": "handlebars",
      "name": "Password Reset",
      "subject": "Reset your password - {{company.name}}",
      "body": "<h1>Password Reset Request</h1><p>Hi {{user.name}},</p><p>Click <a href='{{reset_link}}'>here</a> to reset your password.</p><p>This link expires in {{expiry_hours}} hours.</p>",
      "created_at": 1640995300,
      "updated_at": 1640995400,
      "object": "template"
    },
    {
      "id": "template_789",
      "grant_id": "grant_456",
      "app_id": null,
      "engine": "twig",
      "name": "Order Confirmation",
      "subject": "Order #{{order.number}} confirmed",
      "body": "<h2>Thank you for your order!</h2><p>Order #{{order.number}} has been confirmed.</p><ul>{% for item in order.items %}<li>{{item.name}} - ${{item.price}}</li>{% endfor %}</ul><p>Total: ${{order.total}}</p>",
      "created_at": 1640995500,
      "updated_at": 1640995500,
      "object": "template"
    }
  ],
  "next_cursor": "eyJjdXJzb3IiOiJ0ZW1wbGF0ZV8xMjMifQ=="
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.