This endpoint is available after the prior authorization requests backend release is enabled in your environment. Check your environment’s API reference before integrating.
POST /v1/prior-authorization-requests to extract uploaded documents and create a prior authorization asynchronously. Upload the files using the Files API first, then submit their IDs. You can supply any information you already know in data.
Submit a request
202 Accepted and a Location header pointing to the request. Acceptance means the request was saved; extraction and creation may still fail.
file_ids accepts 1–15 distinct file IDs belonging to your company. Supported documents are PDF, PNG, and JPEG, with a combined size limit of 50 MB. Comment attachments, message attachments, and form-submission attachments are not accepted. Documents associated with a patient must belong to the patient ultimately selected for this prior authorization.
Supply explicit data
data uses the fields of the regular prior authorization creation request, with every field optional at submission. The service extracts the documents, overlays your explicit data, then validates the result using the regular creation rules.
- Omitted fields retain extracted values.
- Explicit values override extracted values.
- Nested objects merge field by field. For example, a supplied
patient_data.date_of_birthoverrides that field while retaining extracted names. - Arrays replace the entire extracted array.
- Explicit
nullclears an extracted value. Clearing a required value causes validation to fail. patient_idselects an existing patient instead of extractedpatient_data;patient_policy_idselects an existing coverage instead of extractedpolicy_data. Do not supply both alternatives in the same identity pair.
Poll for the result
A successful retrieval returns
200 OK, including when the operation itself failed. Polling responses contain status and safe error details, without document contents or the submitted clinical data.
retryable. That flag indicates a transient failure for which a new submission may succeed. To correct missing or invalid information, submit a new request with the same files and corrected data.
Retry submissions safely
Idempotency-Key is optional and scoped to your company. Repeating the same key and normalized request payload returns the original request and its current status. Reusing the key with different input returns 409 Conflict. The key remains reserved for the lifetime of the request; corrected submissions need a new key.
Without a key, every submission creates an independent request and may create another prior authorization. Use the same key when retrying after a network timeout.
Invalid input is rejected synchronously with 422; unavailable source files return 404. Errors discovered during extraction or final validation appear on the polled request. A request in another company is not visible and returns 404.
Request completion is available through polling. Completion webhooks are deferred. Existing patient-created webhooks and configured workflow actions still run when this operation creates a new patient; those actions are dispatched separately after the creation transaction commits.
