---
title: "Create catch-all"
method: POST
path: "/api/mail/v1/mailboxes/{mailboxId}/catchalls"
tags: ["Mail: Catchalls"]
---

# Create catch-all

`POST /api/mail/v1/mailboxes/{mailboxId}/catchalls`

Create a catch-all that routes all messages sent to unknown addresses
of the domain to the given mailbox. The mailbox address receives a
confirmation email and the catch-all becomes active only after it is
confirmed. A domain can have only one catch-all.

## Path parameters

- `mailboxId` string, required

## Response `201`

Created response

- MailV1CatchallsCatchallResource
  - `id` string — Unique catch-all identifier
  - `mailbox` MailV1CatchallsCatchallMailboxResource
    - `id` string — Mailbox resource ID
    - `address` string
  - `domain` string — Domain whose unrouted messages are caught
  - `is_active` boolean — Whether the catch-all is active
  - `is_confirmed` boolean — Whether the mailbox address has confirmed the catch-all
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `404` — Error response
- `409` — Error response
- `422` — Error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
