Revoke an invite link
curl --request DELETE \
--url https://intentleads.si/api/v1/team/invites/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/team/invites/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/invites/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": 17,
"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 can create one on the API and CLI page."
}{
"error": "invite_not_found",
"message": "No open invite with that id."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Revoke an invite link
Revokes an open invite link so it can’t be used.
Admin key required. Standard keys get 403 admin_key_required.
DELETE
/
api
/
v1
/
team
/
invites
/
{id}
Revoke an invite link
curl --request DELETE \
--url https://intentleads.si/api/v1/team/invites/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/team/invites/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/invites/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": 17,
"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 can create one on the API and CLI page."
}{
"error": "invite_not_found",
"message": "No open invite with that id."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Authorizations
An Intent Leads API key, e.g. il_live_ followed by 32 letters and digits. Create one on the API and CLI page of the dashboard.
Path Parameters
Invite id from List members and invites.