---
title: "POST /api/documents"
method: POST
path: "/api/documents"
tags: ["Clinical"]
---

# POST /api/documents

`POST /api/documents`

## Request

- Base URL: `https://app.drchrono.com`
- URL: `https://app.drchrono.com/api/documents`
- Auth: OAuth 2
  - Authorization code: `https://app.drchrono.com/o/authorize/`
  - Token URL: `https://app.drchrono.com/o/token/` scopes: `patients:read`, `patients:write`

Create documents

## Query parameters

- `since` string
- `patient` integer
- `doctor` integer

## Response `201`

Created

- ScannedClinicalDocument
  - `archived` boolean: `DELETE` operation will set this field to `true`
  - `patient` integer, required: ID of the patient the document concerns
  - `description` string, required
  - `doctor` integer, required: ID of the doctor who owns the document
  - `metatags` string: Array of tags represented as string. This should be quoted--e.g. `'["a", "b"]'`--since this endpoint requires `multipart/form-data` encoding
  - `updated_at` string
  - `date` string, required
  - `document` string, required: When creating, if you receive response as 201, but this field is `null`, please send a `GET` request with the created object's ID to retrieve the updated file URL
  - `id` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Permission Denied
- `404`: Not Found
- `405`: Method Not Allowed
- `500`: Internal Server Error

---

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