Revoke Organization Invitation
Cancel a pending invitation before it's accepted.
Cancel a pending organization invitation. Only works on invitations that haven't been accepted yet.
Required: Owner role
Authorization
bearerToken
AuthorizationBearer <token>
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
hash*string
The unique hash of the invitation to revoke. Returned in the invitation response.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/revokeOrganizationInvitation" \ -H "Content-Type: application/json" \ -d '{ "hash": "abc123def456" }'{
"type": "RXSUCCESS",
"message": "Invitation removed successfully"
}{
"type": "RXERROR",
"message": "Invalid params"
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}