Skip to main content
POST
Create a visit

Authorizations

Authorization
string
header
required

Your API key, created in RxNote under Settings → API: Authorization: Bearer rxn_live_….

Headers

Idempotency-Key
string
required

Your unique id for this consultation (for example your appointment id). Retrying with the same key returns the same visit.

Required string length: 1 - 255
Example:

"appt-2026-10-21-0001"

Body

application/json
patient_id
integer
required

From POST /patients.

Example:

4821

clinician_email
string<email>

Required with an organization key: the RxNote member acting. With a personal key, omit it or send the owner's own email.

Maximum string length: 255
Example:

"doctor@clinic.example"

language
string
default:en

Language of the consultation.

Required string length: 2 - 10
Example:

"en"

template_id
integer

A template from GET /templates. Omitted: the clinician's default template, as in the app.

Example:

12

outputs
enum<string>[]

What to produce. A note always needs the transcript, so note implies it.

Minimum array length: 1
Available options:
transcript,
note,
summary
audio
object

Send this to upload a recording: the response carries a URL to PUT the file to.

transcript
string

Send this instead of audio to write the note from text you already have. Processing starts at once.

Required string length: 1 - 500000

Response

The visit.

id
integer
required
Example:

90211

patient_id
integer
required
status
enum<string>
required
Available options:
recording,
pending,
processing,
transcribing,
generating-soap,
completed,
failed,
no-speech
language
string
required
template_id
integer | null
required
outputs
enum<string>[]
required
Available options:
transcript,
note,
summary
created_at
string<date-time>
required
completed_at
string<date-time> | null
required
icd_codes
object | null
required

Set once POST /visits/{id}/icd-codes has run.

error
object | null
required
upload
object

Only while the status is recording (waiting for the audio).

transcript
object | null

Omitted unless requested; null until ready.

note
object | null

Omitted unless requested; null until ready.

summary
object | null

Omitted unless requested; null until ready.