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

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

`GET /v1/chat/completions/{completion_id}`

## 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/{completion_id}`
- Auth: HTTP bearer

## Path parameters

- `completion_id` string, required

## Response `200`

Chat completion gotten successfully

- ChatCompletion
  - `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.

## Other responses

- `400`: Bad request
- `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)
