---
title: "Get documents for a referral RDVM can see: - Documents they uploaded - Documents shared by the clinic (IsSent = true) - All documents if they have canViewRecords permission"
method: GET
path: "/public/rdvm/referrals/{referralId}/documents"
tags: ["RdvmPortal"]
---

# Get documents for a referral RDVM can see: - Documents they uploaded - Documents shared by the clinic (IsSent = true) - All documents if they have canViewRecords permission

`GET /public/rdvm/referrals/{referralId}/documents`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/public/rdvm/referrals/{referralId}/documents`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/public/rdvm/referrals/:referralId/documents/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `referralId` string, required

## Query parameters

- `sessionId` string
- `clinicId` string

## Response `200`

OK

- RdvmDocumentListResponse
  - `documents` RdvmDocumentDto[]
    - `id` string
    - `referralId` string
    - `documentType` string
    - `fileName` string
    - `description` string, nullable
    - `fileSizeBytes` union
      - integer
      - string, int64
    - `mimeType` string, nullable
    - `uploadedByName` string, nullable
    - `uploadedAt` string, date-time
    - `isSent` boolean
    - `sentAt` string, date-time, nullable
    - `source` string
    - `canDelete` boolean
  - `totalCount` union
    - integer
    - string, int32
  - `canExport` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
