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

# Get Email Template

> Retrieve one of your saved email template overrides by its numeric ID.

# Get Email Template

<Warning>
  This endpoint keys off the **numeric database ID** (`id`), not the `type` string used by [Get Default Template](/api-reference/b2b/get-default-email-template) and [Upsert Email Template](/api-reference/b2b/upsert-email-template). These are two different identifier spaces on the same `/email-templates` resource — don't pass a `type` value here. Get the `id` from [List Email Templates](/api-reference/b2b/list-email-templates).
</Warning>

## Path Parameters

<ParamField path="id" type="integer" required>
  The template's numeric ID (must be a positive integer).
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "message": "Email template retrieved successfully",
  "data": {
    "id": 12,
    "business_id": 1042,
    "template_type": "b2b_quote_sent",
    "name": "Custom Quote Ready Email",
    "subject": "Your quote from {{business_name}} is ready",
    "html_body": "<html>...</html>",
    "is_active": true
  }
}
```

## Error Codes

| Status | Error Code           | Cause                                                                                                                     |
| ------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `404`  | `RESOURCE_NOT_FOUND` | No template with that ID belongs to your business — you cannot fetch another business's template even by guessing its ID. |
| `422`  | *(Joi validation)*   | `id` isn't a positive integer.                                                                                            |

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.khaime.com/api/v1/partner/email-templates/12 \
    -H "X-API-Key: pk_sandbox_your_key"
  ```
</RequestExample>
