Skip to main content

Agents

Get agent

Retrieves the full configuration of a single agent by its slug.

Authentication​

AuthorizationBearer

Authenticate server-side requests with a Fonema API key. Create one in the API keys section of the Dashboard and send it in the Authorization header as Bearer <token>. Keep keys out of client-side code and public repositories.

Path parameters​

slugstringRequired

Unique slug of the agent. Get it from List agents or from your Fonema dashboard.

Response​

namestring
Agent name.
slugstring
Unique agent identifier.
greetingstring
Opening message the agent says when the call starts.
promptstring
System prompt that defines the agent behavior.
textPromptstring
Prompt used for text/chat conversations.
voiceIdstring
Voice identifier used by the agent.
sipDialTargetstring | null
SIP destination, if configured.
numberOfAttemptinteger
Number of call attempts configured (from recallLogic).
allowReturnCallboolean
Whether the agent allows return calls.
recallLogicobject

Retry configuration. See Edit agent.

workingHoursobject

Hours when the agent can place calls. See Edit agent.

localizationsobject
Localization settings.
dtmfboolean
Whether the agent can press keypad tones (DTMF), e.g. to navigate phone menus (IVR).
transferCallDestinationsarray

Phone numbers the agent can transfer the call to. See Edit agent.

knowledgeBaseFilesarray
IDs of attached knowledge base files.
toolsarray
Tools/skills available to the agent.
configobject
Additional agent configuration (transcriber language, timeouts, webhooks, etc.).
note

Sensitive tool credentials (apiKey, token, credentialId) are never returned in the tools response.

Errors​

404
Agent not found or not accessible by this API key.