Skip to main content
GET
/
templates
/
{id}
Get template
curl --request GET \
  --url https://api.mailglyph.com/templates/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "subject": "<string>",
  "body": "<string>",
  "text": "<string>",
  "from": "jsmith@example.com",
  "fromName": "<string>",
  "replyTo": "jsmith@example.com",
  "projectId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mailglyph.com/llms.txt

Use this file to discover all available pages before exploring further.

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. Workspaces can have multiple active keys, and sender-domain operations enforce per-key domain scope when configured.

Path Parameters

id
string
required

Response

Template details

id
string
name
string
description
string | null
subject
string
body
string
text
string | null
from
string<email>
fromName
string | null
replyTo
string<email> | null
type
enum<string>
Available options:
TRANSACTIONAL,
MARKETING
projectId
string
createdAt
string<date-time>
updatedAt
string<date-time>