Remove a member
curl --request DELETE \
--url https://intentleads.si/api/v1/team/members/{userId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/team/members/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/members/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
"removed": true
}
Remove a member
Removes someone from your organization. The last owner can’t be removed. API keys belong to the organization, so they keep working.
Admin key required. Standard keys get 403 admin_key_required.
DELETE
/
api
/
v1
/
team
/
members
/
{userId}
Remove a member
curl --request DELETE \
--url https://intentleads.si/api/v1/team/members/{userId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/team/members/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/members/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
"removed": true
}
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
The member's user_id.