POST
/
chat
/
{agent_id}
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>"
  }
}

Authorizations

private_key
string
header
required

Path Parameters

agent_id
string
required

The unique identifier of a Soca AI agent created in the Studio.

Body

application/json

Message payload to be sent to the AI Agent.

The body is of type object.

Response

200
application/json

Chat has been sent.

The response is of type object.