Skip to content

List email addresses

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

Every custom address on the domain, by local part. active says whether the address is live right now: enabled, routing on, and (for forward) its destination verified. Requires domain.view.

domain
required
string

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

Example
example.com

Rule list.

Media type application/json
Array<object>
object
id
integer
local_part
string
address

The full address, local_part@domain.

string
action
string
Allowed values: forward drop
destination_id
integer
nullable
destination_email
string
nullable
destination_verified
boolean
enabled

Your switch.

boolean
active

Whether the address is live right now — enabled, routing on for the domain, and (for forward) the destination verified.

boolean
name

Optional label.

string
created_at
string format: date-time
updated_at
string format: date-time
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"
}