Revoke a workspace invite link
curl --request DELETE \
--url https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"workspace": "<string>",
"id": 123,
"revoked": true
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "invite_not_found",
"message": "No open invite with that id."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Revoke a workspace invite link
Admin key of the organization, or of the workspace itself. Standard keys get 403 admin_key_required.
DELETE
/
api
/
v1
/
workspaces
/
{id}
/
invites
/
{inviteId}
Revoke a workspace invite link
curl --request DELETE \
--url https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/invites/{inviteId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"workspace": "<string>",
"id": 123,
"revoked": true
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "invite_not_found",
"message": "No open invite with that id."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}