Chat9
APIChat

Get History

Get chat history for a session (protected JWT). Returns 404 if session not found or not owner.

GET
/chat/history/{session_id}
/chat/history/{session_id}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Path Parameters

session_id
Required
Session Id

Format: "uuid"
curl -X GET "https://api.getchat9.live/chat/history/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer <token>"

Successful Response

{
  "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  "messages": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "role": "string",
      "content": "string",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}