Skip to content

Verify a destination from its emailed link

POST
/email-routing/destinations/verify
curl --request POST \
--url https://api.nsin.ir/email-routing/destinations/verify \
--header 'Content-Type: application/json' \
--data '{ "token": "example" }'

Consumes the token from the verification mail. No authentication — the person clicking owns the destination mailbox and need not be an NSIN user; the single-use 256-bit token is the proof. Once verified, rules pointing at the destination go live within a minute.

Media type application/json
object
token
required

The 64-character token from the emailed link.

string
Example generated
{
"token": "example"
}

Verified.

Media type application/json
object
email
string
verified
boolean
Example generated
{
"email": "example",
"verified": true
}

Malformed token.

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 link expired or was already used.

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"
}