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

# Read the conversation summary

> The cached summary of the conversation, if any. `stale` when messages
arrived after it was generated. The session read in the services-api
carries the same value (`__sessionEvals.summary`); this route serves
clients that do not read the session from there.



## OpenAPI

````yaml /api/services-ai.yaml get /v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary
openapi: 3.0.3
info:
  description: >-
    Talqui is an omnichannel customer service platform that unifies
    conversations from WhatsApp, Instagram, Telegram, and many other channels
    into a single attendant panel, alongside a broader ecosystem of plugins and
    integrations. This API exposes Talqui's AI operations on a conversation:
    writing assistance for the operator's reply and conversation summaries. The
    generation routes stream their answer as Server-Sent Events.


    Authentication is on behalf of an Operator. See the [Talqui authentication
    guide](https://docs.talqui.chat/guides/introduction/authentication/) for how
    the token is obtained.


    Need help or have questions not covered here? Reach out to
    support@talqui.com.
  license:
    name: ISC
    url: https://opensource.org/license/isc-license-txt
  title: Talqui - AI API
  version: 0.2.1
servers:
  - description: Relative to wherever this API is deployed.
    url: https://services-ai.talqui.chat
security: []
tags:
  - name: AI
paths:
  /v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary:
    get:
      tags:
        - AI
      summary: Read the conversation summary
      description: |-
        The cached summary of the conversation, if any. `stale` when messages
        arrived after it was generated. The session read in the services-api
        carries the same value (`__sessionEvals.summary`); this route serves
        clients that do not read the session from there.
      operationId: ReadSessionSummaryController
      parameters:
        - in: path
          name: tenantID
          required: true
          schema:
            description: The tenant that owns the conversation.
            minLength: 1
            type: string
        - in: path
          name: sessionID
          required: true
          schema:
            description: The conversation (session) being addressed.
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  stale:
                    description: Whether messages arrived after the summary was generated.
                    type: boolean
                  summary:
                    additionalProperties: false
                    description: >-
                      The cached summary, or null when none was generated in the
                      last 7 days.
                    nullable: true
                    properties:
                      anchorCreatedAt:
                        description: When that message was created (ISO 8601).
                        type: string
                      anchorMessageID:
                        description: Last message the summary covers.
                        type: string
                      generatedAt:
                        description: When the summary was generated (ISO 8601).
                        type: string
                      source:
                        description: >-
                          Requested by an operator or refreshed in the
                          background.
                        enum:
                          - manual
                          - queue
                        type: string
                      text:
                        description: >-
                          The summary, in Talqui chat text (`*bold*`,
                          `_italic_`).
                        type: string
                    required:
                      - text
                      - anchorMessageID
                      - anchorCreatedAt
                      - source
                      - generatedAt
                    type: object
                required:
                  - summary
                  - stale
                type: object
          description: Response for status 200.
        '401':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/UnauthorizedError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: 'UnauthorizedError (error_code 1003): missing/invalid operator token.'
        '403':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/ForbiddenError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            ForbiddenError (error_code 1004): operator does not belong to the
            tenant.
        '500':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/UnknownError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            UnknownError (error_code 5999): Unexpected internal error not
            otherwise documented for this endpoint.
      security:
        - operatorAuth: []
components:
  schemas:
    UnauthorizedError:
      additionalProperties: false
      properties:
        error:
          enum:
            - UnauthorizedError
          type: string
        error_code:
          enum:
            - 1003
          type: number
        message:
          example: You are not authorized to perform this request.
          type: string
        statusCode:
          enum:
            - 401
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
    ForbiddenError:
      additionalProperties: false
      properties:
        error:
          enum:
            - ForbiddenError
          type: string
        error_code:
          enum:
            - 1004
          type: number
        message:
          example: You do not have access to this resource.
          type: string
        statusCode:
          enum:
            - 403
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
    UnknownError:
      additionalProperties: false
      properties:
        error:
          enum:
            - UnknownError
          type: string
        error_code:
          enum:
            - 5999
          type: number
        message:
          example: For some unknown reason your request has not succeeded.
          type: string
        statusCode:
          enum:
            - 500
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
  securitySchemes:
    operatorAuth:
      description: >-
        Behalf of an Operator (default). A JWT issued by Talqui Core when an
        operator signs in, scoped to every tenant that operator belongs to. Send
        as "Authorization: Bearer <jwt-token>".
      in: header
      name: Authorization
      type: apiKey

````

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