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

# Get Pre-Visit Summary by ID

> Retrieve the pre-visit section of a Patient Summary using the Patient Summary ID

Use this endpoint to retrieve the pre-visit section of a Patient Summary using its **Patient Summary ID**.

<Tip>
  This endpoint is intended for UI workflows that display a pre-visit preview to the provider.
</Tip>

<Note> Patient summaries are generated from data previously **ingested** into the Clinical Knowledge Graph (CKG). Before calling this endpoint, ensure the required Patient, Encounter, and Practitioner resources have been ingested using the [CKG Data Ingestion APIs](/patient-summary-api-reference/ckg-data-ingestion). </Note>


## OpenAPI

````yaml GET /api/v1/patient-summary/{patient_summary_id}/pre_visit
openapi: 3.0.1
info:
  title: Suki Developer Platform
  description: >-
    REST and WebSocket APIs for the Suki Developer Platform. Authenticate with
    Login or Register to obtain a Suki access token, then integrate ambient
    clinical documentation, form filling, transcription, and reference metadata
    endpoints.
  contact: {}
  version: '1.0'
servers:
  - url: https://sdp.suki.ai
    description: >-
      Production base URL for Suki Developer Platform REST APIs. WebSocket
      endpoints use the same host with `wss://`.
security:
  - SukiTokenAuth: []
paths:
  /api/v1/patient-summary/{patient_summary_id}/pre_visit:
    get:
      tags:
        - /api/v1/patient-summary
      summary: Get pre-visit summary by ID
      description: >-
        Retrieve the exact pre-visit section from inside the full patient
        summary using the patient summary ID. This dedicated endpoint was
        created specifically for the user interface (UI) to display a preview to
        the provider.
      parameters:
        - name: patient_summary_id
          in: path
          description: Patient summary identifier.
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/ProviderIdHeader'
      responses:
        '200':
          description: Success Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  pre_visit_summary:
                    type: object
                    properties:
                      last_visit:
                        type: object
                        properties:
                          date:
                            type: string
                            format: date-time
                          description:
                            type: string
                      updated_at:
                        type: string
                        format: date-time
              examples:
                success:
                  value:
                    pre_visit_summary:
                      last_visit:
                        date: '2026-05-22T10:00:00Z'
                        description: Follow-up for asthma
                      updated_at: '2026-05-22T10:00:00Z'
        '400':
          description: Bad request. The request parameters failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.BadRequestError'
        '401':
          description: Unauthorized. The Suki access token is missing, expired, or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.AuthenticationError'
        '404':
          description: Not found. The patient summary does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.NotFoundError'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.InternalServerError'
      security:
        - SukiTokenAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET \
              --url https://sdp.suki.ai/api/v1/patient-summary/<patient_summary_id>/pre_visit \
              --header 'sdp_suki_token: <sdp_suki_token>' \
              --header 'sdp_provider_id: <sdp_provider_id>'
components:
  parameters:
    ProviderIdHeader:
      name: sdp_provider_id
      in: header
      description: >-
        **Optional** for standard partners.


        **Required** for:


        - **Bearer authentication.** Use the same `provider_id` returned by the
        Login or Register API.

        - **Single Auth Token authentication.** Include the same `provider_id`
        on every request as `sdp_provider_id`.
      required: false
      schema:
        type: string
        example: provider-123
  schemas:
    controllers.BadRequestError:
      description: Bad Request Response
      type: object
      properties:
        code:
          type: integer
          example: 400
        message:
          type: string
          example: invalid request
    controllers.AuthenticationError:
      description: Authentication Failure Response
      type: object
      properties:
        code:
          type: integer
          example: 401
        message:
          type: string
          example: invalid token
    controllers.NotFoundError:
      description: Not Found Response
      type: object
      properties:
        code:
          type: integer
          example: 404
        message:
          type: string
          example: not found
    controllers.InternalServerError:
      description: Internal Server Error Response
      type: object
      properties:
        code:
          type: integer
          example: 500
        message:
          type: string
          example: internal server error
  securitySchemes:
    SukiTokenAuth:
      type: apiKey
      in: header
      name: sdp_suki_token
      description: >-
        Suki access token (`suki_token`) from Login or Register. Expires after
        one hour.

````