List counsellors
curl --request GET \
--url https://api.telleo.ai/v1/counsellors \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/counsellors"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/counsellors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"object": "counsellor",
"name": "<string>",
"email": "<string>",
"roles": [
"COUNSELLOR"
],
"can_call": true,
"blocked_reason": "<string>"
}
],
"has_more": true
}
Human calls
List counsellors
The people in your account who can take human calls (active users with a Counsellor or Admin role), whether each can be called now, and why not. Phone numbers are never returned.
Scope: human_calls:read.
GET
/
counsellors
List counsellors
curl --request GET \
--url https://api.telleo.ai/v1/counsellors \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.telleo.ai/v1/counsellors"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.telleo.ai/v1/counsellors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"object": "counsellor",
"name": "<string>",
"email": "<string>",
"roles": [
"COUNSELLOR"
],
"can_call": true,
"blocked_reason": "<string>"
}
],
"has_more": true
}