# Identities

> The addresses an account may send as, their signatures, and the account's mail settings.

URL: https://docs.workwae.com/reference/identities

Guides: [Sending mail](/guides/sending).

| Method | Path | Operation | Scope |
| --- | --- | --- | --- |
| `GET` | `/v1/accounts/{accountId}/identities` | [List the addresses the account may send as](#list-the-addresses-the-account-may-send-as) | `read` |
| `POST` | `/v1/accounts/{accountId}/identities` | [Add a custom identity](#add-a-custom-identity) | `write` |
| `PATCH` | `/v1/accounts/{accountId}/identities/{identityId}` | [Change an identity's signature or name](#change-an-identitys-signature-or-name) | `write` |
| `DELETE` | `/v1/accounts/{accountId}/identities/{identityId}` | [Remove a custom identity](#remove-a-custom-identity) | `write` |
| `GET` | `/v1/accounts/{accountId}/mail-settings` | [Get the account's mail settings](#get-the-accounts-mail-settings) | `read` |
| `PATCH` | `/v1/accounts/{accountId}/mail-settings` | [Update the account's mail settings](#update-the-accounts-mail-settings) | `write` |

## List the addresses the account may send as

`GET /v1/accounts/{accountId}/identities`

TypeScript SDK method: `workwae.identities.list()`

The account's own address, the provider's (Gmail send-as addresses with their Gmail signatures in one users.settings.sendAs request; Microsoft proxy addresses from /me) and custom ones. The provider's list is read when the cached one is a day old, or with refresh=true at most once a minute; a paused or disconnected account serves the cached list.

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `refresh` | query | boolean \| "true" \| "false" | no |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | object[] | yes |  |
| `items[].name` | string \| null | yes | Example `"Ada Lovelace"`. |
| `items[].address` | string | yes | Example `"ada@example.com"`. |
| `items[].id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `items[].source` | "primary" \| "provider" \| "custom" | yes |  |
| `items[].signature` | object \| null | yes |  |
| `items[].signature.html` | string \| null | yes |  |
| `items[].signature.text` | string \| null | yes |  |
| `items[].providerSignature` | object \| null | yes |  |
| `items[].providerSignature.html` | string \| null | yes |  |
| `items[].providerSignature.text` | string \| null | yes |  |
| `refreshedAt` | string (date-time) \| null | yes | Example `"2026-05-04T09:30:00.000Z"`. |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`, `account_reauth_required`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`, `provider_throttled`
  - 500: `internal_error`
  - 502: `provider_unavailable`
  - 503: `overloaded`

## Add a custom identity

`POST /v1/accounts/{accountId}/identities`

TypeScript SDK method: `workwae.identities.create()`

For IMAP aliases, and Microsoft mailboxes the account has Send As permission on (Graph cannot list those). Sending as it is checked by the provider when the message goes out.

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |

### Request body (required)

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no | At most 256 characters. Example `"Ada Lovelace"`. |
| `address` | string (email) | yes | At most 320 characters. Example `"ada@example.com"`. |
| `signature` | object | no |  |
| `signature.html` | string | no | At most 100000 characters. |
| `signature.text` | string | no | At most 20000 characters. |

### Responses

- **201** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null | yes | Example `"Ada Lovelace"`. |
| `address` | string | yes | Example `"ada@example.com"`. |
| `id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `source` | "primary" \| "provider" \| "custom" | yes |  |
| `signature` | object \| null | yes |  |
| `signature.html` | string \| null | yes |  |
| `signature.text` | string \| null | yes |  |
| `providerSignature` | object \| null | yes |  |
| `providerSignature.html` | string \| null | yes |  |
| `providerSignature.text` | string \| null | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `identities_managed_by_provider`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`, `identity_exists`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Change an identity's signature or name

`PATCH /v1/accounts/{accountId}/identities/{identityId}`

TypeScript SDK method: `workwae.identities.update()`

signature: null removes ours (Gmail's own then applies again). Only custom identities take a name; the others carry the provider's.

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `identityId` | path | string (uuid) | yes | Example `"ad046281-ad6e-45b7-8cd5-4370649c73ce"`. |

### Request body

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null | no |  |
| `signature` | object \| null | no |  |
| `signature.html` | string | no | At most 100000 characters. |
| `signature.text` | string | no | At most 20000 characters. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null | yes | Example `"Ada Lovelace"`. |
| `address` | string | yes | Example `"ada@example.com"`. |
| `id` | string (uuid) | yes | Example `"c4e6a8b0-1d3f-4a5c-8e7b-9d1f3a5c7e9b"`. |
| `source` | "primary" \| "provider" \| "custom" | yes |  |
| `signature` | object \| null | yes |  |
| `signature.html` | string \| null | yes |  |
| `signature.text` | string \| null | yes |  |
| `providerSignature` | object \| null | yes |  |
| `providerSignature.html` | string \| null | yes |  |
| `providerSignature.text` | string \| null | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `identity_not_custom`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`, `identity_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Remove a custom identity

`DELETE /v1/accounts/{accountId}/identities/{identityId}`

TypeScript SDK method: `workwae.identities.delete()`

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |
| `identityId` | path | string (uuid) | yes | Example `"ad046281-ad6e-45b7-8cd5-4370649c73ce"`. |

### Responses

- **204** OK (application/json, any)
- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`, `identity_not_custom`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`, `identity_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Get the account's mail settings

`GET /v1/accounts/{accountId}/mail-settings`

TypeScript SDK method: `workwae.mailSettings.get()`

Required scope: `read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `signByDefault` | boolean | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`

## Update the account's mail settings

`PATCH /v1/accounts/{accountId}/mail-settings`

TypeScript SDK method: `workwae.mailSettings.update()`

Required scope: `write`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Example `"6f1c2a4e-8b3d-4e5f-9a7b-1c2d3e4f5a6b"`. |

### Request body

Content type `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `signByDefault` | boolean | no |  |

### Responses

- **200** OK (application/json, object)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `signByDefault` | boolean | yes |  |

- **Errors**, by status and `code` (see [Errors](/guides/errors)):
  - 400: `invalid_input`, `invalid_idempotency_key`
  - 401: `unauthenticated`, `api_key_expired`
  - 403: `missing_scope`, `role_forbidden`, `account_token_forbidden`, `account_scope_forbidden`, `mcp_only_key`, `plan_module_unavailable`
  - 404: `account_not_found`
  - 409: `idempotency_key_in_progress`, `mail_disabled`
  - 413: `payload_too_large`
  - 422: `idempotency_key_reused`
  - 429: `rate_limited`, `too_many_requests`
  - 500: `internal_error`
  - 503: `overloaded`
