Skip to main content
GET
/
api
/
agents
/
{agent_id}
Get Agent
curl --request GET \
  --url https://api.example.com/api/agents/{agent_id} \
  --header 'X-API-Key: <x-api-key>' \
  --header 'X-Organization-Id: <x-organization-id>'
{
  "success": true,
  "data": {
    "agent_id": "agent_a1b2c3d4e5f6",
    "agent_name": "Sales Rep",
    "language": "EN",
    "stt_provider": "deepgram",
    "tts_provider": "elevenlabs",
    "tts_voice": "21m00Tcm4TlvDq8ikWAM",
    "llm_provider": "openai",
    "llm_model": "gpt-4o",
    "system_prompt": "You are a helpful sales representative...",
    "speak_first": true,
    "end_call_tool": true,
    "llm_temperature": 0.7,
    "recording_enabled": true,
    "voicemail_detection": false,
    "voicemail_response_delay": 2.0,
    "custom_tools": [],
    "kb_document_ids": [],
    "assigned_phone_number_ids": [],
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-20T14:45:00Z"
  }
}
Retrieve the full configuration details of a specific agent.

Headers

X-API-Key
string
required
Your API key for authentication.
X-Organization-Id
string
required
The organization ID.

Path Parameters

agent_id
string
required
The unique identifier of the agent (format: agent_[a-f0-9]{12,}).

Permissions

  • agents:read (all roles)

Response

success
boolean
Indicates if the request was successful.
data
object
The full agent configuration object.
{
  "success": true,
  "data": {
    "agent_id": "agent_a1b2c3d4e5f6",
    "agent_name": "Sales Rep",
    "language": "EN",
    "stt_provider": "deepgram",
    "tts_provider": "elevenlabs",
    "tts_voice": "21m00Tcm4TlvDq8ikWAM",
    "llm_provider": "openai",
    "llm_model": "gpt-4o",
    "system_prompt": "You are a helpful sales representative...",
    "speak_first": true,
    "end_call_tool": true,
    "llm_temperature": 0.7,
    "recording_enabled": true,
    "voicemail_detection": false,
    "voicemail_response_delay": 2.0,
    "custom_tools": [],
    "kb_document_ids": [],
    "assigned_phone_number_ids": [],
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-20T14:45:00Z"
  }
}