Skip to content
nsin docs

Revoke an invitation

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

Cancels a pending invitation or share link: its link stops working at once. Memberships already created through it are not affected — remove those with DELETE /domains/{domain}/members/{userId}. 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.

Revoked.

Media type application/json
object
message
string
Example
{
"message": "deleted"
}

Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

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