Remove members from a list
curl --request POST \
--url https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"selection": {
"kind": "ids",
"ids": [
"cmf3x0v2b0003abcd"
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({selection: {kind: 'ids', ids: ['cmf3x0v2b0003abcd']}})
};
fetch('https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({selection: {kind: 'ids', ids: ['cmf3x0v2b0003abcd']}})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove"
payload = { "selection": {
"kind": "ids",
"ids": ["cmf3x0v2b0003abcd"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"removed": 1
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}API Reference
Remove members from a list
Removes members by id (selection.kind: "ids", the id of each row of GET /api/v1/lead-lists/{listId}/members) or everyone matching a filter (selection.kind: "filter"; an empty filter empties the list). Only the membership goes: the people and the contact data the workspace bought are kept. Requires confirm: true; a filter selection also requires name, the list’s exact current name. Ids of another list are ignored.
Billing
Free — this endpoint does not consume points.
POST
/
api
/
v1
/
lead-lists
/
{listId}
/
members
/
remove
Remove members from a list
curl --request POST \
--url https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"selection": {
"kind": "ids",
"ids": [
"cmf3x0v2b0003abcd"
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({selection: {kind: 'ids', ids: ['cmf3x0v2b0003abcd']}})
};
fetch('https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({selection: {kind: 'ids', ids: ['cmf3x0v2b0003abcd']}})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://app.loice.ai/api/v1/lead-lists/{listId}/members/remove"
payload = { "selection": {
"kind": "ids",
"ids": ["cmf3x0v2b0003abcd"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"removed": 1
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>",
"retryAfterSeconds": 123
}
}Authorizations
Body
application/json

