Skip to main content
GET

Overview

Retrieve an agent’s full configuration: prompt, start message, voice, languages, knowledge bases, call settings, tools and variables. The agent must have been created by the user who owns the API key.

Prerequisites

  • An API key for your workspace
  • The agent’s ID, from Get Agents

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the agent.

Response

object
required
The agent’s full configuration. The example shows the main fields; the response also includes call settings, tools, call analysis metrics and timestamps.
string | null
ID of the agent’s voice.
array[string]
Variables used in the agent’s prompt and start message. Contacts added to a campaign should include a field for each.
array[string]
IDs of the agent’s knowledge bases.
integer
Number of the agent’s latest saved version.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Invalid agent ID format.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Agent not found: the agent doesn’t exist or wasn’t created by the user who owns the API key.
  • 500 Internal Server Error – Unexpected server error.
You can use the agent ID with:
  • PATCH /api/agents/{id} to update the agent.
  • DELETE /api/agents/{id} to permanently remove the agent.