Get chat messages

Retrieves a list of chat messages for a given chat session

Query Params
string
required

Chat session ID

integer
Defaults to 10

Number of messages to return

string
enum

Filter by one or more message roles. Multiple roles can be specified as a comma-separated string. If not specified, messages with all roles are returned.

Available roles:

  • user - Messages from the user
  • assistant - Text responses from the AI assistant
  • model - Function/tool call requests from the model
  • function - Function/tool call results
Allowed:
string
enum
Defaults to desc

Order of messages

Allowed:
Responses

401

Unauthorized

403

Forbidden - requires develop tier access

500

Server error

Language
Credentials
Bearer
JWT
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json