Skip to main content
GET
Get chat's messages

Authorizations

Authorization
string
header
default:YOUR_API_TOKEN
required

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

Path Parameters

chat_id
string
required

The unique identifier of the chat to retrieve messages from.

Query Parameters

citation_style
enum<string>

Controls how citations are handled in the message content. 'link' preserves citations as links, 'remove' strips them out

Available options:
link,
remove

Response

Success

data
object[]
required
first_id
string
required
last_id
string
required
has_more
boolean
required
assistant_id
string