Skip to main content
GET
Get voice agents

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:
or

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

Agent Types

Note: For voice/telephony agents that can make calls, use agent_type: 3.

Calling Types

Important: The calling_type field in the response indicates whether the agent is configured for outbound or inbound calls. Note:
  • 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 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

Note:
  • transcriber_provider and calling_type can be null if not configured
  • voice_id is 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_id is provided, returns details of that specific agent.
  • If agent_id is not provided, returns a list of all agents.
  • If agent_type is provided, filters agents by type (2 = Chat, 3 = Telephony, 4 = General).
  • The agent_type filter 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 status field 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, and data fields.
  • The actual agent data is nested in data.data for single agent, or data.data array for multiple agents.

Headers

token
string
required

API token for authentication

Query Parameters

agent_id
integer

ID of the agent to retrieve. If not provided, returns all agents

agent_type
integer

Filter by agent type: 2 = Chat, 3 = Telephony, 4 = General

Response

Voice agents retrieved successfully