# Ingest files

URL: https://docs.clinia.com/api/rest/post-patients-patientId-ingestions-files

> Submits PDF, TIFF, JPEG or PNG files as `multipart/form-data`, one `files` part per file. Text is extracted page by page before the response is returned.

The response is a receipt: ingestion continues after it is returned, so poll the ingestion to follow it. `intake` comes back index-aligned with the files you sent. If text extraction fails or runs past its deadline, the request is rejected and nothing is stored.

## `POST /v1/patients/{patientId}/ingestions/files`

Parameters, request body and responses: operation `ingest-files` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).