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

# Chat öffnen

> Chat mit Verlauf. `messages` sind `UIMessage`-Objekte des Vercel AI SDK und können direkt an `useChat` übergeben werden.



## OpenAPI

````yaml /api-reference/partner-api.json get /chats/{id}
openapi: 3.1.0
info:
  title: Delicious AI Partner-API
  version: 1.0.0
  description: >-
    Delicious AI als Chat-Backend für ein eigenes Frontend.


    Alle Pfade liegen unter `/api/public/v1`. Jeder Request braucht das Access
    Token des Nutzers als Bearer Token.
servers:
  - url: >-
      https://delicious-ai-app.wonderfulgrass-3eed3e5c.westeurope.azurecontainerapps.io/api/public/v1
    description: Produktion
security:
  - bearerAuth: []
tags:
  - name: Sitzung
    description: Angemeldeter Nutzer
  - name: Prompts
    description: Prompts des Nutzers
  - name: Chats
    description: Chats anlegen, auflisten, laden, löschen
  - name: Nachrichten
    description: Nachricht senden, Antwort streamen
paths:
  /chats/{id}:
    parameters:
      - $ref: '#/components/parameters/ChatId'
    get:
      tags:
        - Chats
      summary: Chat öffnen
      description: >-
        Chat mit Verlauf. `messages` sind `UIMessage`-Objekte des Vercel AI SDK
        und können direkt an `useChat` übergeben werden.
      operationId: getChat
      responses:
        '200':
          description: Chat mit Verlauf
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatDetail'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ChatNotFound'
        '503':
          $ref: '#/components/responses/BackendUnavailable'
components:
  parameters:
    ChatId:
      name: id
      in: path
      required: true
      description: Chat-ID aus `POST /chats` oder der Liste
      schema:
        type: string
        example: Q7xk2mVb9pLw
  schemas:
    ChatDetail:
      type: object
      required:
        - chat
        - messages
      properties:
        chat:
          $ref: '#/components/schemas/ChatSummary'
        messages:
          type: array
          items:
            $ref: '#/components/schemas/UIMessage'
    ChatSummary:
      type: object
      required:
        - id
        - title
        - promptId
        - createdAt
        - updatedAt
        - lastActivityAt
      properties:
        id:
          type: string
          example: Q7xk2mVb9pLw
        title:
          type:
            - string
            - 'null'
          example: Wochenrückblick Verkäufe
        promptId:
          type:
            - string
            - 'null'
          description: Prompt, aus dem der Chat gestartet wurde
          example: ab12cd34ef56gh78ij90klmn
        createdAt:
          type: string
          format: date-time
          example: '2026-09-17T08:12:44.000Z'
        updatedAt:
          type: string
          format: date-time
          example: '2026-09-17T08:13:20.000Z'
        lastActivityAt:
          type: string
          format: date-time
          example: '2026-09-17T08:13:20.000Z'
    UIMessage:
      type: object
      description: >-
        Nachricht im `UIMessage`-Format des Vercel AI SDK. `parts` enthält Text,
        Tool Calls mit Input und Output sowie Freigabe-Anfragen.
      required:
        - id
        - role
        - parts
      properties:
        id:
          type: string
          example: m2
        role:
          type: string
          enum:
            - user
            - assistant
            - system
        parts:
          type: array
          items:
            type: object
            required:
              - type
            properties:
              type:
                type: string
                example: text
            additionalProperties: true
          example:
            - type: tool-createReport
              toolCallId: call_1
              state: output-available
              input: {}
              output: {}
            - type: text
              text: Letzte Woche …
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - message
      properties:
        code:
          type: string
          description: >-
            Fehlercode. Fehlt bei den beiden Antworten der Auth-Schicht
            (`Invalid API token`, `Product backend unavailable`).
          example: chat_not_found
        message:
          type: string
          example: Chat not found
  responses:
    Unauthorized:
      description: >-
        Kein oder ungültiges Token. `Invalid API token`: abgelaufen oder
        widerrufen, neues Token holen.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Invalid API token
    Forbidden:
      description: '`forbidden`: Der Assistent ist für diesen Nutzer nicht freigeschaltet'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: The AI assistant is not enabled for this user
    ChatNotFound:
      description: '`chat_not_found`: Chat existiert nicht oder gehört einem anderen Nutzer'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: chat_not_found
            message: Chat not found
    BackendUnavailable:
      description: Backend vorübergehend nicht erreichbar. Request wiederholen.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Product backend unavailable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Access Token des Nutzers aus der Delicious Data App (Einstellungen →
        Benutzerkonto → API-Token). Gilt bis zu sechs Tage, endet mit dem
        Logout.

````

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