nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Email Routing

Resend the verification mail

posthttps://api.nsin.ir/email-routing/destinations/{destinationId}/resend

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

Issues a fresh link for an unverified destination. Subject to the same cooldown and hourly caps as create.

Path parameters

  • destinationIdintegerrequiredpath

    Numeric id of the email destination, from the destination list.

Responses

200Sent; how long until the next resend is allowed.

Content type: application/json

  • resend_cooldown_secondsinteger
json
{
  "resend_cooldown_seconds": 0
}
400The destination is already verified.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
401Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "invalid API key"
}
404No such destination on your account.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
429The 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.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

  • cooldownSecondsRemaininginteger
json
{
  "error": "string",
  "cooldownSecondsRemaining": 0
}

Example request

bash
curl -X POST "https://api.nsin.ir/email-routing/destinations/0/resend" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc