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

# Get Patient Sidebar Snapshot



## OpenAPI

````yaml get /user/patient/{patient_id}/sidebar-counts
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /user/patient/{patient_id}/sidebar-counts:
    get:
      tags:
        - provider
        - user
      summary: Get Patient Sidebar Snapshot
      operationId: >-
        get_patient_sidebar_snapshot_user_patient__patient_id__sidebar_counts_get
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: patient_id
          in: path
          required: true
          schema:
            type: string
            title: Patient Id
        - name: include_cancelled
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            default: false
            title: Include Cancelled
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientSidebarSnapshot'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PatientSidebarSnapshot:
      properties:
        memosCount:
          type: integer
          title: Memoscount
          description: Count of memos (quick notes without event)
          default: 0
        appointmentsCount:
          type: integer
          title: Appointmentscount
          description: Count of patient events (not archived)
          default: 0
        chargesCount:
          type: integer
          title: Chargescount
          description: Count of charges for patient
          default: 0
        paymentMethodsCount:
          type: integer
          title: Paymentmethodscount
          description: Count of active payment methods (excluding Apple Pay)
          default: 0
        formsCount:
          type: integer
          title: Formscount
          description: Count of completed form submissions for patient
          default: 0
        notesCount:
          type: integer
          title: Notescount
          description: Count of latest-note threads for patient
          default: 0
        documentsCount:
          type: integer
          title: Documentscount
          description: Count of documents for patient
          default: 0
        attachmentsCount:
          type: integer
          title: Attachmentscount
          description: Count of attachments per attachment-history rules
          default: 0
      type: object
      title: PatientSidebarSnapshot
      description: |-
        Snapshot for patient sidebar: counts + today's appointments list.

        Fields use snake_case per backend conventions. Frontend middleware will
        map these to camelCase for TypeScript consumers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````