Skip to main content
POST
Attach a patient document to a prior authorization

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string
required

Body

application/json

Body for POST /prior-authorizations/{id}/documents.

source_file_id
string
required

Id of the patient document to attach to this prior authorization.

Response

Successful Response

File resource.

Extends BaseResource to include file-specific fields. All fields use snake_case.

id
string<uuid>
required
created_at
string<date-time>
required
name
string
required
updated_at
string<date-time> | null
display_name
string | null

User-friendly display name for the file

url
string | null

File URL (may require authentication)

mime_type
string | null

MIME type of the file

size
integer | null
uploaded_by
string | null
type
enum<string> | null

File category: fax, prior_auth, patient_document, form_upload

Available options:
fax,
prior_auth,
patient_document,
form_upload
patient_id
string | null
form_submission_id
string | null
message_id
string | null
prior_authorization_id
string | null
patient
Patient · object | null
document_type
enum<string> | null

AI classification of any uploaded file, not just faxes.

Lives on files.document_type and drives fax stage routing. Bound to PG enum document_type.

Available options:
referral,
authorization,
intake_documents,
legal_documents,
financial_documents,
insurance_card,
billing,
spam,
plan_of_care,
diagnosis,
medical_records,
other
page_count
integer | null
metadata
Metadata · object | null