List Agents
curl --request GET \
--url https://api.agentline.cloud/v1/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Agents
List Agents
List all AI voice agents configured on your account.
Returns every AI phone agent you’ve created, including their system prompts, voice settings, and associated phone numbers. Useful for checking which agents are ready to make or receive calls.
GET
/
v1
/
agents
List Agents
curl --request GET \
--url https://api.agentline.cloud/v1/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
AgentLine API key. Get one via the email OTP flow (POST /v1/auth/otp then POST /v1/auth/verify). Pass as: Authorization: Bearer sk_live_...
Response
200 - application/json
Successful Response