POST
/
v1
/
chat
/
actions
cURL
curl --request POST \
  --url https://api.botpress.cloud/v1/chat/actions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-bot-id: <api-key>' \
  --data '{
  "type": "<string>",
  "input": {}
}'
{
  "output": {},
  "meta": {
    "cached": true
  }
}

Authorizations

Authorization
string
header
required

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

x-bot-id
string
header
required

Your bot ID.

Body

application/json

Action payload

type
string
required

Type of the action

Maximum length: 200
input
object
required

Input of the action

Response

200
application/json

Action payload

output
object
required

Input of the action

meta
object
required