Skip to content

Catch-all

GET
/domains/{domain}/email-routing/catch-all
curl --request GET \
--url https://api.nsin.ir/domains/example.com/email-routing/catch-all \
--header 'Authorization: Bearer <token>'

What happens to mail for an address no rule matches. Requires domain.view.

domain
required
string

The domain name (for example example.com) — not a numeric id.

Example
example.com

The catch-all.

Media type application/json
object
enabled
boolean
action
string
Allowed values: forward drop
destination_id
integer
nullable
destination_email
string
nullable
destination_verified
boolean
Example
{
"action": "forward"
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}