Skip to main content
POST
/
api
/
calls
/
create-web-call
cURL
curl --request POST \
  --url http://localhost:8080/api/calls/create-web-call \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "agent_id": "agent-123",
  "metadata": {
    "customer_id": "cust-001",
    "session_type": "support",
    "priority": "high"
  }
}
'
{
  "message": "<string>",
  "status": "<string>",
  "error": "<string>",
  "data": {}
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Body

application/json

Web call creation request body

agent_id
string
required

Specific agent ID to use for the web call

is_widget_call
boolean

Whether this is a widget-based call

metadata
object

Additional metadata for the call

Response

OK

message
string
status
string
error
string
data
object