curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/agents/get \
--header 'token: <token>'curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/agents/get \
--header 'token: <token>'/api/v1/global/agents/get
or
POST /api/v1/global/agents/get
token: <your_api_token>
api_access_token: <your_api_token>
{
"agent_id": 123
}
{}
{
"agent_type": 3
}
{
"agent_id": 123,
"agent_type": 3
}
?agent_id=123
(no parameters)
?agent_type=3
?agent_id=123&agent_type=3
| 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 |
| 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_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: 1 means the agent is configured for outbound calling (making calls)calling_type: 2 means the agent is configured for inbound calling (receiving calls)calling_type: null means the calling type is not configured200 OK
{
"error": false,
"code": 200,
"message": "Voice agent retrieved successfully",
"timestamp": 1767638299411,
"data": {
"success": true,
"message": "Voice agent retrieved successfully",
"data": {
"agent_id": 1048,
"agent_name": "Test Agent",
"description": "Test description",
"status": 3,
"agent_type": 3,
"voice_id": "KYiVPerWcenyBTIvWbfY",
"voice_provider": 1,
"transcriber_provider": null,
"calling_type": null,
"created_on": "2026-01-01T07:44:46.000Z",
"updated_on": "2026-01-01T07:44:46.000Z"
}
}
}
200 OK
{
"error": false,
"code": 200,
"message": "Voice agents retrieved successfully",
"timestamp": 1767638262719,
"data": {
"success": true,
"total": 35,
"data": [
{
"agent_id": 1049,
"agent_name": "Flow Test",
"description": "",
"status": 3,
"agent_type": 3,
"voice_id": "KYiVPerWcenyBTIvWbfY",
"voice_provider": 1,
"transcriber_provider": null,
"calling_type": null,
"created_on": "2026-01-02T14:13:19.000Z",
"updated_on": "2026-01-02T14:13:19.000Z"
},
{
"agent_id": 1048,
"agent_name": "Test Agent",
"description": "",
"status": 3,
"agent_type": 3,
"voice_id": "KYiVPerWcenyBTIvWbfY",
"voice_provider": 1,
"transcriber_provider": null,
"calling_type": null,
"created_on": "2026-01-01T07:44:46.000Z",
"updated_on": "2026-01-01T07:44:46.000Z"
}
]
}
}
| 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_provider and calling_type can be null if not configuredvoice_id is typically a string identifier, not an integer{
"error": true,
"message": "Agent ID is required"
}
{
"error": true,
"message": "Invalid Auth Key or Session Expired"
}
{
"error": true,
"message": "Agent not found"
}
curl -X GET "https://www.tryunleashx.com/api/v1/global/agents/get?agent_id=123" \
-H "token: your_api_token_here"
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/get \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{
"agent_id": 123
}'
curl -X GET "https://www.tryunleashx.com/api/v1/global/agents/get" \
-H "token: your_api_token_here"
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/get \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{}'
curl -X GET "https://www.tryunleashx.com/api/v1/global/agents/get?agent_type=3" \
-H "token: your_api_token_here"
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/get \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{
"agent_type": 3
}'
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/get \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{
"agent_type": 2
}'
curl -X POST https://www.tryunleashx.com/api/v1/global/agents/get \
-H "Content-Type: application/json" \
-H "token: your_api_token_here" \
-d '{
"agent_type": 4
}'
agent_id is provided, returns details of that specific agent.agent_id is not provided, returns a list of all agents.agent_type is provided, filters agents by type (2 = Chat, 3 = Telephony, 4 = General).agent_type filter only applies when getting all agents (not when getting a specific agent by ID).status field to check if the agent is active before making calls.agent_type: 3 (Telephony).error, code, message, timestamp, and data fields.data.data for single agent, or data.data array for multiple agents.Was this page helpful?