> ## 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 Default Email Template

> Retrieve Khaime's default content for a B2B email template type.

# Get Default Email Template

Returns Khaime's built-in default subject/body for a given B2B template type — what gets sent when you haven't overridden it via [Upsert Email Template](/api-reference/b2b/upsert-email-template).

## Path Parameters

<ParamField path="type" type="string" required>
  One of the following legacy short names — this is the **only** set of types reachable through the Partner API, even though Khaime's internal template system supports many more (order, shipping, subscription, account, and consultation email types exist internally but aren't exposed here):

  `rfq_received` · `rfq_confirmation` · `quote_sent` · `quote_viewed` · `quote_accepted` · `quote_rejected` · `quote_expiring` · `quote_expired` · `po_created` · `invoice_created` · `payment_received`
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "message": "Default template retrieved successfully",
  "data": {
    "template_type": "quote_sent",
    "subject": "Your quote from {{business_name}} is ready to review",
    "html_body": "<html>...</html>"
  }
}
```

`template_type` echoes back the legacy name you passed in `type`, not Khaime's internal type (internally this maps to `b2b_quote_sent`, for example — that mapping is invisible from the API).

Study the returned `subject`/`html_body` to see which `{{variable}}` placeholders Khaime's own default uses for this type — or see the full reference in [Upsert Email Template § Template Variables](/api-reference/b2b/upsert-email-template#template-variables).

## Error Codes

| Status | Error Code         | Cause                                                 |
| ------ | ------------------ | ----------------------------------------------------- |
| `422`  | *(Joi validation)* | `type` isn't one of the 11 valid values listed above. |

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