GET
/
session
/
chat
/
{agent_id}
/
{session_id}
curl --request GET \
  --url https://api.soca.ai/v1/session/chat/{agent_id}/{session_id} \
  --header 'private_key: <api-key>'
{
  "status": true,
  "message": "<string>",
  "data": [
    {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "question": "<string>",
      "answers": [
        {
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "description": "<string>",
          "doc_source": [
            "<string>"
          ],
          "chart": [
            {}
          ],
          "files": [
            "<string>"
          ],
          "created_at": "2023-11-07T05:31:56Z",
          "updated_at": "2023-11-07T05:31:56Z"
        }
      ],
      "files": [
        "<string>"
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

private_key
string
header
required

Path Parameters

agent_id
string
required

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

session_id
string
required

Identifier of the specific session.

Response

200
application/json

Returns the chat history for the specified session.

The response is of type object.