Get Voice Agent API
This documentation explains how to retrieve details of voice agents using the API.Endpoint
GET/api/v1/global/agents/get
or
POST /api/v1/global/agents/get
Authentication
Include your API token in the request header:Request Body (for POST)
Get Specific Agent
Get All Agents
Get Agents by Type
Get Specific Agent with Type Filter
Query Parameters (for GET)
Get Specific Agent
Get All Agents
Get Agents by Type
Get Specific Agent with Type Filter
Optional Fields
| Field | Type | Description |
|---|---|---|
agent_id | integer | ID of the agent to retrieve. If not provided, returns all agents |
agent_type | integer | Filter by agent type. See Agent Types below |
Agent Types
| ID | Type | Description |
|---|---|---|
| 2 | Chat | Chat-based agents |
| 3 | Telephony | Voice/telephony agents (for making calls) |
| 4 | General | General purpose agents |
agent_type: 3.
Calling Types
Important: Thecalling_type field in the response indicates whether the agent is configured for outbound or inbound calls.
| ID | Type | Description |
|---|---|---|
| 1 | Outbound | Agent makes calls to customers. The agent initiates calls to phone numbers. |
| 2 | Inbound | Agent receives calls from customers. Customers call your phone numbers and the agent answers. |
| null | Not Set | Calling type is not configured for this agent. |
calling_type: 1means the agent is configured for outbound calling (making calls)calling_type: 2means the agent is configured for inbound calling (receiving calls)calling_type: nullmeans the calling type is not configured
Success Response
Single Agent Response (when agent_id is provided)
Status Code:200 OK
Multiple Agents Response (when agent_id is not provided)
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
agent_id | integer | Unique identifier for the agent |
agent_name | string | Name of the agent |
description | string | Description of the agent (can be empty string) |
status | integer | Agent status: 1 = Active, 3 = Inactive, 2 = Deleted |
agent_type | integer | Type of agent: 2 = Chat, 3 = Telephony, 4 = General |
voice_id | string | Voice ID being used (can be a string identifier) |
voice_provider | integer | Voice provider ID (see Create Agent docs for options) |
transcriber_provider | integer | null | Speech-to-text provider ID (can be null) |
calling_type | integer | null | Calling type (see Calling Types below). Can be null if not configured |
created_on | string | Creation timestamp (ISO 8601 format) |
updated_on | string | Last update timestamp (ISO 8601 format) |
transcriber_providerandcalling_typecan benullif not configuredvoice_idis typically a string identifier, not an integer- Timestamps are in ISO 8601 format (e.g., “2026-01-01T07:44:46.000Z”)
Error Responses
400 Bad Request
401 Unauthorized
404 Not Found
Example Requests
Get Specific Agent (GET)
Get Specific Agent (POST)
Get All Agents (GET)
Get All Agents (POST)
Get All Telephony Agents (GET)
Get All Telephony Agents (POST)
Get All Chat Agents (POST)
Get All General Agents (POST)
Notes
- If
agent_idis provided, returns details of that specific agent. - If
agent_idis not provided, returns a list of all agents. - If
agent_typeis provided, filters agents by type (2 = Chat, 3 = Telephony, 4 = General). - The
agent_typefilter only applies when getting all agents (not when getting a specific agent by ID). - The agents must belong to your workspace.
- Deleted agents (status = 2) will not be returned.
- Use the
statusfield to check if the agent is active before making calls. - For making calls, use agents with
agent_type: 3(Telephony). - Response includes a wrapper with
error,code,message,timestamp, anddatafields. - The actual agent data is nested in
data.datafor single agent, ordata.dataarray for multiple agents.

