All agent APIs have been updated to /v2 version.

Bolna still supports legacy /v1 agent APIs but it’s highly recommended updating to /v2.

Endpoints

POST /v2/agent
GET /v2/agent
PUT /v2/agent/:agent_id
GET /v2/agent/all

Agent Object Attributes

agent_config

  • agent_name string (required)
    Name of the agent

  • agent_welcome_message string (required)
    Initial agent welcome message. you can pass dynamic values here using variables encloed within {}

  • webhook_url string (required)
    Get real-time details of the call progress and call data on a webhook. All supported events are listed in Poll call data using webhooks

  • tasks array (required)
    Definitions and configuration for the agentic tasks

agent_prompts

Prompts to be provided to the agent.