---
title: "Enable catch-all receiving"
method: POST
path: "/v1/email/domains/{id}/enable-catch-all"
tags: ["Email"]
---

# Enable catch-all receiving

`POST /v1/email/domains/{id}/enable-catch-all`

## Request

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

Enables catch-all inbound receiving for a verified domain. `endpointId` is one of the organization's webhook endpoints; every address on the domain delivers `message.received` to it. Omit it to deliver through forwarding rules alone, which needs at least one active forwarding rule covering the domain. Mail that matches neither a rule nor an endpoint is rejected as an unknown recipient. Responds with 201.

## Path parameters

- `id` string, required

## Request body

- object
  - `endpointId` string

## Response `201`

Success

- object
  - `success` true, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `502`: ExternalServiceError
- `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)
