Delete a customer
curl --request POST \
--url https://back.leap.onclarity.com/api/customer/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 123
}'import requests
url = "https://back.leap.onclarity.com/api/customer/delete"
payload = { "id": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 123})
};
fetch('https://back.leap.onclarity.com/api/customer/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}Customers
Delete a customer
POST
/
api
/
customer
/
delete
Delete a customer
curl --request POST \
--url https://back.leap.onclarity.com/api/customer/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 123
}'import requests
url = "https://back.leap.onclarity.com/api/customer/delete"
payload = { "id": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 123})
};
fetch('https://back.leap.onclarity.com/api/customer/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.
Body
application/json
Response
Request fulfilled, document follows
The response is of type EmptyPayload · object.