---
title: "Get catch-all configuration"
method: GET
path: "/v1/email/catch-all/config"
tags: ["Email"]
---

# Get catch-all configuration

`GET /v1/email/catch-all/config`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/catch-all/config`
- Auth: API key in header `x-api-key`

Returns the catch-all receiving configuration for a domain, including the webhook endpoint that receives its inbound mail and its email counts.

## Query parameters

- `domainId` string, required

## Response `200`

Success

- object
  - `enabled` boolean, required
  - `endpointId` string, required
  - `emailCount` integer, required
  - `lastEmailAt` string, nullable, 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)
