Skip to main content
GET
/
v2
/
chat-sessions
/
{chatSessionId}
/
messages
Get Messages
curl --request GET \
  --url http://localhost:3000/api/v2/chat-sessions/{chatSessionId}/messages \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "content": "<string>",
    "role": "user",
    "chatSessionId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chatSessionId
string
required

Response

List of messages

id
string
required
content
string
required
role
enum<string>
required
Available options:
user,
assistant
chatSessionId
string
required
createdAt
string<date-time>
required
I