Skip to navigation

Get agent

View as Markdown
Retrieves detailed information about an agent using its UUID.

Authentication

X-API-Keystring

API key for authentication. Example: raya_ABCD1234567890abcdef

Path parameters

idstringRequiredformat: "uuid"
The UUID of the agent

Response

Agent details retrieved successfully
uuidstringOptionalformat: "uuid"
Unique identifier of the agent
namestringOptional
Name of the agent
instructionsstringOptional
Agent instructions
output_instructionsstringOptional

Instructions for how to populate output_fields after a call.

output_fieldslist of objectsOptional

Array of key-description pairs. Each item has key and description only (no extra properties).

agent_argsmap from strings to anyOptional

Agent arguments as a JSON object (e.g. {“contact_name”: “John”, “order_id”: “123”}). Not an array.

required_silence_after_speechdouble or nullOptional
Required silence after speech in seconds
allowed_silence_before_nudgedouble or nullOptional
Allowed silence before nudge in seconds
allowed_speech_before_nudgedouble or nullOptional
Allowed speech before nudge in seconds
out_diddouble or nullOptional
Outbound DID number
in_diddouble or nullOptional

Inbound DID number (read-only; for reference)

webhook_urlstring or nullOptional

Webhook URL for callbacks (sent on call completed or call failure). See Webhooks for payload format.

allow_call_transferbooleanOptional

When true, the voice agent may use live call transfer to a human (India only). Default true.

transfer_destination_phonestring or nullOptionalformat: "^[0-9]{10}$"
India mobile, 10 digits, no country code. Null or omit if not using transfer.
language_idstring or nullOptionalformat: "uuid"

Call language UUID. See /documentation/agent-language-options.

voice_idstring or nullOptionalformat: "uuid"

Voice UUID. See /documentation/agent-voice-options.

languageslist of stringsOptional

Languages the agent speaks (ISO 639-1); the first is the starting language. Empty for a single-language agent.

stt_language_modeenumOptional

How the caller’s language is detected: auto (every turn), lock (first detected language, code-mix on) or handoff (lock, code-mix off).

Allowed values:
default_voice_idstring or nullOptionalformat: "uuid"

Starting voice of a composite voice_id, or null.

toolsobjectOptional

Function tools ({ "llm_tools": [...] }). Empty array when none configured.

allow_interruptionbooleanOptional
Whether the user may interrupt the agent while speaking.
min_user_speech_to_interruptdouble or nullOptional>=0

Minimum user speech duration (seconds) before interruption is allowed.

max_call_duration_minsdouble or nullOptional>=0
Maximum call duration in minutes.
say_hellobooleanOptional
Whether the agent says hello at call start.
voicemail_msgstring or nullOptional
Message played when voicemail is detected.
call_duration_exceed_messagestring or nullOptional
Message played when the maximum call duration is reached.
messageslist of stringsOptional

Notes about the request, present only when there are any: an inbound number moved from another agent, or more than 4 languages. The change itself was applied.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error