Skip to content

Resend an invitation

POST
/domains/{domain}/invites/{inviteId}/resend
curl --request POST \
--url https://api.nsin.ir/domains/example.com/invites/1/resend \
--header 'Authorization: Bearer <token>'

Refreshes the invitation’s expiry and emails it again. Share links cannot be resent. Requires members.manage.

domain
required
string

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

Example
example.com
inviteId
required
integer

Numeric id of the invitation.

Resent.

Media type application/json
object
id
integer
domain_id
integer
email

The address the invitation is bound to.

string
role

A role that may be assigned to a member or invitation. owner is not grantable — it always follows domain ownership.

string
Allowed values: admin editor viewer
invited_by

User id of the inviter.

integer
expires_at
string format: date-time
max_uses
integer
uses
integer
revoked_at
string format: date-time
created_at
string format: date-time
link

The accept URL. Returned when the invitation is created or resent.

string
is_link

True for a shareable link rather than an emailed invitation.

boolean
exhausted

True when uses has reached max_uses.

boolean
Example
{
"role": "admin"
}

The invite is a share link, or is no longer active.

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

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

The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.

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

Domain or invitation not found.

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