---
title: "*[OpenAI Only]* Get a list of saved Chat Completions. Only Chat Completions that have been stored with the `store` parameter set to true will be returned."
method: GET
path: "/v1/chat/completions"
tags: ["router"]
---

# \*\[OpenAI Only\]\* Get a list of saved Chat Completions. Only Chat Completions that have been stored with the \`store\` parameter set to true will be returned.

`GET /v1/chat/completions`

## Request

- Base URL: `https://docs.sudoapp.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.sudoapp.dev/v1/chat/completions`
- Auth: HTTP bearer

## Query parameters

- `after` string
- `limit` integer
- `metadata` object
- `model` string
- `order` string

## Response `200`

Chat completions listed successfully

- ChatCompletionList
  - `data` ChatCompletion[], required
    - `choices` Choice[], required
      - `finish_reason` string, required
      - `index` integer, required
      - `logprobs` unknown
      - `message` MessageResponse, required
        - `annotations` unknown
        - `audio` unknown
        - `content` string, nullable
        - `refusal` string, nullable
        - `role` string, required
        - `tool_calls` ToolCall[], nullable
          - `function` ToolCallFunction, required
            - `arguments` string, required
            - `name` string, required
          - `id` string, required
          - `type` string, required
    - `created` integer, required
    - `id` string, required
    - `model` string, required
    - `object` string, required
    - `service_tier` string, nullable
    - `system_fingerprint` string, nullable
    - `usage` Usage, required
      - `completion_tokens` integer, required
      - `completion_tokens_details` unknown
      - `prompt_tokens` integer, required
      - `prompt_tokens_details` unknown
      - `total_tokens` integer, required
    - `metadata` object, nullable: Developer-defined metadata attached to the completion.
  - `first_id` string, required
  - `has_more` boolean, required
  - `last_id` string, required
  - `object` string, required

## Other responses

- `401`: Unauthorized
- `500`: Internal server error
- `502`: Bad gateway error

---

[API](https://skmtc.dev/sudoapp/apis/sudo-api.md) - [All operations](https://skmtc.dev/sudoapp/apis/sudo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sudoapp/apis/sudo-api/revisions/7d59684bf816?raw)
