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

# List patient-shared medical history attachments



## OpenAPI

````yaml /openapi/nimbo_patient_portal.yml get /api/v1/patient_portal/people/{person_id}/attachments
openapi: 3.1.0
info:
  title: Nimbo patient portal
  version: 1.0.0
  description: >-
    Nimbo API reference. Use the API host and integration access provided by
    Nimbo.
servers:
  - url: https://api.example.test
security: []
tags:
  - name: Patient Portal
  - name: Patient portal authentication
paths:
  /api/v1/patient_portal/people/{person_id}/attachments:
    get:
      tags:
        - Patient Portal
      summary: List patient-shared medical history attachments
      operationId: listPatientPortalPersonAttachments
      parameters:
        - name: person_id
          in: path
          required: true
          schema:
            type: integer
          example: 123
      responses:
        '200':
          description: >-
            Non-deleted attachments explicitly shared below a non-deleted
            medical-history parent, ordered by ID.
          content:
            application/json:
              schema:
                type: object
                required:
                  - attachments
                additionalProperties: false
                properties:
                  attachments:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - attachment_file_name
                        - attachment_file_name_alias
                        - consultation_id
                        - attachment_content_type
                        - medical_history_id
                        - attachment_file_url
                        - attachment_file_size
                        - created_at
                        - updated_at
                        - updater_name
                        - metadata
                        - attachment_file_original_url
                      additionalProperties: false
                      properties:
                        id:
                          type: integer
                        attachment_file_name:
                          type:
                            - string
                            - 'null'
                        attachment_file_name_alias:
                          type:
                            - string
                            - 'null'
                        consultation_id:
                          type:
                            - integer
                            - 'null'
                        attachment_content_type:
                          type:
                            - string
                            - 'null'
                        medical_history_id:
                          type: integer
                        attachment_file_url:
                          type: string
                        attachment_file_original_url:
                          type: string
                        attachment_file_size:
                          type:
                            - integer
                            - 'null'
                        created_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        updated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        updater_name:
                          type: string
                        metadata:
                          type: object
                          additionalProperties: true
        '401':
          description: Missing, expired, invalid, or unauthorized patient portal token.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
              examples:
                unauthorized:
                  value:
                    error: Unauthorized
        '404':
          description: >-
            The requested resource was not found or is outside the authorized
            patient scope.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
              examples:
                not_found:
                  value:
                    error: Not found
      security:
        - PatientPortalToken: []
components:
  securitySchemes:
    PatientPortalToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Patient portal JWT accepted either as a raw Authorization header value
        or as a Bearer token for client compatibility.

````