botruntime
API ReferenceChat API

Call Action

Call an action

POST
/v1/chat/actions

Header Parameters

x-bot-id*string

Bot id

x-integration-id?string

Integration id

x-integration-alias?string

Integration alias

Request Body

application/json

Action payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/chat/actions" \  -H "x-bot-id: string" \  -H "Content-Type: application/json" \  -d '{    "type": "string",    "input": {}  }'
{  "output": {},  "meta": {    "cached": true  }}
{  "output": {},  "meta": {    "cached": true  }}