Skip to main content
GET
/
agent
/
{agent_id}
Get Agent by ID
curl --request GET \
  --url https://api.kallabot.com/agent/{agent_id} \
  --header 'Authorization: Bearer <token>'
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "11111111-2222-3333-4444-555555555555",
  "name": "Alfred",
  "agent_type": "other",
  "call_direction": "inbound",
  "inbound_phone_number": "+14155551234",
  "agent_image": "https://cdn.example.com/agents/alfred.png",
  "webhook_url": "https://webhooks.example.com/agents/alfred",
  "total_calls": 123,
  "total_duration": 45678,
  "total_cost": 12.34,
  "created_at": "2025-08-23T12:34:56Z",
  "timezone": "America/Los_Angeles",
  "country": "US",
  "template_variables": {
    "company_name": "Acme Corp"
  },
  "is_compliant": false,
  "agent_config": {
    "agent_name": "Alfred",
    "agent_welcome_message": "Hello, how can I help?",
    "call_direction": "inbound",
    "tasks": [
      {
        "task_type": "conversation",
        "tools_config": {
          "llm_agent": {
            "agent_type": "simple_llm_agent",
            "agent_flow_type": "streaming",
            "llm_config": {
              "provider": "openai",
              "model": "gpt-4o-mini"
            }
          },
          "synthesizer": {
            "provider": "polly",
            "provider_config": {
              "voice": "Matthew",
              "engine": "generative"
            }
          },
          "transcriber": {
            "provider": "deepgram",
            "provider_config": {
              "model": "nova-2"
            }
          },
          "input": {
            "provider": "twilio",
            "format": "wav"
          },
          "output": {
            "provider": "twilio",
            "format": "wav"
          }
        },
        "toolchain": {
          "execution": "parallel",
          "pipelines": [
            [
              "transcriber",
              "llm",
              "synthesizer"
            ]
          ]
        },
        "task_config": {
          "hangup_after_silence": 10
        }
      }
    ]
  },
  "agent_prompts": {
    "task_1": {
      "system_prompt": "You are a helpful voice agent."
    }
  },
  "knowledgebase": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string<uuid>
required

Response

Agent details

Full agent details returned by GET /agent/{agent_id}. Contains metadata, current config, prompts and optional knowledgebase linkage.

agent_id
string<uuid>
required

Agent UUID.

account_id
string<uuid>
required

Account UUID owning the agent.

name
string
required

Agent display name.

agent_config
object
required

The full agent configuration object as submitted on create/update.

agent_type
string

Logical agent type (e.g., 'other').

call_direction
string

Call direction: 'inbound' or 'outbound'.

inbound_phone_number
string | null

Configured inbound phone number (E.164) if agent is inbound.

agent_image
string | null

URL to agent image or avatar.

webhook_url
string<uri> | null

Webhook URL where events will be posted.

total_calls
integer

Total number of calls handled by this agent.

total_duration
integer

Aggregate call duration in seconds.

total_cost
number

Aggregated cost for calls (currency depending on account).

created_at
string<date-time>

Agent creation timestamp (ISO 8601).

timezone
string

Timezone of the agent (IANA zone).

country
string

Two-letter country code for agent defaults.

template_variables
object

Template variables available to prompts and calls.

is_compliant
boolean

Whether the agent is flagged as compliance-restricted (affects recording, etc.).

agent_prompts
object

Map of prompt IDs to prompt objects.

knowledgebase
object | null

Optional knowledgebase linkage for retrieval-enabled agents.