List chat completion messages
GET /chat/completions/{completion_id}/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.
AuthorizationBearer <token>
Your Munito API key.
In: header
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.
Default
20order?string
Sort by the position in the request.
Default
"asc"Value in
- "asc"
- "desc"
Response Body
application/json
curl -X GET "https://example.com/chat/completions/string/messages"{
"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
}