Skip to main content
PUT
/
agent
/
{agent_id}
Update an existing agent
curl --request PUT \
  --url https://api.kallabot.com/agent/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_config": {
    "agent_name": "Alfred",
    "agent_welcome_message": "Updated welcome",
    "call_direction": "inbound",
    "inbound_phone_number": "+14155551234",
    "tasks": []
  },
  "agent_prompts": {
    "task_1": {
      "system_prompt": "You are updated prompt"
    }
  }
}'
{
  "status": "success",
  "message": "Agent updated successfully",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "callback_configured": true,
  "ready_for_inbound_calls": true,
  "ready_for_outbound_calls": true,
  "warning": 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

Agent UUID to update. Must match agent_id in request body.

Body

application/json

Updated agent payload. Include the same agent_id as in the path and the new agent_config/agent_prompts.

Payload for updating an existing agent. The agent_id in the body should match the {agent_id} path parameter.

agent_id
string<uuid>
required

Agent UUID (must match URL path parameter).

agent_config
object
required
agent_prompts
object
required

Response

Agent updated successfully

Response returned after a successful agent update.

status
string
required
Example:

"success"

message
string
required
Example:

"Agent updated successfully"

agent_id
string<uuid>
required
callback_configured
boolean | null

True when inbound callback status is configured and validated.

ready_for_inbound_calls
boolean | null
ready_for_outbound_calls
boolean
Example:

true

warning
string | null