---
title: "Enable inbound email for a domain"
method: POST
path: "/v1/email/domains/{id}/enable-receiving"
tags: ["Email"]
---

# Enable inbound email for a domain

`POST /v1/email/domains/{id}/enable-receiving`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/domains/{id}/enable-receiving`
- Auth: API key in header `x-api-key`

Enables inbound receiving for a verified domain and returns the recipient addresses it accepts. Set `catchAll` to route every address on the domain; that needs a destination: a webhook endpoint, supplied as `endpointId` or already configured on the domain, or at least one active forwarding rule that covers the domain. Mail that matches neither is rejected, never accepted and dropped.

## Path parameters

- `id` string, required

## Request body

- object
  - `domain` string, required
  - `catchAll` boolean, nullable
  - `endpointId` string
  - `addresses` string[], nullable

## Response `200`

Success

- object
  - `success` true, required
  - `recipients` string[], required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
