Skip to main content
POST
Create retrieval request

Authorizations

Authorization
string
header
required

API key authentication. Use format: Authorization: Bearer tavrn_sk_live_... Live keys (tavrn_sk_live_...) work only against https://enterprise.tavrn.ai; sandbox test keys (tavrn_sk_test_..., from https://sandbox.tavrn.ai) work only against https://sandbox.tavrn.ai.

Headers

Tavrn-Version
string

Dated API version (YYYY-MM-DD) to apply to this request. Defaults to the version pinned to the API key, then to the baseline 2026-10-16. Unknown values return 400 invalid_api_version. See Guides > Versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-16"

Idempotency-Key
string

Optional opaque key (1-255 characters, a UUID v4 is recommended) that makes a POST safe to retry. Scoped to your organization and kept for 24 hours. A retry with the same key and the same body replays the original status and body with Idempotent-Replayed: true; the same key with a different body returns 422 idempotency_key_reused_with_different_payload; a retry while the first attempt is still running returns 409 idempotency_key_in_use. Only 2xx and 4xx outcomes are stored - a 5xx releases the key so the retry executes again. See the Idempotent requests guide.

Required string length: 1 - 255

Path Parameters

case_id
string
required

Case ID

Body

application/json
patient
object
required

Patient details. Supply as much as you know — many facilities verify identity against DOB, SSN last-4, or address before releasing records.

facility
object
required

Facility name and address when creating a request manually. Provide this object or a top-level facility_id. Optional phone and fax contacts may be absent on read.

auth_form
object
required

The signed HIPAA authorization PDF. Required.

requested_records
object[]
required

One or more record lines to request. Each line carries its own type, dates, requirements, and (for billing) deliverable format.

Minimum array length: 1
facility_id
string

Facility ID from GET /v2/facilities. Provide exactly one of facility_id or facility.

Minimum string length: 1
Example:

"facility_example"

service_start_date
string<date> | null

Default start of the service date range (YYYY-MM-DD). Inherited by any requested_records[] line that omits its own service_start_date.

Example:

"2024-03-15"

service_end_date
string<date> | null

Default end of the service date range (YYYY-MM-DD). Inherited by any requested_records[] line that omits its own. Set to null for ongoing care.

Example:

"2024-09-30"

notes
string | null

Free-text instructions for the team handling this request

Example:

"Please include any radiology read reports"

submitter_email
string<email> | null

Email of a user in your organization to attribute the request to. That user receives retrieval notifications for the request. Must match an existing user in your organization or the request is rejected with a 400 validation_error. If omitted, the request is attributed to the creator of the API key.

Example:

"jane.smith@example.com"

attachments
object[]

Optional supporting documents for the request — e.g., cover letters, patient ID copies, prior-auth attachments. Each entry references an uploaded file by upload_id.

requestor_id
string

Existing profile in your organization. Mutually exclusive with requestor. Omit both to keep the organization default.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"111111111111111111111111"

requestor
object

Create a Requestor profile with this retrieval. Requires requestors:write and cannot be combined with requestor_id.

allow_duplicate
boolean | null

When duplicate detection is enabled, retry with true after reviewing a 409 duplicate_request_detected response to create despite the blocking matches. Omission or null does not override the check.

metadata
object

Custom JSON object returned unchanged in request responses and retrieval webhooks. Maximum 16 KB (16,384 UTF-8 bytes) of serialized JSON.

Example:
create_draft_on_validation_failure
enum<boolean> | null

Omit, or set false or null, to reject a request with missing or invalid data with a 400. Set it to true to save that request as a draft instead (see the draft variant).

Available options:
false

Response

Retrieval request created

id
string
required
Example:

"rr_abc123"

order_number
string
required
Example:

"T-ABC-12345"

case_id
string
required
Example:

"case_abc123"

status
enum<string>
required
Available options:
received,
processing,
action_required,
completed,
cancelled
Example:

"received"

created_at
string<date-time>
required
Example:

"2025-02-01T12:50:00Z"

updated_at
string<date-time>
required
Example:

"2025-02-01T12:50:00Z"

requestor_id
string | null
required

Selected Requestor profile ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"111111111111111111111111"

metadata
object | null
required

Custom JSON object supplied for this request, or null when unset.

Example: