Revoke workspace invitation
curl --request DELETE \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}Workspaces
Revoke workspace invitation
DELETE
https://api.memcontext.in
/
api
/
workspaces
/
{workspaceId}
/
invitations
/
{invitationId}
Revoke workspace invitation
curl --request DELETE \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/invitations/{invitationId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Response
200 - application/json
Invitation revoked.
