cURL
curl --request POST \ --url https://us.api.bland.ai/v1/pathway/chat/{id} \ --header 'Content-Type: application/json' \ --header 'authorization: <authorization>' \ --data '{ "message": "<string>" }'
{ "status": "success", "chat_id": "1234567890", "Assistant Response": "Hey there, how are you doing?", "Current Node ID": "node_123", "Current Node Name": "Welcome Node", "Chat History": [ {"role": "user", "content": "Hello"}, {"role": "assistant", "content": "Hi there!"} ], "Pathway ID": "pathway_123" }
Send a message to a pathway and receive a response.
success
error