Skip to main content
POST
/
api
/
agent
/
on-message
Send Message to Agent
curl --request POST \
  --url https://api.plazbot.com/api/agent/on-message \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "agentId": "string",
  "workspaceId": "string",
  "question": "string",
  "sessionId": "string"
}'
{
  "success": true,
  "answer": "Response <answer>"
}

Headers

x-workspace-id
string
required

Body

application/json
agentId
string
required
workspaceId
string
required
question
string
required
sessionId
string
required
file
string | null
multipleAnswers
boolean | null

Response

200 - application/json
success
boolean
required
answer
string