---
title: "Update email address"
method: PUT
path: "/api/e2/email-addresses/{id}"
tags: ["Email Addresses"]
---

# Update email address

`PUT /api/e2/email-addresses/{id}`

Update an email address's routing (endpoint/webhook) or active status. Cannot have both endpoint and webhook.

## Path parameters

- `id` string, required

## Request body

- object
  - `endpointId` string, nullable
  - `webhookId` string, nullable
  - `isActive` boolean

## Response `200`

Response for status 200

- object
  - `id` string, required
  - `address` string, required
  - `domainId` string, required
  - `webhookId` string, nullable, required
  - `endpointId` string, nullable, required
  - `isActive` boolean, required
  - `isReceiptRuleConfigured` boolean, required
  - `receiptRuleName` string, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `userId` string, required
  - `domain` object, required
    - `id` string, required
    - `name` string, required
    - `status` string, required
  - `routing` object, required
    - `type` 'webhook' | 'endpoint' | 'none', required
    - `id` string, nullable, required
    - `name` string, nullable, required
    - `config` unknown
    - `isActive` boolean, required
  - `warning` string

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `404` — Response for status 404
- `500` — Response for status 500

## Changes

- **2025-12-03** `dbb1412c90a4` — 2 info
  - response property `createdAt` list-of-types was narrowed by removing types `Date and number` from media type `application/json` of response `200`
  - response property `updatedAt` list-of-types was narrowed by removing types `Date and number` from media type `application/json` of response `200`

[Change history](https://skmtc.dev/inboundemail/apis/inbound-email-api/changes/api/e2/email-addresses/:id/put.md)

---

[API](https://skmtc.dev/inboundemail/apis/inbound-email-api.md) · [All operations](https://skmtc.dev/inboundemail/apis/inbound-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inboundemail/inbound-email-api/revisions/04a8a5e5040d/schema)
