Skip to main content
GET
/
templates
/
{id}
Get template
curl --request GET \
  --url https://api.mailrify.com/templates/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "subject": "<string>",
  "body": "<string>",
  "type": "TRANSACTIONAL",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key authentication. Secret keys (sk_*) are required for all endpoints except /v1/track. Public keys (pk_*) only work with the /v1/track endpoint for client-side event tracking. The project is automatically derived from the key.

Path Parameters

id
string
required

Response

Template details

id
string
name
string
subject
string
body
string
type
enum<string>
Available options:
TRANSACTIONAL,
MARKETING
createdAt
string<date-time>