---
title: "Get a presigned URL to upload your file to S3"
method: GET
path: "/patients/{patient_id}/attachment_presigned_post"
tags: ["Patient Attachment"]
---

# Get a presigned URL to upload your file to S3

`GET /patients/{patient_id}/attachment_presigned_post`

## Request

- Base URL: `https://api.au1.cliniko.com/v1`
- URL: `https://api.au1.cliniko.com/v1/patients/{patient_id}/attachment_presigned_post`
- Auth: HTTP basic

## Path parameters

- `patient_id` string, int64, required

## Response `200`

successful operation

- AttachmentPresignedPost
  - `fields` object, nullable
    - `key` string
    - `policy` string
    - `success_action_status` '201', integer
    - `x-amz-algorithm` string
    - `x-amz-credential` string
    - `x-amz-signature` string
  - `url` string, uri, nullable

---

[API](https://skmtc.dev/cliniko/apis/cliniko-api.md) - [All operations](https://skmtc.dev/cliniko/apis/cliniko-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cliniko/apis/cliniko-api/revisions/6c0c8387a325?raw)
