Agents
Get agent
Retrieves the full configuration of a single agent by its slug.
Authentication
AuthorizationBearerAuthenticate 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
slugstringRequiredUnique slug of the agent. Get it from List agents or from your Fonema dashboard.
Response
namestringAgent name.
slugstringUnique agent identifier.
greetingstringOpening message the agent says when the call starts.
promptstringSystem prompt that defines the agent behavior.
textPromptstringPrompt used for text/chat conversations.
voiceIdstringVoice identifier used by the agent.
sipDialTargetstring | nullSIP destination, if configured.
numberOfAttemptintegerNumber of call attempts configured (from
recallLogic).allowReturnCallbooleanWhether the agent allows return calls.
recallLogicobjectRetry configuration. See Edit agent.
workingHoursobjectHours when the agent can place calls. See Edit agent.
localizationsobjectLocalization settings.
dtmfbooleanWhether the agent can press keypad tones (DTMF), e.g. to navigate phone menus (IVR).
transferCallDestinationsarrayPhone numbers the agent can transfer the call to. See Edit agent.
knowledgeBaseFilesarrayIDs of attached knowledge base files.
toolsarrayTools/skills available to the agent.
configobjectAdditional agent configuration (transcriber language, timeouts, webhooks, etc.).
note
Sensitive tool credentials (apiKey, token, credentialId) are never returned in the tools response.
Errors
404Agent not found or not accessible by this API key.