Skip to Content

List chat completion messages

Lists the request messages of a completion that was created with store: true, in the order of the request by default. A message with a list of content parts keeps the list in content_parts, and content holds its text.

GET
/chat/completions/{completion_id}/messages

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

completion_id*string

The completion id.

Query Parameters

after?string

The id of the last message of the previous page.

limit?integer

The number of messages to return, from 1 to 100.

Default20
order?string

Sort by the position in the request.

Default"asc"
Value in"asc""desc"

Response Body

A page of the request messages.

application/json
curl -X GET 'https://api.munito.ai/inference/v1/chat/completions/string/messages'
Example Response
{
  "object": "list",
  "data": [
    {
      "id": "chatcmpl-7f3c1a-0",
      "role": "user",
      "content": "Why does data residency matter?",
      "name": null,
      "content_parts": null
    }
  ],
  "first_id": "chatcmpl-7f3c1a-0",
  "last_id": "chatcmpl-7f3c1a-0",
  "has_more": false
}