# Update an email address

```http
PATCH https://trydimmi.com/api/v1/email-addresses/{address}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Path parameters

- `address` (string, required): Id of the sending email address, starting with ema_, such as ema_01jx2m8k4t. Find it with GET /email-addresses.

## Body

- `display_name` (string): The name people see, such as Acme Support.
- `from_name_style` (string): member_and_name names the teammate and the team; name_only names just the team. One of: `member_and_name`, `name_only`.
- `inbox_id` (string): Id of the inbox (inbox_...) new conversations land in.
- `is_default` (boolean): true makes this the workspace's default address. The default cannot be turned off, only moved to another address.
- `reply_to_mode` (string): token (default) adds a Reply-To address that threads answers back into their conversation; none leaves it out. One of: `token`, `none`.
- `settings` (object)
  - `away_reply` (boolean): true answers a new email that arrives outside office hours once, saying when the team is back; false sends nothing. New addresses start with false.
  - `away_reply_text` (string): What the away reply says, at most 1000 characters. {{reply_time}} becomes when the team is back.
  - `brand_color` (string): Color used in branded replies, as # and six hex digits, such as #10b981. Only used when template is branded.
  - `bulk_mail_handling` (string): What happens to bulk mail such as newsletters that starts a new thread: close files it as a closed conversation, open leaves it open, drop ignores it. New addresses use close. One of: `close`, `open`, `drop`.
  - `footer_markdown` (string): Footer that closes branded replies, written in Markdown, at most 500 characters, such as Sent by the Acme support team.
  - `quote_previous` (boolean): true puts the message being answered below each reply; false leaves it out. New addresses start with true.
  - `template` (string): Look of replies from this address: plain or branded. Branded uses brand_color and footer_markdown.

## Response 200 (OK)

- `data` (object, required)
  - `address` (string, required): The public address customers write to, such as support@acme.com.
  - `channel_connection` (object, required)
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `status` (string, required): The state of the channel connection behind the address: pending, active, error or disconnected.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `display_name` (string, required): The name shown as the sender of replies from this address, 1 to 80 characters.
  - `forwarding_address` (string, required): The address on dimmi's inbound domain that mail really arrives at. Forward the public address to it.
  - `forwarding_confirmation` (any, required): The last forwarding confirmation mail the mail provider sent: its provider, code, confirm_url, sender and received_at. Null when none has arrived.
  - `from_name_style` (string, required): How the sender of a reply is named: member_and_name (the teammate and the team) or name_only (just the display name).
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `inbound_verified_at` (string | null, required): When mail was first proven to arrive at this address. Null while forwarding is not yet verified.
  - `inbox` (object, required)
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): Name of the inbox this email address feeds.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `is_default` (boolean, required): True for the workspace's default address, which sends when no other is chosen. At most one per workspace.
  - `last_inbound_at` (string | null, required): When mail last arrived at this address. Null when none has.
  - `last_outbound_at` (string | null, required): When mail was last sent from this address. Null when none has.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `reply_to_mode` (string, required): Whether replies carry a Reply-To address with the thread's token so answers find their conversation: token or none.
  - `reply_to_preview` (string | null, required): A sample of what the Reply-To address looks like, such as support+k7f3x9q2mz8b4c1d@in.example.com. Null when reply_to_mode is none.
  - `sending_blocked_reason` (string | null, required): Why the address is held back: domain_degraded (its domain stopped passing checks) or sending_paused (the workspace's sending is paused). Null when nothing holds it.
  - `sending_identity` (object, required)
    - `domain_status` (string, required): Where the workspace's own sending domain stands for this address: verified, degraded or unverified.
    - `from` (string, required): The From line replies leave with, such as "Acme Support" <support@acme.com>.
    - `provider` (string, required): Name of the mail provider this dimmi install sends customer mail through.
    - `uses_default_sender` (boolean, required): True when replies leave from dimmi's default sender, false when a verified domain of the workspace's own sends them.
  - `sending_state` (string, required): How replies leave: own_domain (from the address itself, on a verified domain) or default_sender (from the forwarding address).
  - `sends_as` (string, required): The From line replies carry right now, such as "Acme Support" <support@acme.com>.
  - `settings` (object, required)
    - `away_reply` (boolean, required): true when a new email that arrives outside office hours gets one automatic reply saying when the team is back. Defaults to false.
    - `away_reply_text` (string, required): What the away reply says. {{reply_time}} becomes when the team is back.
    - `brand_color` (string, required): The color a branded reply uses. Empty when none is set.
    - `bulk_mail_handling` (string, required): What becomes of newsletters and notifications that start no thread: close (a closed conversation), open (an open one) or drop. Defaults to close.
    - `footer_markdown` (string, required): The Markdown text a branded reply closes with. Empty when none is set.
    - `quote_previous` (boolean, required): True when each reply puts the message it answers below it. Defaults to true.
    - `subject_tag` (boolean, required): True when reply subjects carry the conversation number.
    - `template` (string, required): The look of replies: plain or branded. Defaults to plain.
  - `setup_guides` (object[] | null, required): How to forward mail to this address in each mail service: steps, common problems and a settings link, recommended first. Empty when not loaded.
    - `deep_link` (string | null, required): Link to the right settings screen in the mail service; null when there is none.
    - `key` (string, required): Name of the mail service the guide is for, such as gmail, google_workspace or microsoft_365.
    - `name` (string, required): Name of the mail service as people read it, such as Google Workspace.
    - `provider` (string, required): Same value as key, kept for older readers. Use key.
    - `recommended` (boolean, required): True for the guide that fits the address's domain; it is listed first.
    - `steps` (string[] | null, required): The steps to set forwarding up, in order, with this address's own addresses filled in.
    - `warnings` (string[] | null, required): What tends to go wrong in this mail service; empty for none.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/email-addresses/{address}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "display_name": "<string>",
  "from_name_style": "member_and_name",
  "inbox_id": "<string>",
  "is_default": true,
  "reply_to_mode": "token",
  "settings": {
    "away_reply": true,
    "away_reply_text": "<string>",
    "brand_color": "<string>",
    "bulk_mail_handling": "close",
    "footer_markdown": "<string>",
    "quote_previous": true,
    "template": "<string>"
  }
}'
```

## Example response

```json
{
  "data": {
    "address": "<string>",
    "channel_connection": {
      "id": "<string>",
      "object": "<string>",
      "status": "<string>"
    },
    "created_at": "2026-11-01T09:30:00Z",
    "display_name": "<string>",
    "forwarding_address": "<string>",
    "forwarding_confirmation": null,
    "from_name_style": "<string>",
    "id": "<string>",
    "inbound_verified_at": "2026-11-01T09:30:00Z",
    "inbox": {
      "id": "<string>",
      "name": "<string>",
      "object": "<string>"
    },
    "is_default": true,
    "last_inbound_at": "2026-11-01T09:30:00Z",
    "last_outbound_at": "2026-11-01T09:30:00Z",
    "object": "<string>",
    "reply_to_mode": "<string>",
    "reply_to_preview": "<string>",
    "sending_blocked_reason": "<string>",
    "sending_identity": {
      "domain_status": "<string>",
      "from": "<string>",
      "provider": "<string>",
      "uses_default_sender": true
    },
    "sending_state": "<string>",
    "sends_as": "<string>",
    "settings": {
      "away_reply": true,
      "away_reply_text": "<string>",
      "brand_color": "<string>",
      "bulk_mail_handling": "<string>",
      "footer_markdown": "<string>",
      "quote_previous": true,
      "subject_tag": true,
      "template": "<string>"
    },
    "setup_guides": [
      {
        "deep_link": "<string>",
        "key": "<string>",
        "name": "<string>",
        "provider": "<string>",
        "recommended": true,
        "steps": [
          "<string>"
        ],
        "warnings": [
          "<string>"
        ]
      }
    ],
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
