# Retrieve an email template

`GET https://api.cademi.com.br/api/v3/settings/emails/templates/{email_template_id}`

Operation ID: `settings.emails.templates.get` · API v3

Retrieves an email template by its key. The template catalog is fixed and contains `sale`, `import`, `free`, and `new_access`.

The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when updating the template to avoid overwriting a newer version.

Required permissions: `settings.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `email_template_id` | path | string | yes |  |

## Responses

### 200

Returns the requested email template.

Body: `data`: EmailTemplate.

Fields of EmailTemplate:

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | string or null | yes |  |
| `editable` | boolean | yes |  |
| `enabled` | boolean | yes |  |
| `id` | string, one of `sale`, `import`, `free`, `new_access` | yes |  |
| `include_credentials` | boolean | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `email_template` | yes |  |
| `revision` | string | yes |  |
| `variables` | array of object | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The template key is not part of the email template catalog.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
