Skip to main content
GET
/
tenants
/
{tenant_id}
/
templates
/
{template_id}
Get a Template in Tenant
curl --request GET \
  --url https://api.courier.com/tenants/{tenant_id}/templates/{template_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "published_at": "<string>",
  "version": "<string>",
  "data": {
    "routing": {
      "method": "all",
      "channels": [
        "<string>"
      ]
    },
    "content": {
      "version": "<string>",
      "brand": "<string>",
      "elements": [
        {
          "type": "text",
          "channels": [
            "<any>"
          ],
          "ref": "<string>",
          "if": "<string>",
          "loop": "<string>",
          "content": "<string>",
          "align": "left",
          "text_style": "text",
          "color": "<string>",
          "bold": "<string>",
          "italic": "<string>",
          "strikethrough": "<string>",
          "underline": "<string>",
          "locales": {},
          "format": "markdown"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenant_id
string
required

Id of the tenant for which to retrieve the template.

template_id
string
required

Id of the template to be retrieved.

Response

data
object
required

The template's data containing it's routing configs and Elemental content

id
string
required

The template's id

created_at
string
required

The timestamp at which the template was created

updated_at
string
required

The timestamp at which the template was last updated

published_at
string
required

The timestamp at which the template was published

version
string
required

The version of the template