---
title: "Upload a file to a patient's chart."
method: POST
path: "/provider/partner-invisible/patients/{patient_id}/files"
tags: ["PatientFile"]
---

# Upload a file to a patient's chart.

`POST /provider/partner-invisible/patients/{patient_id}/files`

## Request

- Base URL: `https://api.sandbox.hint.com/api`
- URL: `https://api.sandbox.hint.com/api/provider/partner-invisible/patients/{patient_id}/files`
- Auth: API key in header `AUTHORIZATION`

## Path parameters

- `patient_id` string, required

## Request body

- ProviderPatientsClinicalFilesControllerCreateBody
  - `file` string, required: A file to store on the patient's chart, provided as either a downloadable URL or a base64-encoded data URI (e.g. "data:application/pdf;base64,..."). The file is fetched or decoded server-side and uploaded to the patient's chart.

## Response `200`

Successful response

- PublicPatientFileBlueprintOne
  - `file_name` string

## Changes

- **2026-11-03** `c9bda0d2dd87`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hint/apis/partner-endpoints/changes/provider/partner-invisible/patients/:patient_id/files/post.md)

---

[API](https://skmtc.dev/hint/apis/partner-endpoints.md) - [All operations](https://skmtc.dev/hint/apis/partner-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/hint/apis/partner-endpoints/revisions/c9bda0d2dd87?raw)
