> ## Documentation Index
> Fetch the complete documentation index at: https://docs.synapsai.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# List stored chat completions

> Lists chat completions stored for the account. Requires data store on the model and `store` not set to false on the original request. Results are limited to models the API key can access.



## OpenAPI

````yaml /api-reference/chat.json get /v1/chat/completions
openapi: 3.1.0
info:
  title: SynapsAI Chat API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/chat/completions:
    get:
      summary: List stored chat completions
      description: >-
        Lists chat completions stored for the account. Requires data store on
        the model and `store` not set to false on the original request. Results
        are limited to models the API key can access.
      operationId: listChatCompletions
      parameters:
        - name: model
          in: query
          required: false
          schema:
            type: string
          description: Only return completions for this model ID.
        - name: after
          in: query
          required: false
          schema:
            type: string
          description: 'Cursor: return items after this completion id.'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: order
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: A page of stored chat completions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StoredList'
components:
  schemas:
    StoredList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            type: object
            additionalProperties: true
        first_id:
          type: string
          nullable: true
        last_id:
          type: string
          nullable: true
        has_more:
          type: boolean
      required:
        - object
        - data
        - has_more

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.