---
title: "Retrieve email options"
method: GET
path: "/assets/{asset_id}/options"
tags: ["Email Options"]
---

# Retrieve email options

`GET /assets/{asset_id}/options`

## Request

- Base URL: `https://enterprise.knak.io/api/published/v1`
- URL: `https://enterprise.knak.io/api/published/v1/assets/{asset_id}/options`
- Auth: none declared
- TypeScript: <https://skmtc.dev/knak/apis/knak-enterprise-api/docs/assets/:asset_id/options/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the [email options](#tag/email_option) of an email.
Every option available to your company is returned, including options that have never been set, which come back with a `null` value.

## Path parameters

- `asset_id` string, required

## Response `200`

OK

- EmailOptions
  - `data` object: The email options available to your company, keyed by option key. An available option that has never been set is returned with a `null` value.
    - `custom_head_code` string, nullable: Markup added to the `<head>` of this email when it is rendered or downloaded. Requires the Custom Email Head Code company preference.

## Other responses

- `401`: Unauthenticated
- `404`: The email does not exist, belongs to another company, or the asset is not an email.
- `default`: Unexpected server error

---

[API](https://skmtc.dev/knak/apis/knak-enterprise-api.md) - [All operations](https://skmtc.dev/knak/apis/knak-enterprise-api/llms.txt) - [OpenAPI document](https://skmtc.dev/knak/apis/knak-enterprise-api/revisions/31d2c94edfcc?raw)
