Decline an Invitation
Decline an invitation addressed to you. This closes the pending invitation without joining the account; the account admin sees it move out of the pending state. You can decline an invite you don't want instead of leaving it to expire.
The invitation must be addressed to your email and still pending. Find the invitation id via GET /v1/user/invitations.
Path parameters
id int64 Req
ID of the invitation to decline, as returned by GET /v1/user/invitations.
Request body
None — pass {} or omit the body entirely.
Response (200 OK)
success bool
true when the invitation has been declined.Errors
400 Bad Request
Invalid invitation id.
401 Unauthorized
Missing or invalid auth.
404 Not Found
No such invitation, or it isn't addressed to your email.
409 Conflict
The invitation is no longer pending (already accepted, declined, revoked, or expired).
Request
curl -X POST "https://api.ngris.com/v1/user/invitations/42/decline" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.users.decline_invitation(42)
Response — 200 OK
{
"success": true
}