cURL
curl --request POST \ --url https://api.soca.ai/v1/chat/{agent_id} \ --header 'Content-Type: application/json' \ --header 'private_key: <api-key>' \ --data ' { "prompt": "<string>", "session_id": "<string>" } '
{ "status": true, "data": { "status": 123, "message": "<string>", "data": "<string>" } }
This endpoint is used to send a prompt (command or question) to the message processing system and retrieve its response.
The unique identifier of a Soca AI agent created in the Studio.
Message payload to be sent to the AI Agent.
Chat send by users to Soca AI.
Session ID for this message.
Chat has been sent.
Chat has been delivered successfully
Same session ID as in the request.
Show child attributes