API reference

Download spec
delete

Cancel a pending invite

Revokes a pending invite so it can no longer be accepted. The invite is identified by its UUID from the list invites response.

Required API key scope
members:delete
/api/v1/team/members/invites/{inviteId}

Code samples

curl --request DELETE \
  --url https://api.emailguard.co/api/v1/team/members/invites/YOUR_ID \
  --header 'Authorization: Bearer YOUR_API_KEY'

Parameters

Path parameters

NameTypeDescription
inviteIdrequiredstring

UUID of the pending invite to cancel

Responses

200
OK
OK
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

401
Unauthorized
Unauthorized
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

403
Forbidden
Forbidden
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

404
Not Found
Not Found
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.