Resend the verification mail
const url = 'https://api.nsin.ir/email-routing/destinations/1/resend';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.nsin.ir/email-routing/destinations/1/resend \ --header 'Authorization: Bearer <token>'Issues a fresh link for an unverified destination. Subject to the same cooldown and hourly caps as create.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Numeric id of the email destination, from the destination list.
Responses
Section titled “ Responses ”Sent; how long until the next resend is allowed.
object
Example generated
{ "resend_cooldown_seconds": 1}The destination is already verified.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such destination on your account.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The per-key rate limit, a verification mail to this destination less
than a minute ago (cooldownSecondsRemaining), or the account’s or
your address’s hourly send cap.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}