# List chat completions
URL: https://docs.munito.ai/api/listChatCompletions

GET /chat/completions

Lists the completions of your workspace that were created with `store: true`, oldest first by default. Page with `after` and `limit`.

```json
{
  "operationId": "listChatCompletions",
  "summary": "List chat completions",
  "tags": [
    "Completions"
  ],
  "description": "Lists the completions of your workspace that were created with `store: true`, oldest first by default. Page with `after` and `limit`.",
  "parameters": [
    {
      "name": "model",
      "in": "query",
      "description": "Only completions of this model.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "metadata",
      "in": "query",
      "description": "Only completions whose `metadata` holds each given pair, as `metadata[key1]=value1&metadata[key2]=value2`.",
      "schema": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    {
      "name": "after",
      "in": "query",
      "description": "The id of the last completion of the previous page.",
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "limit",
      "in": "query",
      "description": "The number of completions to return, from 1 to 100.",
      "schema": {
        "type": "integer",
        "default": 20
      }
    },
    {
      "name": "order",
      "in": "query",
      "description": "Sort by creation time.",
      "schema": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ],
        "default": "asc"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "A page of stored chat completions.",
      "content": {
        "application/json": {
          "example": {
            "object": "list",
            "data": [
              {
                "id": "chatcmpl-7f3c1a",
                "object": "chat.completion",
                "model": "qwen/qwen3.8-27b",
                "metadata": {
                  "team": "research"
                },
                "choices": [
                  {
                    "index": 0,
                    "message": {
                      "role": "assistant",
                      "content": "Data residency keeps every token in the EU."
                    },
                    "finish_reason": "stop"
                  }
                ],
                "usage": {
                  "prompt_tokens": 12,
                  "completion_tokens": 9,
                  "total_tokens": 21
                }
              }
            ],
            "first_id": "chatcmpl-7f3c1a",
            "last_id": "chatcmpl-7f3c1a",
            "has_more": false
          }
        }
      }
    }
  }
}
```

# Shared API schemas
{
  "securitySchemes": {
    "BearerAuth": {
      "type": "http",
      "scheme": "bearer",
      "description": "Your Munito API key."
    },
    "ApiKeyAuth": {
      "type": "apiKey",
      "in": "header",
      "name": "x-api-key",
      "description": "Your Munito API key."
    }
  }
}