Create catch-all
Create a catch-all that routes all messages sent to unknown addresses of the domain to the given mailbox.
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.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
mailboxIdstringRequiredExample:
Mailbox resource ID
AC1a2b3c4d5e6f7gResponses
201
Created response
application/json
idstringOptionalExample:
Unique catch-all identifier
CA1a2b3c4d5e6f7gdomainstringOptionalExample:
Domain whose unrouted messages are caught
example.comis_activebooleanOptionalExample:
Whether the catch-all is active
trueis_confirmedbooleanOptionalExample:
Whether the mailbox address has confirmed the catch-all
truecreated_atstring · date-timeOptionalExample:
2026-07-27T12:00:00Zupdated_atstring · date-timeOptionalExample:
2026-07-27T12:00:00Z401
Unauthenticated response
application/json
404
Error response
application/json
409
Error response
application/json
422
Error response
application/json
500
Error response
application/json
post/api/mail/v1/mailboxes/{mailboxId}/catchalls
POST /api/mail/v1/mailboxes/{mailboxId}/catchalls HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "CA1a2b3c4d5e6f7g",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "user@example.com"
},
"domain": "example.com",
"is_active": true,
"is_confirmed": true,
"created_at": "2026-07-27T12:00:00Z",
"updated_at": "2026-07-27T12:00:00Z"
}Last updated
Was this helpful?