Skip to main content
GET
/
api
/
v1
/
transactional
/
{idOrSlug}
Get Transactional Email
curl --request GET \
  --url https://api.sequenzy.com/api/v1/transactional/{idOrSlug} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "transactional": {
    "id": "txn_abc123",
    "name": "Welcome Email",
    "slug": "welcome",
    "emailId": "email_abc123",
    "enabled": true,
    "subject": "Welcome, {{NAME}}",
    "previewText": "Your account is ready.",
    "blocks": [
      {
        "id": "block_123",
        "type": "text",
        "content": "<p>Welcome to {{COMPANY_NAME}}</p>",
        "variant": "html"
      }
    ],
    "variables": ["NAME", "COMPANY_NAME", "LOGIN_URL"],
    "email": {
      "id": "email_abc123",
      "name": "Welcome Email",
      "subject": "Welcome, {{NAME}}",
      "previewText": "Your account is ready.",
      "blocks": [
        {
          "id": "block_123",
          "type": "text",
          "content": "<p>Welcome to {{COMPANY_NAME}}</p>",
          "variant": "html"
        }
      ]
    },
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
}
Get details of a transactional email template, including the linked email subject, preview text, body blocks, and available template variables.

Path Parameters

idOrSlug
string
required
Transactional email ID or slug
curl "https://api.sequenzy.com/api/v1/transactional/welcome" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

{
  "success": true,
  "transactional": {
    "id": "txn_abc123",
    "name": "Welcome Email",
    "slug": "welcome",
    "emailId": "email_abc123",
    "enabled": true,
    "subject": "Welcome, {{NAME}}",
    "previewText": "Your account is ready.",
    "blocks": [
      {
        "id": "block_123",
        "type": "text",
        "content": "<p>Welcome to {{COMPANY_NAME}}</p>",
        "variant": "html"
      }
    ],
    "variables": ["NAME", "COMPANY_NAME", "LOGIN_URL"],
    "email": {
      "id": "email_abc123",
      "name": "Welcome Email",
      "subject": "Welcome, {{NAME}}",
      "previewText": "Your account is ready.",
      "blocks": [
        {
          "id": "block_123",
          "type": "text",
          "content": "<p>Welcome to {{COMPANY_NAME}}</p>",
          "variant": "html"
        }
      ]
    },
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
}
The variables array shows template variables extracted from the email content. Use these when sending to customize the email.