# How an application's end user notices are sent

> How an application's end user notices are sent: reference page for this CustomDomain™ API operation. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/applications/getEmailSender

## `GET https://api.customdomain.ai/v1/applications/{id}/email-sender`

Returns the application's email sender setting. With no setting saved the mode is `default` (the CustomDomain™ transactional sender). The SMTP password is write only: it is never returned, only `password_set`. Requires `app:read`.

### Authentication

`apiKey`, `managementKey`

### Parameters

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

### Responses

| Status | Description |
| --- | --- |
| `200` | The setting. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `application_id` | string | yes |  |
| `mode` | `default`, `smtp`, `none` | yes |  |
| `smtp_host` | string | yes |  |
| `smtp_port` | integer | yes |  |
| `smtp_username` | string | yes |  |
| `password_set` | boolean | yes | Whether a password is stored. The password itself is never returned. |
| `tls` | `implicit`, `starttls` | yes |  |
| `from_address` | string | yes |  |
| `from_name` | string | yes |  |
| `reply_to` | string | yes |  |
| `verified_at` | string or null | yes |  |
| `last_error` | string | yes | The last failure, with no secret in it. Empty after a success. |
| `last_error_at` | string or null | yes |  |
| `updated_at` | string or null | no |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
