> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Transactional Email

> Get transactional email details and body content by ID or slug

Get details of a transactional email template, including the linked email subject, preview text, body blocks, and available template variables.

## Path Parameters

<ParamField path="idOrSlug" type="string" required>
  Transactional email ID or slug
</ParamField>

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/transactional/welcome" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "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"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": "Transactional email \"welcome\" not found"
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 500 theme={null}
  {
    "success": false,
    "error": "Internal server error"
  }
  ```
</ResponseExample>

<Note>
  The `variables` array shows template variables extracted from the email
  content. Use these when sending to customize the email.
</Note>
