Build telehealth into anything you ship.
The Qualiphy API lets clinics, medspas, and software teams launch licensed provider consultations, treatments, and pharmacy fulfillment under their own brand. Programmatic access to the same network that powers Qualiphy's products. Comprehensive reference below.
Answer 5 quick questions, get a custom integration plan with the exact endpoints, sample call, and checklist your dev team needs.
Prefer no code?
Run your site on WordPress?
Quidget is our drop-in WordPress plugin that wraps the Qualiphy API in a polished WooCommerce experience. Ship telehealth on your store without writing a line of code.
Code walkthrough
The fastest path from zero to a successfully approved exam.
1. Get an API key
Sign in to the Qualiphy portal and find your API key under Settings → API. If you don't have a portal account yet, sign up free - it takes a minute.
2. Find an exam ID
Each treatment your clinic offers has a numeric exam ID. You can either browse them in the portal under Exam List, or fetch them programmatically:
3. Send an exam invite
Build a payload with the patient's details, the exam ID from step 2, and a webhook URL where you want to receive the result. The sample below uses Test mode (state: "TE", name Test Approve) and exam 5359, Qualiphy's dedicated no-charge test exam, so it is safe to run as-is and costs you nothing. Swap in your own exam ID and real patient values when you are ready to ship.
5359. It is a no-charge exam Qualiphy maintains for exactly this purpose, so you can run the loop as many times as you need without an invoice. Every other exam is billed at your normal rate when it is approved, including one you sent only to check your wiring. If 5359 is not in your /exam_list response, ask your Qualiphy representative to enable it. If a test genuinely needs a specific exam instead, ask your representative or sales@qualiphy.me before you send it.4. Wait for the webhook
A licensed provider reviews the patient and approves in 2-24 hours (for test exams; real exams are processed within seconds). When approved, your webhook_url receives a POST with the result payload. See webhook reference for the schema.
Authentication
Every Qualiphy API request outside /api/v1/ includes your api_key in the JSON request body. The External APIs (every endpoint under /api/v1/) take the same key only as an Authorization: Bearer YOUR_API_KEY header and reject a key in the body or query string with 401. There are no OAuth tokens or refresh flows to manage.
Where to find your key
- Sign in to the Qualiphy portal Settings
- Copy your API key
One key per location
Your API key identifies one location (clinic) on your account, and each location has its own key. /exam_invite has no field to select a location, so the key you send decides which location an exam belongs to; /v1/locations lists your locations and their ids. To run multiple brands on one location, separate the records instead: pass a brand identifier in additional_data (returned unchanged on every webhook) and use a per-call webhook_url and redirect URLs per brand. The provider key is reserved - see /exam_invite.
Testing your integration
Qualiphy provides a dedicated Test state so you can validate exam submissions, webhooks, prescription workflows, and order set configurations without touching live patients or production providers.
/exam_invite samples in this documentation default to test-mode values, so copying and running one pages no provider and contacts no patient. Billing is separate: only exam 5359 is no-charge. The Good Faith Exam samples use it; the Rx recipes use real exams and are billed on approval.1. Route to the test state
On any /exam_invite request, set both state and tele_state to TE. This routes the request to the test environment and prevents any live workflow from running.
2. Use a test patient name that names your expected outcome
Test providers read the patient's name to decide how to process the exam — the name is your test instruction. Variations are fine as long as the intent is unambiguous (e.g. Test GFE Approve).
Test Approve- Provider approves the exam (use for GFE / non-Rx flows).
Test Reject- Provider rejects the exam.
Test N/A- Provider marks the exam not applicable.
Test Prescription Approve- Provider approves an Rx exam (use for partner pharmacy or urgent care flows).
Test Prescription Reject- Provider rejects an Rx exam.
3. Validate end-to-end
- Submit the test invite and capture
patient_exam_idfrom the response. - Watch your webhook endpoint for the lifecycle events.
- Confirm the outcome matches the name you used.
/exam_invite 200 response, then poll the webhook log.5359 does. Routing to TE stops live workflows; it does not stop the charge. Any exam other than 5359 is billed at your normal rate the moment it is approved, exactly as a live exam is. Use exam 5359, Qualiphy's dedicated no-charge test exam, and nothing is billed no matter how many times you run the loop. If a validation pass genuinely needs a different exam, arrange it with your Qualiphy representative or sales@qualiphy.me before you send it rather than after the invoice.state and tele_state to TE is only half of it - the exam you're calling also needs the Test state enabled on your account. If a test invite goes quiet, confirm that with your Qualiphy representative before you start debugging your own code.email, phone_number, and dob values from our samples, or any clearly-fictional values. When you're ready to ship, switch state and tele_state to the patient's real state and use real patient details — see Going to Production.Integration flow
Qualiphy runs good-faith exams (GFE) and prescription consultations for clinics. Your system creates the exam on the patient's behalf, optionally pre-fills the medical questionnaire, and learns the outcome by webhook or by polling. The clinic's providers make every clinical decision; the API never decides an exam.
The calls, in order
- 1
POST /exam_list- which exam templates your clinic may invite for. Cache the static ids. Details - 2
POST /exam_invite- creates the patient (or matches by email), one patient exam per template, and a meeting that groups them. Returnsmeeting_url,meeting_uuidand onepatient_exam_idper exam. The patient is emailed and texted the link unless the clinic disabled notifications. - 3Optional:
POST /exam_questionsthenPOST /exam_submit_answersto pre-fill the questionnaire with history you already hold. Details - 4The exam is decided. Synchronous exams: the patient opens
meeting_urland has a video visit; the provider decides. Asynchronous (prefill-only) exams: once every question is answered the exam enters the provider review queue. - 5Qualiphy
POSTs the completion webhook (event 1 or 2) to yourwebhook_url; you can also pollPOST /patient_exam_statusat any time, or callPOST /patient_exam_webhook_payloadto pull the full completion Event 1/2 JSON if a webhook was missed. Details
On the sandbox host, step 4 can be your own code: the sandbox decision harness Sandbox only moves an exam to a terminal status through the real decision path, so the webhook fires and the status poll changes exactly as they will in production.
Two kinds of exam
| Synchronous (video) | Asynchronous (prefill-only) | |
|---|---|---|
| Patient does | Opens the meeting link, completes any unanswered questions, has a live video visit | Answers the questionnaire only; no visit |
| Provider does | Decides during or after the visit | Reviews the completed questionnaire from a queue and decides |
| When it is ready | As soon as the invite exists | When every patient-facing question is answered (a partial pre-fill keeps it waiting for the patient) |
| Sandbox outcomes Sandbox only | approved, rejected, na | release into the review queue, then approved / rejected / na |
Whether a template is synchronous or asynchronous is set on the exam by Qualiphy; ask which of yours are asynchronous. An exam can also be asked to run as an async review on the invite itself, with visit_type: "async": where the rules don't allow it, the invite is a video visit and the response says why. See /exam_invite, "Asking for an async review".
What you need before you start
- A clinic account on the sandbox host with an API key (
api_key). Qualiphy sets this up; sandbox test clinics create no charges. If your platform serves many businesses, each location can register itself and have its key delivered to you by webhook: see Registering clinics. - A webhook endpoint you control that accepts
POSTJSON and answers2xxquickly (optional; polling works without it). - The exam static ids you intend to offer, from
exam_list.
For production only the host and the api_key change.
Hosts & authentication
The two environments, how requests are authenticated, and the response conventions the core API shares. The External APIs under /api/v1/ follow their own; each rule below says which it covers.
Hosts
| Environment | Base URL | Use it for |
|---|---|---|
| Sandbox | https://staging-api.qualiphy.me/api/ | All integration development and testing: test clinics, test patients, no charges, and the sandbox decision harness Sandbox only. |
| Production | https://staging-api.qualiphy.me/api/ | Live patients. The sandbox decision harness does not exist here. |
Every endpoint outside /api/v1/ is POST with a JSON body (Content-Type: application/json); the External APIs under /api/v1/ work differently (see the note under Authentication). Paths in these guides are relative to the base URL. The sandbox is a separate deployment with its own database: a patient_exam_id, meeting_uuid or api_key from one environment means nothing in the other.
Authentication
Requests outside /api/v1/ are authenticated by the clinic's API key, sent in the JSON body as api_key. Those endpoints take no header token.
- The key identifies one clinic; everything you create or read is scoped to it. Another clinic's exam answers
403. - Keys are issued per environment by Qualiphy. Keep them server-side; rotate on request.
- A wrong or inactive key answers
{"http_code": 401, "error_message": "Unauthorized access."}.
/api/v1/) are GET (Notification Settings also takes PATCH with a JSON body) and take the same API key only as Authorization: Bearer YOUR_API_KEY; a key in the body or query string is rejected. They return real HTTP status codes with {"success": true, "data": …} or {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}, and no http_code, so the envelope rules below do not apply to them. Check the HTTP status.The response envelope
Outside /api/v1/, the API returns HTTP 200 for almost every response and puts the real status in the body as http_code. Read http_code, not the transport status. Treat a body with http_code: 200, or with no http_code at all, as success: exam_list omits the field on success and returns just { clinic_id, exams } (clinic_id is always present for API-key callers; it is omitted only for Qualiphy's own embedded widget). Every error carries http_code and error_message. A few answer with the matching real HTTP status as well: exam_invite's webhook-URL refusals (HTTP 422 invalid_webhook_url, and once the webhook-registration rollout completes HTTP 422 webhook_url_not_registered and HTTP 503 webhook_registry_unavailable) and the webhook destination endpoints' own errors. Their bodies are JSON with error_code, so read the body on those statuses rather than treating them as transport failures.
| http_code | Meaning |
|---|---|
200 or absent | Success; payload fields are endpoint-specific. |
400 | Malformed request, or a business rule refused it (error_message says which). |
401 | Authentication failed, or request validation failed (validation errors are reported as 401 on the older endpoints). |
403 | Authenticated, but the resource belongs to another clinic or the action is not allowed to partners. |
404 | The patient_exam_id does not exist. |
422 | The invite was valid but could not be created; errors lists the causes. |
A transport-level 404 with an HTML body means the path does not exist on that host (for example the sandbox harness on production, or a typo). A transport 5xx means the service is unavailable: retry with backoff.
Idempotency and retries
exam_inviteis not idempotent: two calls create two exams and two patient notifications. Record the returned ids before retrying a timed-out call, or useexam_invite_resendfor an exam that already exists.- Reads (
exam_list,exam_questions,patient_exam_status,patient_exam_webhook_payload) are safe to retry. - Sandbox decisions refuse to run twice on the same exam.
Data handling
Requests, webhook payloads, and responses that return the webhook body (for example patient_exam_webhook_payload) carry protected health information. Use HTTPS to the hosts above only, do not log bodies in plaintext, and never put patient data in URLs or query strings.
Identifiers you will see
| Field | What it is |
|---|---|
exam_id | The exam template's static id (exam_list, exam_invite, exam_questions). |
clinic_id | A clinic (location) id: your API key's clinic in exam_list, the exam's clinic in webhooks. The location id from /api/v1/locations is this same value. |
patient_exam_id | One patient's instance of an exam: the key for questions, answers, status, cancel, webhooks and the sandbox. |
meeting_uuid / meeting_url | The visit that groups the patient exams created by one invite; the URL the patient opens. |
question_id, exam_question_response_id | A question in a template and one of its selectable responses; used when submitting answers. |
Registering clinics (signed link)
If your platform serves many businesses, each with its own locations, you can send each location to Qualiphy to register as a clinic, and receive that clinic's API key automatically when it is ready. You build a signed link; the user signs up or logs in on Qualiphy; Qualiphy sends your system one signed webhook carrying the new clinic's api_key together with your own tenant and location identifiers. Nothing here is an endpoint you call: you build a URL and you receive a webhook.
This is enabled per integration. Qualiphy gives you a partner code and two secrets: a link secret (you sign links with it) and a webhook secret (you verify our webhook with it). Both are exchanged through a password manager share, never by email. Tell Qualiphy the https endpoint that should receive the webhook, or send it on every link (see "Where the webhook goes" below).
The flow
- 1A location wants Qualiphy. Your system builds a signed link for that location and sends the user to it.
- 2The link opens a Qualiphy page that offers Log in (for an existing Qualiphy user) or Sign up (a new clinic). A new user goes through the usual clinic signup: email verification, clinic details, agreement and payment. An existing user logs in and picks which of their clinics is this location.
- 3When the clinic is ready (the agreement is signed, and a payment method is valid or billing is skipped for the clinic), Qualiphy sends the
location_registeredwebhook to your endpoint. - 4Your system stores the
api_keyagainst that tenant and location and uses it like any other clinic key (see Hosts & authentication).
The API key is delivered only by the webhook. It is never placed in a URL or shown on a page.
1. Build the signed link
The host is the Qualiphy web app for the environment you are integrating with: this page shows the one for the environment it was built for. The sandbox and production web apps are separate deployments; a link only works on the one whose secret signed it.
| Parameter | Rule |
|---|---|
partner | Your partner code. |
tenant_id | Your identifier for the business: 1–128 characters from A-Z a-z 0-9 _ . : -, starting with a letter or digit. |
location_id | Your identifier for the location. Same rule as tenant_id. |
exp | When the link stops working, unix seconds (UTC). Must be in the future and no more than 7 days ahead. |
emr (optional) | The EMR the clinic uses. 1–64 characters from letters, digits, space and . _ & -. Prefills the EMR field on the signup form when it is one of Qualiphy's EMR options; otherwise the person chooses. The clinic's recorded EMR is the value you signed. |
callback (optional) | An https URL where this link's webhook is sent, instead of your default endpoint. Public https only (no private or internal addresses), 490 characters at most, no spaces. |
sig | Lowercase hex HMAC-SHA256, 64 characters (below). |
The signature
- Fields are joined with a single newline (
\n), with no trailing newline.expis its decimal digits exactly as it appears in the URL. - Optional fields are signed as labeled lines after those five,
emrfirst, thencallback:…\nemr=<emr>\ncallback=<callback>. Leave out the line for any field you do not send. A link with neither signs exactly the five fields. - Leave a parameter off entirely rather than sending it empty. An
emrorcallbackthat was added, changed or removed after signing makes the link invalid. - Sign the plain values, then URL-encode them when you build the query string.
2. Receive the webhook
When the clinic is ready, Qualiphy sends POST with Content-Type: application/json to your endpoint (https only, a public host; private and cloud-metadata addresses are refused, and redirects are not followed).
| Header | Value |
|---|---|
X-Qualiphy-Timestamp | Unix seconds when Qualiphy signed the delivery. |
X-Qualiphy-Signature | v1= followed by the hex HMAC-SHA256 of "<timestamp>.<raw body>", keyed with your webhook secret. |
| Field | Meaning |
|---|---|
event | Always location_registered today. Ignore events you do not recognize. |
event_id | Stable across retries and replays. Use it to make your handler idempotent. |
tenant_id, location_id | Exactly the values you signed into the link. |
clinic_id | The Qualiphy clinic created or attached for this location. |
api_key | The clinic's API key for the environment that sent the webhook. Store it like any secret and never log it. |
registered_at | When the clinic became ready. |
- Verify before you trust it. Compute the HMAC over the raw bytes of the body (before any JSON parsing), compare in constant time, and reject a timestamp more than 5 minutes old.
- Answer
2xxto acknowledge. Anything else, or no answer within 15 seconds, is retried after 1, 2, 5, 15, 30 and 60 minutes, then 2, 4 and 6 hours, up to 12 attempts. After that Qualiphy support is alerted and replays the delivery by hand, so a replay can also arrive after a manual fix. - Be idempotent on
event_id. A retry or a replay carries the same one.
Where the webhook goes
- The
callbacksigned into the link, if the link has one. - Otherwise the default endpoint Qualiphy configured for your integration.
If your integration has no default endpoint (for example because each of your customers has its own), every link must carry a callback: a link without one is refused. Qualiphy can also restrict callback to hosts you name (hooks.example.com or *.example.com); a link pointing anywhere else is refused, and the check is repeated when the webhook is sent. The destination always comes from the signed link or from Qualiphy's configuration, never from an unsigned parameter, and it is locked once a clinic is attached to the location, so a later link cannot redirect a delivery already underway.
Existing Qualiphy users and edge cases
- A user who already has a Qualiphy clinic logs in and chooses which clinic is this location; the same webhook is sent when it is ready. A user with an unfinished signup who logs in is taken to the signup wizard and should reopen the link afterwards.
- If a location's webhook cannot be delivered after all attempts, the clinic and its key are unaffected: Qualiphy support replays the delivery once your endpoint is healthy. You can also read the key from the clinic's portal Settings.
Testing on the sandbox
Ask Qualiphy for a sandbox partner code and secrets, and give us a sandbox endpoint (or send a callback on your test links). Build links against the sandbox web app host: signing up through one registers a sandbox clinic (no charges), and the webhook carries a sandbox API key that works on the sandbox API host only. Use test tenant and location identifiers, and test addresses and phone numbers for the signup. A good test run covers: a new user, an existing user, an expired link, a link with a tampered parameter, a repeated delivery (answer 2xx twice, change nothing) and a delivery your endpoint answers 500 to once.
Exam catalog & invite
Discover which exams a clinic may offer, create a patient exam (the invite), and resend or cancel it. The per-field reference lives on the Exam List and Exam Invite endpoint pages; this guide is the flow.
1. POST /exam_list - which exams may this clinic invite for?
| Field | Meaning |
|---|---|
id | The exam's static id: the value you send as exam_id in exam_invite and exam_questions. |
rx_type | 2 = a prescription (Rx) exam, 1 = a good-faith exam. Rx exams require address fields on the invite and, where the clinic uses its own pharmacies, the pharmacy fields. |
attachments_required / attachments | 2 means the exam needs uploaded documents; attachments names them. Upload with exam_upload_attachment after the invite; note the completion step is not API-callable (see Questions & answers). |
patient_state (optional, two-letter abbreviation) filters to exams available in that state. The clinic must have signed its service agreement (and the Rx agreement for Rx exams), otherwise exam_list answers {"http_code": 400, "error_message": "Unauthorized access"}. Whether an exam is synchronous or asynchronous is set on the template and is not flagged here; on the sandbox host, release in the decision harness Sandbox only is accepted only for asynchronous exams, which is a reliable test.
2. POST /exam_invite - create the exam
Creates the patient (or matches an existing one by email), one patient exam per requested template, and a meeting that groups them; sends the patient an email and/or SMS with the meeting link unless the clinic has disabled those notifications.
| Field | Required | Notes |
|---|---|---|
api_key | yes | Clinic key. |
first_name, last_name | yes | Patient name as the provider sees it. |
email | yes | Must be valid; the invite email goes here. Whitespace is trimmed. |
phone_number | yes | 10 digits, or +1 followed by 10 digits; the invite SMS goes here. |
dob | yes | YYYY-MM-DD. Patients under 13 are refused ("Invalid DOB!"). |
exams | yes | Array of exam static ids: legacy form [106, 5441] or object form [{ "exam_id": 106, "order_set_ids": […], "provider_note": "…", "skip_intake": true }] (skip_intake is described under Questions & answers). Every id must be one the clinic may use or the whole call is refused ("Unauthorized Exam Access!"). All exams in one call share one meeting. |
tele_state | telehealth clinics: yes | Two-letter state the patient is in during the visit; drives licensing and provider matching. Non-telehealth clinics default to the clinic's state. |
gender | no | Sex assigned at birth: 1 male, 2 female; defaults to 3 (not provided). Some pharmacy flows require it and a missing value blocks prescribing. |
visit_type | no | "async" or "video", for the exams on the invite (your existing "ASYNC" exams stay async whatever you send). Leave it off for today's behaviour. Async the rules don't allow becomes a video visit (never an error), and the response's visit says which and why; any other value returns HTTP 200 with http_code 400 and "Invalid visit type.". See /exam_invite. |
webhook_url | no | Where completion webhooks for these exams are sent. Defaults to the URL configured on the clinic. See Status & webhooks. |
additional_data | no | A string (commonly stringified JSON) echoed back verbatim in the webhook; carry your own order or patient reference here. One reserved key: if the JSON has a provider key naming an EMR handled by Qualiphy's integration hub (for example zenoti), the partner webhook for that exam is suppressed and the result routes through that integration instead. |
redirect_approve, redirect_reject, redirect_na, redirect_missed | no | URLs the patient is sent to after the visit, by outcome. |
address and shipping_* fields | Rx exams and address-requiring exams: yes | All required together when required; states are two-letter abbreviations. |
pharmacy fields (pharmacy_id, custom_pharmacy, ncpdpid, pharmacy_*, provider_pos_selection, custom_pharmacy_*) | Rx exams with a partner or patient-chosen pharmacy | Route the prescription; use custom_pharmacy_search to find NCPDP ids. Omit for GFE-only exams. |
cc1_email, cc2_email | no | Extra recipients for the invite. |
Response
Legacy [106] requests return the same envelope with patient_exams instead of exams. Keep patient_exam_id and meeting_uuid: every later call is keyed on them, and the webhook carries patient_exam_id so you can match it to your record.
Errors to handle
| http_code | error_message (examples) | Cause |
|---|---|---|
401 | First Name is required!, Email is invalid!, Date of Birth is required! | Field validation; several messages joined with commas. |
401 | Unauthorized Exam Access! | An exam_id the clinic may not use. |
401 | Invalid DOB! | Under 13. |
401 | Invalid, you must include a state! | Telehealth clinic without tele_state. |
401 | Need to sign contract! | Clinic agreement (or Rx agreement) unsigned. |
422 | Invitation not created. with errors[] | Downstream creation failed; safe to retry after fixing what errors names. |
What happens next
- The patient receives the meeting link by email and SMS (subject to the clinic's notification settings; a previously bounced address is not emailed again).
- Synchronous exams: the patient opens the link, answers what you did not pre-fill, and has the visit; the exam is
pendinguntil a provider decides. - Asynchronous exams: the patient (or you, via
exam_submit_answers) completes the questionnaire; once complete the exam enters the provider review queue. - Completion is reported by webhook and visible to
patient_exam_status; if a webhook was missed, pull the full completion Event 1/2 JSON withPOST /patient_exam_webhook_payload.
3. POST /exam_invite_resend
Re-sends the invite notification for an existing exam. Body: { "api_key", "patient_exam_id" }. There is a resend limit per exam (currently three).
4. POST /exam_invite_cancel
Cancels an exam the patient has not completed. Body: { "api_key", "patient_exam_id" }. Refused with 400 when the patient is in an active session, when the exam is already cancelled, or when it already has a terminal status. patient_exam_status_set with status: 6 also cancels, but without those guards (it will overwrite an approved exam), so use exam_invite_cancel; cancellation is the only status a partner may set either way. Clinical outcomes come from providers, or from the sandbox decision harness on the sandbox host Sandbox only.
Questions & answers (prefill)
Fetch an exam's questionnaire and submit answers on the patient's behalf. Anything you submit shows as already answered; anything you leave out the patient answers on the meeting page. For asynchronous exams, a complete set of answers is what moves the exam into the provider's queue.
1. POST /exam_questions - fetch the questionnaire
Two modes, depending on what you send.
patient_exam_id, meeting_uuid and answers are present only in live-exam mode. Questions the template hides from pre-fill are not returned.
| response_type | Kind | How to answer |
|---|---|---|
1 | Free text or a number (weight, height, medication lists) | Send answer as text. Weight is pounds ("212"). Height: 5' 11", 5 ft 11 in, total inches or centimetres; see height_inches below and /exam_submit_answers. |
2 | Single select | Send one answer carrying the chosen exam_question_response_id. |
3 | Multi select | Send one answer per selected option, each with its exam_question_response_id. |
On a response option, input_field 1 is a plain choice; 2 marks a choice that expects accompanying free text (the "Other, please specify" pattern): send it with answer_text.
2. POST /exam_submit_answers - store answers
| Field | Notes |
|---|---|
patient_exam_id, meeting_uuid | From the invite response. The exam must belong to your clinic ("Unauthorized access" otherwise). |
answers[].question_id | From exam_questions. (eq_static_id is accepted as an alias.) |
answers[].exam_question_response_id | The chosen option for select questions. (eqr_static_id is accepted as an alias.) Omit for free-text questions. |
answers[].answer | The text shown as the answer: the option's response text for selects, the value for free text. |
answers[].answer_text | Free text attached to an option with input_field: 2. |
answers[].height_inches | Height questions only. 0-11: the inches part, with feet in answer ("5" + 11). 12 or more: total inches (71), with answer empty or the matching feet. Not needed when answer already holds the whole height (5' 11", 71 in, 180 cm). A height that can't be read is not stored and is listed in the response's warnings; the rest of the request is stored. |
Response: { "http_code": 200 }, plus a warnings list when a height couldn't be read and wasn't stored. Answers are stored per question; re-submitting a question replaces its stored answer. Weight, height and certain medical-history answers also update the patient's profile (a weight that isn't a number of pounds doesn't); weight and height recompute the profile BMI. Height is stored as 5' 11" whichever form you send.
3. How this affects asynchronous exams
An asynchronous (prefill-only) exam waits in prefill_only_patient_ready until every patient-facing question has an answer. When your exam_submit_answers call completes the set, the exam is promoted to prefill_only_operator_ready and enters the provider queue in the same call. A partial set leaves it waiting for the patient, who sees only the unanswered questions on the meeting page. A height returned in warnings wasn't stored: if no earlier call stored one for that question, it counts as unanswered. This gate is deliberate: providers must never receive a blank questionnaire.
Synchronous exams have no such gate; pre-filled answers simply shorten what the patient does before the visit. Both asynchronous states report as pending to patient_exam_status. On the sandbox host, release in the decision harness Sandbox only runs the same completeness check and tells you whether the set is complete.
4. Skipping the questionnaire (skip_intake)
If your platform has already taken the patient's intake, you can ask Qualiphy not to offer the pre-fill questionnaire at all. Without this, a patient who finishes your intake still lands on a half-empty Qualiphy questionnaire, because only some of your questions map to Qualiphy's by question id, and has to press Skip by hand every time.
Set skip_intake: true on the exam in the invite, using the object form of exams[]:
- What the patient sees: consent, then the waiting room, with no questionnaire step. It is the same outcome as the patient pressing Skip, without the click.
- Your answers are kept. Whatever you submitted with
exam_submit_answersstill reaches the provider screen. A question left unanswered is asked by the provider during the visit, exactly as after a manual Skip. - Per exam, default
false. In an invite with several exams, only the ones you flag skip the questionnaire. Leave the key off for the normal path. - Object form only. The list-of-IDs shape and the Qualiphy portal cannot set it. A
skip_intakekey at the top of the request is ignored: the patient still sees the questionnaire, and that is not a 422. A value that is not a boolean on the exam object returns422 INVALID_SKIP_INTAKEand nothing is created, including on an asynchronous exam. The response is HTTP 200 withhttp_code422 and anerrors[]entry carrying that exam'sindexandexam_id. - Not for asynchronous exams. There the questionnaire is the exam, so a boolean flag is accepted and ignored: the patient is still asked for the answers you did not send (see section 3). A value that is not a boolean is still refused.
- It is chosen when you create the invite.
exam_submit_answersdoes not take it.
5. Attachments
Exams with attachments_required: 2 need documents before a provider can act. You can upload each document with POST /exam_upload_attachment, but marking the set complete is not something a partner integration can do: that step needs a signed-in user session, so today the patient completes it on the meeting page and the exam stays in pending_attachment until they do. Plan for that in your flow, or upload nothing and let the patient handle attachments end to end. The question flow above is unchanged either way.
Status & webhooks
Three ways to learn an exam's outcome: receiving the completion webhook (primary), polling patient_exam_status (reconciliation - startup, missed deliveries, dashboards), and POST /patient_exam_webhook_payload to pull the full completion Event 1/2 JSON when a delivery was missed. All three report the same state.
1. POST /patient_exam_status - poll
| status | Meaning |
|---|---|
pending | Not decided yet: waiting for the patient (questionnaire or visit), waiting for attachments, or an asynchronous exam in the provider queue. |
approved | The provider approved the exam. |
rejected | The provider did not approve and deferred the case to the medical director (the webhook calls this Deferred to Medical Director). |
na | Not applicable (for example the patient did not attend). |
cancelled | Cancelled by you or by the clinic. |
expired | The visit window expired without a decision. |
prescribed | Rx exams: a prescription was issued (reported in preference to approved). |
rejected_prescription | Rx exams: the provider declined to prescribe. |
Errors: 401 bad key, 403 another clinic's exam, 404 unknown id. Poll no more often than every few minutes per exam.
2. The completion webhook
When an exam reaches a terminal status (approved, deferred to the medical director, or not applicable) Qualiphy POSTs to the exam's webhook_url: the URL you passed on exam_invite, or the URL configured on the clinic if you passed none. Exams with no URL anywhere get no webhook. The per-field reference is on the Exam Webhook page.
Expect more than one delivery per decision. Two Qualiphy components post to the same URL: the completion sender (at the moment the provider decides) and the result-document sender (when the chart PDF is generated, about a minute later, and again whenever it is regenerated, for example when the prescription is written). They carry the same event numbers and the same core identifiers but not the same shape; the differences are listed below. Key idempotency on (patient_exam_id, event) and read only the fields you need.
Events
| event | Sent when | Extra payload |
|---|---|---|
1 | A good-faith exam (no prescription attached) reaches a terminal status | none |
2 | An exam carrying one or more prescriptions reaches a terminal status | prescriptions[] |
3 | A prescription ships (pharmacy fulfillment; Rx exams only) | a different, smaller body: { event: 3, patient_exam_id, clinic_id, prescription_id, tracking_number, delivery_service, pharmacy_location, order_id }. It has no exam_status, exam_id or questions_answers; branch on event before reading those. |
Payload (events 1 and 2)
This is the completion sender's payload. The prescription list is prescriptions (plural) and questions_answers entries are { no, question, answer } with answer a string. Event 1 has no prescriptions and an empty rx_status; event 2 has both.
The exam_status vocabulary and how it maps to polling
The documented webhook labels are Approved, Deferred to Medical Director and N/A (ENG-101, the same strings the result-document sender has always used). Until ENG-101 reaches an environment, the completion sender there emits the lower-case enum keys shown in the samples above; on the sandbox that is the case today (ENG-101 is on Qualiphy's dev branch). Compare case-insensitively and use this mapping:
| patient_exam_status (poll) | completion sender, before ENG-101 | completion sender after ENG-101 and result-document sender | Meaning |
|---|---|---|---|
approved | approved | Approved | The provider approved the exam. |
rejected | rejected | Deferred to Medical Director | The provider did not approve; the case is deferred to the medical director. |
na | na | N/A | Not applicable (for example the patient did not attend). |
One server message is worth knowing when you read exam_invite_cancel errors: that endpoint spells the three terminal states as approved, Deferred to Medical Director and rejected, where its rejected is the na state above.
| Field | Notes |
|---|---|
event | 1, 2 or 3 as above. |
exam_status | See the mapping table above: Approved / Deferred to Medical Director / N/A once ENG-101 is deployed, lower-case approved / rejected / na from the completion sender before that. Not the polling vocabulary. |
rx_status | Completion sender: approved, rejected, pending, or "" when the exam has no prescription component. The result-document sender uses Prescribed, Pharmacy Confirmed, Prescription Denied, Prescription On Hold or "". |
patient_exam_id, exam_id, exam_name | Match these to your record; exam_id is the template static id. |
exam_url | A time-limited link to the result PDF when one exists at send time; otherwise null. The document is produced on demand, so null is common on the first webhook and is not an error. |
clinic_id | The clinic (location) the exam belongs to - the same id exam_list returns. Use this, not clinic_name, to attribute an event to a location: if you point several clinics' webhooks at one endpoint, this is the only stable key that tells them apart. Present on events 1, 2 and 3, and on the result-document sender, even when clinic_name is null. |
clinic_name, provider_name | Display names - free text, neither unique nor stable, so do not key on them. On the sandbox host, decisions made through the harness Sandbox only show Sandbox Provider. |
reason | The provider's note, if any. Sandbox decisions carry a fixed SANDBOX DECISION (…) note so test data is always recognizable. |
patient_email, patient_phone_number | As stored on the patient. PHI: handle accordingly. |
additional_data | Your exam_invite string, echoed verbatim, with one reserved key: if it is JSON whose provider names an EMR handled by Qualiphy's integration hub (for example zenoti), the partner webhook is suppressed and the result is delivered through that integration instead. Do not use provider for your own data. |
questions_answers | Every question with its stored answer, numbered in order; text is sanitized (control characters removed, length-capped). |
prescriptions | Event 2 only. |
The result-document sender's copy
The second delivery is produced by the PDF pipeline (qualiphy-cron-download) and predates the completion sender. It posts to the same URL with the same event (1, or 2 once a pharmacy confirmation exists) and the same patient_exam_id, exam_id, exam_name, clinic_id, clinic_name, provider_name, reason, additional_data and questions_answers, but differs in these ways:
exam_statusis always the documented label (Approved/Deferred to Medical Director/N/A).rx_statususes the pharmacy vocabulary above (Pharmacy Confirmedand friends).- The prescription list is
prescription(singular) with richer per-line fields;prescriptionsis absent. exam_urlis a signed link to the generated PDF (this sender exists to deliver it).- It carries additional PHI:
patient_name,patient_dob,patient_gender,patient_home_address,patient_shipping_address, plus prescriber fields (rx_provider_name,rx_provider_npi,rx_provider_licenses) and order-set ids. Treat and store accordingly.
Unifying the two senders into one contract is tracked on Qualiphy's side; until then a receiver should tolerate both shapes: read prescriptions ?? prescription, compare exam_status case-insensitively, and never assume a field outside the core set is present.
Delivery guarantees
- Best effort, per sender. The completion sender tries 3 times (0.5 s, then 2 s between attempts) with a 10-second timeout per attempt and retries any non-2xx. The result-document sender tries 3 times (immediately, then after 2 s and 8 s) with a 15-second timeout and retries only network errors and 5xx; a 4xx from you is taken as a deliberate rejection and not retried. Neither replays a failed delivery later: reconcile with
patient_exam_status. - Signed. Every delivery to a registered destination (section 3) carries
X-Qualiphy-SignatureandX-Qualiphy-Timestamp; verify them before trusting the body (recipe below). During the rollout a URL you have not registered still receives deliveries, unsigned: until you register, authenticate by matchingpatient_exam_id(and youradditional_datareference) to exams you created, and keep the URL unguessable. After the rollout's final step, nothing is delivered unsigned (section 3); the only exemption is Qualiphy's own Zenoti integration endpoint. - At least two deliveries per decision, with no upper bound: the completion sender posts once; the result-document sender posts at PDF generation and again on every regeneration (a provider editing the note, a prescription change, an admin regenerating the record). The two senders' payloads differ as described above: make the handler idempotent on
(patient_exam_id, event)for the decision itself, but let a later delivery updateexam_url. The result-document copy is the one that reliably carries it - the completion sender includes one only if a PDF already exists when it fires - so a receiver that drops repeats outright may never see the PDF link. The receiver samples do exactly this. - Redirects are not followed. A
3xxfrom your endpoint is a failed delivery for every sender (it used to be followed). Register and send the final URL; if you move or upgrade http→https, re-register rather than redirecting. - Order is not guaranteed relative to your own polling.
- Event 3 is sent by the pharmacy tracking handlers, not the completion sender, with a single attempt and its own smaller body (above). Handlers that index
exam_statusunconditionally will fail on it; the receiver samples branch onevent.
Verifying deliveries
Two headers ride on every signed delivery. X-Qualiphy-Timestamp is the send time in Unix seconds. X-Qualiphy-Signature is v1= followed by hex HMAC-SHA256, keyed with the destination's signing_secret (returned once when you register the URL), over the string <timestamp>.<raw request body>. The body is signed as sent: hash the raw bytes you received, never a re-serialised object.
- Read both headers and the raw body. Reject if either header is missing or the timestamp is not an integer.
- Reject if
|now − timestamp|is more than 300 seconds (replay window). - Compute
"v1=" + hex(HMAC_SHA256(secret, timestamp + "." + rawBody))and compare to the header with a constant-time comparison. - Only then parse the JSON. Answer
401to anything that fails; the result-document sender does not retry a 4xx, and a failed signature is not a transient condition.
Rotate a secret with rotate_secret: true on webhook_destination_register. The rotation takes effect immediately: every delivery signed after the call uses the new secret, and the new value exists only in that response, so your receiver cannot hold it beforehand. Store and deploy it right away. Deliveries signed between the rotation and your deploy fail verification, the completion sender's retries span only about 2.5 seconds and the result-document sender does not retry a 4xx, so rotate at a quiet time (a missed completion body can be pulled with patient_exam_webhook_payload). Keeping the previous secret accepted for a few minutes after the deploy still helps, for a delivery already signed with it just before the rotation:
Building the receiver
- Accept
POSTJSON; respond200immediately and process asynchronously. Slow responses eat into the 10-second timeout and cause retries. - Key idempotency on
patient_exam_id+event. - Verify the signature (above) before parsing, then verify the exam is one you created.
- Log the delivery without the PHI fields, or encrypt at rest.
- On the sandbox host, register the tunnel URL you control with
/webhook_destination_register, export the returned secret asQUALIPHY_WEBHOOK_SECRETfor the receiver samples, then pointwebhook_urlat that URL; a harness decision Sandbox only produces a signedevent: 1delivery within seconds. (The samples answer401to an unsigned delivery, so an unregistered tunnel URL shows nothing.)
Receiver examples in Node and Python are in End-to-end examples.
3. Webhook destinations - register the URL first
A registered destination is the https:// URL configured on the clinic profile (the fallback when exam_invite carries no webhook_url) plus any URL added through the endpoints below. Registration is what issues the signing_secret the verification recipe needs, and signed deliveries go only to registered URLs. Today an unregistered webhook_url on an invite is still delivered to, unsigned; once the rollout below completes, deliveries go only to registered URLs, signed - including the later webhooks (result document, shipment) of exams created before the switch, which are then not sent until that URL is registered, rather than sent unsigned. The one exemption is Qualiphy's own Zenoti integration endpoint, which is Qualiphy-operated, holds no partner secret and is delivered unsigned by design. Same authentication as every partner endpoint: the clinic api_key in the JSON body.
| Endpoint | Body | Returns |
|---|---|---|
POST /webhook_destination_register | webhook_url (https, public host, ≤ 500 chars; plain http only for your clinic's own profile URL); optional rotate_secret: true | New URL: http_code 201, created: true and destination.signing_secret, shown once. Already registered: 200; the secret is included the first time it is ever handed out (an https:// clinic profile URL registered for you), otherwise only with rotate_secret. A removed URL: reactivated with a new secret, shown once (200, created: false, reactivated: true). Invalid URL: 422 invalid_webhook_url. More than 10 active URLs: 422 too_many_webhook_destinations. A concurrent registration of the same URL was undone: 409 registration_conflict, retry. Too many calls: 429 rate_limited. |
POST /webhook_destination_list | — | The clinic's configured URL plus every active destination: id, webhook_url, is_clinic_default, signing_secret_hint (last 4 characters), created_at. Full secrets are never listed. |
POST /webhook_destination_remove | destination_id | 200; 404 destination_not_found when your clinic has no active destination with that id (already removed, mistyped, or another clinic's); 409 destination_is_clinic_default if the URL is the clinic profile's - change that in the profile first. Registering a removed URL again reactivates it with a new signing_secret, shown once (200, created: false, reactivated: true); the old secret is never revived. |
What happens to webhook_url on exam_invite
A supplied webhook_url must match a registered destination or the clinic's configured URL. The check is rolling out in two steps so existing integrations are not cut off:
- Now: an unregistered
webhook_url(or a plainhttp://one) is logged and the invite is still created and delivered to it, unsigned. Register your URL to get signatures and to be ready for the next step. A URL that could never be a partner endpoint is refused already: not parseable, embedded credentials, a non-http scheme, or a private, loopback or cloud-metadata host answerhttp_code 422today. - Next: an unregistered
webhook_urlis refused with HTTP status andhttp_code 422(a real HTTP status, unlike the invite's other422s),error_code webhook_url_not_registeredand anerror_messagenaming the register endpoint (an unregistered plainhttp://URL that is not your profile URL getserror_code invalid_webhook_urlinstead: registration refuses it, so it must usehttps://). Your clinic's own profile URL - sent aswebhook_url, or used because the invite omits it - is accepted when it ishttps://(registered for you), unless its registration was removed (422 webhook_url_not_registered; register it again), or when you registered it yourself throughwebhook_destination_register, which is how a plainhttp://profile URL stays usable. A plainhttp://profile URL you have not registered refuses the invite withhttp_code 422,error_code invalid_webhook_url("must use https:// or be registered first"), even when the invite sends nowebhook_urlat all. If the destination registry cannot be read while the invite is checked, the invite answers HTTP status andhttp_code 503,error_code webhook_registry_unavailable: nothing was created, retry shortly. And the senders stop delivering unsigned altogether: an exam created earlier with an unregistered URL gets no further webhooks until that URL is registered. The switch date will be announced once the mismatch log is quiet.
Omitting webhook_url sends the exam's webhooks to the clinic's configured profile URL. If the clinic has no profile URL, nothing is delivered for that exam; poll patient_exam_status instead. An https:// profile URL is registered for you (at rollout, or on its first delivery), so it is accepted and its deliveries are signed even though you never called register, unless its registration was removed (422 webhook_url_not_registered once the rollout completes; register it again) - but you only learn that secret by registering the same URL: the first webhook_destination_register call for it includes destination.signing_secret, once (200, created: false when the row already exists; 201, created: true if nothing was delivered to it yet). Later calls omit it; send rotate_secret: true to issue a new one. A plain http:// profile URL is never registered for you: its deliveries go out unsigned, and once the rollout completes they are not sent at all and an invite that would use it is refused (422 invalid_webhook_url, above). Move it to https://, or register that same http:// URL yourself to receive a secret and signed deliveries.
Changing the clinic's webhook URL in the portal deregisters the old profile URL only if it was registered for you (at rollout or on its first delivery) and you never collected its secret; a URL you registered yourself, or whose secret you collected, stays registered. Exams already created with a deregistered old URL then get unsigned deliveries now, and none once the rollout completes, unless you register the old URL yourself. Remove a URL that stays registered with webhook_destination_remove if you no longer want it. The new profile URL follows the rules above: an https:// one is registered for you, and you collect its secret by registering it. Switching back to a profile URL that was registered for you before registers it again with a new secret (the old one is not revived); collect it the same way.
4. POST /patient_exam_webhook_payload - pull the completion body
Rebuilds the completion sender's Event 1/2 JSON from current exam data when a webhook was missed. It does not re-POST to your webhook_url, and it only answers for exams that already reached a terminal status. Same auth and ownership rules as status polling. exam_status uses the completion sender's vocabulary above, so compare case-insensitively - environments that predate ENG-101, including production today, still emit lower-case approved / rejected / na. Field reference: Exam Webhook; endpoint page: patient_exam_webhook_payload.
Errors: 401 bad key, 403 another clinic's exam, 404 unknown id, 400 the exam has not reached a terminal status yet - poll and retry, that one is not a bad id.
5. POST /patient_exam_status_set - the one status you may set
Only 6 (cancelled) is accepted; any other value answers 403. Clinical statuses are set by providers, never by partners.
Prefer exam_invite_cancel. Unlike cancel, this endpoint has no guard for an exam that is in an active session or already decided: it will overwrite an approved exam to cancelled. A server-side terminal guard is tracked; until it ships, call this only for exams you know are still pending, and use exam_invite_cancel everywhere else.
Sandbox decision harness
On production only a licensed provider can approve, reject or N/A an exam, and synchronous exams need a live video visit first, which makes end-to-end testing impossible for an integrator. The sandbox host exposes one extra endpoint that plays the provider's part.
The same path on production returns a plain HTML 404, indistinguishable from an unknown route, and cannot be enabled by a request parameter. If it ever returns that 404 on the sandbox host, tell Qualiphy support.
What it does
The decision runs through the same code path a provider's submission uses, as a dedicated sandbox provider whose licenses are seeded per state on the sandbox (52 active license rows as of 2026-09-08; a state that has not been seeded refuses the decision with the license error in the table below), so everything downstream fires exactly as in production:
- the exam's status changes (
approved/rejected/na), visible topatient_exam_status; - the completion webhook (event 1 or 2) is sent to the exam's
webhook_url; - pharmacy and EMR write-back integrations configured on the clinic run as they would for a real decision;
- the exam's provider note is stamped
SANDBOX DECISION (<outcome>) via /sandbox_exam_decision, so sandbox data is always recognizable.
It does not create a visit and does not need the patient to have opened the meeting link.
Request
| Field | Notes |
|---|---|
api_key | Your sandbox clinic key. The exam must belong to that clinic. |
patient_exam_id | From the exam_invite response. |
outcome | One of approved, rejected, na, release. No other fields are accepted; there is no free-text note (the note is fixed). |
| outcome | Applies to | Effect |
|---|---|---|
approved | any open exam | Provider approval. Rx exams then continue into the prescription flow as configured on the sandbox. |
rejected | any open exam | Provider declines. |
na | any open exam | Not applicable (the production equivalent of a no-show). |
release | asynchronous exams only, in prefill_only_patient_ready | Runs the real completeness check and, if every patient-facing question is answered, moves the exam into the provider queue (prefill_only_operator_ready). An incomplete set is refused with a message. A released exam can then be decided with one of the three outcomes above. |
Responses
| http_code | error_message | When |
|---|---|---|
400 | patient_exam_id is required. | Missing id. |
400 | outcome must be one of: approved, rejected, na, release | Bad outcome. |
401 | Unauthorized access. | Bad or inactive key. |
403 | Forbidden: patient exam does not belong to this clinic | Another clinic's exam. |
404 | Patient exam not found. | Unknown id (on the sandbox host). |
400 | outcome 'release' applies only to async (prefill-only) exams. | release on a synchronous exam. |
400 | Exam is 'pending', not 'prefill_only_patient_ready' — nothing to release. | release when the exam is not waiting on the patient. |
400 | Async exam is not operator-ready yet — use outcome 'release' first (requires complete answers). | approved / rejected / na on an asynchronous exam that has not been released. |
400 | Patient answers are incomplete — submit the remaining answers via /exam_submit_answers, then release. | release on an asynchronous exam whose questionnaire still has unanswered patient-facing questions. |
400 | Release did not land — exam is '…' (a concurrent status change won). | Something else changed the exam at the same moment; read the status and retry if appropriate. |
400 | Decision refused as unauthorized — the sandbox operator likely lacks an unexpired license for this exam's state (state N). Seed operator_licenses for it. | The sandbox provider has no valid license row for the patient's state. A provisioning gap on Qualiphy's side: report it with the state. |
400 | Patient exam has no meeting — cannot run the decision path. | The exam was created without a meeting; recreate via exam_invite. |
400 | Decision did not land — exam is '…'. See server logs. | The decision path ran but the status did not change; report the exam id. |
400 | Sandbox decision failed — see server logs. | Unexpected server error inside the decision path; report the exam id. |
400 | Sandbox is enabled but … is not configured in this environment. | The sandbox provider is not configured on Qualiphy's side (the message names the missing setting). Report it. |
400 | This exam has already been submitted and can no longer be updated. | Deciding an exam that already has a terminal status. Decisions are one-shot, like a provider's. |
transport 404, HTML body | The harness is off, or you are calling production. |
A typical test loop
exam_invite: notepatient_exam_idandmeeting_uuid.- Optional:
exam_questions+exam_submit_answersto pre-fill. - Asynchronous exam:
sandbox_exam_decisionwithrelease, which confirms your pre-fill is complete. sandbox_exam_decisionwithapproved(orrejected/na).- Your webhook receives event 1 (or 2 for Rx exams) within seconds;
patient_exam_statusreports the new status. - Repeat with a fresh invite: an exam cannot be decided twice.
Every step is runnable code in End-to-end examples.
End-to-end examples
Runnable walkthroughs of the whole loop against the sandbox host - catalog, invite, questions, answers, decision, status - plus two webhook receivers. Set QUALIPHY_API and QUALIPHY_KEY first. To receive the webhooks, also register the receiver's public URL and export it as QUALIPHY_WEBHOOK_URL (the walkthroughs send it as webhook_url; left unset, the invite omits it and deliveries go to the clinic profile URL) and its signing_secret as QUALIPHY_WEBHOOK_SECRET (the receivers answer 401 to anything not signed with it).
Exam static id 106 is a global synchronous good-faith template on the sandbox host (not clinic-specific), so it normally appears in a sandbox clinic's exam_list; if it does not, swap in one that does from exam_list. Remember the envelope: HTTP is 200, the result is http_code in the body (absent on exam_list success, so the helpers treat a missing field as success). Step 4 in every sample calls the sandbox decision harness Sandbox only; on production, stop after step 3 and wait for the webhook, poll patient_exam_status, or retrieve the completion body with POST /patient_exam_webhook_payload.
The whole loop
Webhook receivers
Respond 200 fast, then process. Idempotency key: patient_exam_id + event. Both receivers branch on event: events 1 and 2 carry the decision body, event 3 (prescription shipped) carries a smaller tracking body with no exam_status. They also tolerate the two decision-body shapes described in Status & webhooks: exam_status is compared case-insensitively (Approved and the pre-ENG-101 approved both count), and the prescription list is read as prescriptions ?? prescription.
For local testing against the sandbox host, expose the receiver with a tunnel (for example ngrok http 8080), register that public URL with /webhook_destination_register (above), and start the receiver with QUALIPHY_WEBHOOK_SECRET set to the signing_secret it returned. Then run a walkthrough with QUALIPHY_WEBHOOK_URL set to the same URL; the harness decision Sandbox only produces a signed event: 1 delivery within seconds. An unregistered URL gets unsigned deliveries (refused outright after the rollout's final step), which these receivers answer with 401. A new tunnel URL is a new destination: register it again and use its new secret.
API Reference
Quick reference for every endpoint. The most-used parameters are documented here inline. For the complete parameter schema (every optional field, every edge case), each endpoint links to its canonical reference page.
All /exam_invite samples below use Test mode by default (state and tele_state both "TE", name Test Approve), so Try now in the right rail pages no provider and contacts no patient. Test mode does not stop the charge: only exam 5359 is no-charge, which the Good Faith Exam samples use. The Rx recipes use real exams and are billed on approval. Testing has the detail.
Returns every exam configured on your clinic. Use this to discover the id values you'll pass to /exam_invite. Each exam record tells you whether it's a GFE or an Rx (rx_type), what attachments the patient must upload (attachments), and any preset price.
Parameters
api_keystringRequired- Your location's API key.
Response fields
clinic_idinteger- The Qualiphy clinic ID associated with the API key.
examsarray- Every exam configured on this clinic. See fields below for each item.
exams[].idinteger- Exam ID. Pass this to
/exam_invitein theexamsarray. exams[].titlestring- Human-readable exam name as configured in the Qualiphy portal.
exams[].rx_typeinteger1= non-Rx (GFE).2= Rx, including QualiphyRx Packages, Urgent Care, and Choose-Your-Own-Pharmacy flows. There is no separate "Urgent" type — urgent-care exams arerx_type: 2and are distinguished only by theirtitle.exams[].pricestring | null- Preset price as a decimal string (e.g.
"27.99") when one is configured for the exam.nullfor exams that don't carry a fixed Qualiphy-side price. exams[].attachments_requiredinteger- Number of files the patient must upload before the consultation. Always at least
1. exams[].attachmentsstring[]- Names of the additional attachments required beyond the default ID upload — e.g.
["Lab"],["ID", "Lab"], or["Picture of hair loss area"]. Empty array means only the standard ID is required.
Sample response
The core endpoint. Creates a patient exam invite, returns a meeting URL, and (by default) emails and texts the patient. Most integrations only call this one endpoint.
Four possible scenarios
Qualiphy supports four distinct scenarios through the /exam_invite endpoint, each achieved by passing a specific combination of parameters. While the endpoint remains the same, the parameter sets determine the behavior, as detailed below:
- Good Faith Exam & Orders
- GFEs for in-clinic procedures or medication clearance only, offered at a flat fee of $27.99 (does not include a prescription). Requires exam selection and patient identity. No pharmacy fields are needed since no prescription is issued.
- QualiphyRx Packages
- Prescriptions fulfilled through Qualiphy's network of partner pharmacies. This is an all-inclusive option covering the initial consultation, prescription, medication, and shipping (prices vary depending on the medication chosen). After sending the exam invite and completing the consultation, Qualiphy handles prescription routing and provides tracking updates via webhook events. Pickup is not available - shipping only. Comes in two request shapes, one Rx exam per meeting or up to three. When a meeting carries more than one, only the most expensive consultation is charged in full. The others are charged at half.
- Urgent Care Visit
- Prescriptions sent to a retail pharmacy for urgent medications, available for pickup or delivery. Priced at $49.99, this includes both the consultation and prescription. Once the prescription is sent, the pharmacy manages fulfillment and notifications - no tracking updates are provided via webhook from Qualiphy.
- Choose Your Own Pharmacy
- Prescriptions sent to a retail pharmacy selected by you or the patient. Functions similarly to the Urgent Care Visit flow, but supports a broader range of non-emergency medications.
Each tab below is a complete request: its payload, and every field it accepts. Pick yours and read only that tab - QualiphyRx Packages has two, one per request shape. Your exam must be configured for the routing you ask for, so check it in /exam_list first.
Required parameters
api_keystringRequired- Your location's API key.
examsarrayRequired- The exams to run, as an array of IDs from
/exam_list. Use an exam whoserx_typeis1- see Exam types. You can stack any number of non-Rx exams in one meeting. To set a per-exam option, send objects instead:[{ "exam_id": 106, "skip_intake": true }].skip_intake: trueskips Qualiphy's questionnaire for that exam. See Skipping the questionnaire. The Rx scenarios re-word this; see their tabs. first_namelast_namestringRequired- Patient name as it should appear on the consultation record.
emailstringRequired- Patient email. Used for invite delivery and as the patient identifier.
dobstringRequired- Date of birth as
YYYY-MM-DD. Example:1990-06-30. phone_numberstringRequired- Patient phone. Two formats accepted:
+15552223232or1234567890. tele_statestringRequired- Two-letter state abbreviation of the patient (not your clinic). Determines provider matching.
Common optional parameters
webhook_urlstringOptional- Where to POST the result. Highly recommended - without it, you have no way to know when the exam completes. Applies to this exam only. If your clinic also has a webhook URL saved in the portal, the value you send here wins - see Where your webhook URL comes from. Register the URL first (
/webhook_destination_register) to receive signed deliveries. A value that could never be a partner endpoint - not parseable, embedded credentials, a non-http scheme, a private, loopback or cloud-metadata host - is refused now withhttp_code 422,error_code invalid_webhook_url(a real HTTP422status, unlike the validation errors below). A URL you have not registered is logged and still delivered to today. Once the rollout completes (registration enforced), an unregistered URL is refused with422 webhook_url_not_registered(an unregistered plainhttp://one that is not your profile URL with422 invalid_webhook_url: it must usehttps://). Also once the rollout completes, your clinic's profile URL - sent here, or used because you omit this field - is accepted only if it ishttps://or you registered it, and not if its registration was removed (422 webhook_url_not_registered; register it again); a plainhttp://profile URL you have not registered then refuses the invite with422 invalid_webhook_url(must use https:// or be registered first); and if the registry cannot be checked, the invite answers HTTP503 webhook_registry_unavailable: nothing was created, retry shortly. Until then, the profile URL is delivered to as today. See Status & webhooks, section 3. additional_datastringOptional- Stringified JSON. Returned unchanged in the webhook payload. Use it to round-trip your internal IDs (order ID, subscription ID, etc.). One reserved key: if the JSON has a
providerkey naming an EMR handled by Qualiphy's integration hub (for examplezenoti), the partner webhook for that exam is suppressed and the result is delivered through that integration instead - so do not useproviderfor your own data. visit_typestringOptional"async"for an asynchronous review,"video"for a video visit. Leave it off and the invite behaves exactly as it does today. Async that the rules don't allow becomes a video visit, never an error; the response says which visit type the invite got and why. Any other value returns HTTP 200 withhttp_code400and"Invalid visit type.", and nothing is created. See Asking for an async review below this table.provider_notestringOptional- A note for the provider, carried with the consultation. This one applies to the whole invitation and is stored on the meeting. Max 500 characters - longer returns
422 NOTE_TOO_LONG. Accepted with both shapes ofexams[]; the object form adds a second, per-exam note alongside it. See the QualiphyRx Packages (Multi-Rx) tab below. redirect_approveredirect_rejectredirect_naredirect_missedstringOptional- URLs to send the patient to after their meeting completes, segmented by outcome.
redirect_missedfires after a 3-minute provider-availability timeout. genderintegerOptional1=Male,2=Female,3=Prefer not to say. Integer, not a string.dmv_license_numberstringOptional- Patient's DMV license number for ID verification.
address_line_1address_line_2citystatezip_codestringOptional- Patient's home address. Note
statehere is the address field; provider matching usestele_state. Test mode needs both set toTE. shipping_address_line_1shipping_address_line_2shipping_cityshipping_stateshipping_zip_codestringOptional- No effect on this flow. Nothing is prescribed, so there is nothing to ship.
rx_type is 1 - see Exam types. Runnable version: GFE for an Aesthetic Treatment.Response
One entry in patient_exams per exam you sent. patient_exam_id is the handle the rest of the API takes - resend, cancel and status all key off it.
Two request shapes. Single Rx keeps the pharmacy and medication at the request level and carries one Rx exam. Multi-Rx moves those choices onto each exam entry, and is the only way to send more than one Rx exam in a meeting: up to 3, each with its own medications, its own pharmacy and its own note. Both are fully supported, neither is deprecated, and you pick one per request.
Runnable version of the Single Rx payload: Partner Pharmacy Medication Shipping. In the Multi-Rx payload 73 and 88 are placeholders - substitute two Rx exams from your own /exam_list, and note that Test mode does not make an exam free: only exam 5359 is no-charge.
Required parameters
api_keystringRequired- Your location's API key.
examsarrayRequired- The exams to run in this meeting. Two shapes are accepted and they cannot be mixed - an array holding both returns
422 MIXED_EXAMS_FORM.Single RxAn array of exam IDs from/exam_list. Stack non-Rx exams freely; this shape carries one Rx exam, whose pharmacy and medication are the request-level fields below.Multi-RxAn array of objects. Each entry takes the fields below, includingskip_intake, which any partner can set. A partner pharmacy also uses this shape for up to 3 Rx exams, each with its own order sets and its own note.exam_idis the same static ID the other shape takes.Fieldsexam_idintegerRequired- The exam's static ID, exactly the value the array-of-IDs form takes.
order_set_idsarrayOptional- Up to 3 order set IDs for this exam, from
/partner_pharmacy_treatment_packages. Rx exams only - supplying them on a non-Rx exam returns422 ORDER_SETS_ON_NON_RX. Omit to leave the choice to the provider. provider_notestringOptional- A note stored against this exam, max 500 characters. Separate from the invite-level
provider_note: they are different fields on different records, neither overrides the other, and both may be sent in the same request. API only - the Qualiphy portal has no field for it. skip_intakebooleanOptionaltruewhen you already collected the patient's intake and do not want them offered Qualiphy's pre-fill questionnaire for this exam: after consent they go straight to the waiting room. Defaultfalse. It must be a real boolean:"true"or1returns422 INVALID_SKIP_INTAKEand nothing is created, including on an asynchronous exam. That response is HTTP 200 withhttp_code422 and anerrors[]entry carrying this exam'sindexandexam_id. Object form only (the list-of-IDs shape cannot set it, and askip_intakekey at the top of the request is ignored), set per exam. A booleantruehas no effect on an asynchronous exam, where the questionnaire is the exam. Answers you submitted withexam_submit_answersstill reach the provider; see Questions & answers.
first_namelast_namestringRequired- Patient name as it should appear on the consultation record.
emailstringRequired- Patient email. Used for invite delivery and as the patient identifier.
dobstringRequired- Date of birth as
YYYY-MM-DD. Example:1990-06-30. phone_numberstringRequired- Patient phone. Two formats accepted:
+15552223232or1234567890. tele_statestringRequired- Two-letter state abbreviation of the patient (not your clinic). Determines provider matching.
Common optional parameters
webhook_urlstringOptional- Where to POST the result. Highly recommended - without it, you have no way to know when the exam completes. Applies to this exam only. If your clinic also has a webhook URL saved in the portal, the value you send here wins - see Where your webhook URL comes from. Register the URL first (
/webhook_destination_register) to receive signed deliveries. A value that could never be a partner endpoint - not parseable, embedded credentials, a non-http scheme, a private, loopback or cloud-metadata host - is refused now withhttp_code 422,error_code invalid_webhook_url(a real HTTP422status, unlike the validation errors below). A URL you have not registered is logged and still delivered to today. Once the rollout completes (registration enforced), an unregistered URL is refused with422 webhook_url_not_registered(an unregistered plainhttp://one that is not your profile URL with422 invalid_webhook_url: it must usehttps://). Also once the rollout completes, your clinic's profile URL - sent here, or used because you omit this field - is accepted only if it ishttps://or you registered it, and not if its registration was removed (422 webhook_url_not_registered; register it again); a plainhttp://profile URL you have not registered then refuses the invite with422 invalid_webhook_url(must use https:// or be registered first); and if the registry cannot be checked, the invite answers HTTP503 webhook_registry_unavailable: nothing was created, retry shortly. Until then, the profile URL is delivered to as today. See Status & webhooks, section 3. additional_datastringOptional- Stringified JSON. Returned unchanged in the webhook payload. Use it to round-trip your internal IDs (order ID, subscription ID, etc.). One reserved key: if the JSON has a
providerkey naming an EMR handled by Qualiphy's integration hub (for examplezenoti), the partner webhook for that exam is suppressed and the result is delivered through that integration instead - so do not useproviderfor your own data. visit_typestringOptional"async"for an asynchronous review,"video"for a video visit. Leave it off and the invite behaves exactly as it does today. Async that the rules don't allow becomes a video visit, never an error; the response says which visit type the invite got and why. Any other value returns HTTP 200 withhttp_code400and"Invalid visit type.", and nothing is created. See Asking for an async review below this table.provider_notestringOptional- A note for the provider, carried with the consultation. This one applies to the whole invitation and is stored on the meeting. Max 500 characters - longer returns
422 NOTE_TOO_LONG. Accepted with both shapes ofexams[]; the object form adds a second, per-exam note alongside it. See the QualiphyRx Packages (Multi-Rx) tab below. redirect_approveredirect_rejectredirect_naredirect_missedstringOptional- URLs to send the patient to after their meeting completes, segmented by outcome.
redirect_missedfires after a 3-minute provider-availability timeout. genderintegerOptional1=Male,2=Female,3=Prefer not to say. Integer, not a string.dmv_license_numberstringOptional- Patient's DMV license number for ID verification.
address_line_1address_line_2citystatezip_codestringOptional- Patient's home address. Note
statehere is the address field; provider matching usestele_state. Test mode needs both set toTE. shipping_address_line_1shipping_address_line_2shipping_cityshipping_stateshipping_zip_codestringOptional- Where to ship Rx treatments. Different from home address when shipping to clinic, P.O. box, or alternate location.
Pharmacy routing
These five sit at the request level. Single Rx sends them; Multi-Rx must not, because the server derives the same information from the order sets on each entry.
pharmacy_idintegerOptional- The partner pharmacy to route to. Get the ID from
/partner_pharmacy_list.Single RxSend it at the request level. It applies to the Rx exam in the invite.Multi-RxMust not be sent. The server derives it from the order sets on each entry, and sending it returns422 MIXED_REQUEST_SHAPE. order_set_idintegerOptional- Preselect a specific drug + dosage package. Get the ID from
/partner_pharmacy_treatment_packages.Single RxSend it at the request level, or omit it to leave the medication to the provider.Multi-RxMust not be sent. The server derives it from the order sets on each entry, and sending it returns422 MIXED_REQUEST_SHAPE. order_set_idsarrayOptional- Several treatment packages at once, as an array of order set IDs. Max 3 - more returns
422 MED_LIMIT_EXCEEDED.Single RxAt the request level, applying to the Rx exam in the invite.Multi-RxMust not be sent at the top level. It goes inside eachexams[]entry instead, as shown underexamsabove. A top-level array returns422 MIXED_REQUEST_SHAPE. exam_pos_idintegerOptional- Legacy fallback for
order_set_id, still accepted for older integrations. It identifies an exam/pharmacy/order-set pairing rather than the order set itself, so its value differs fromorder_set_idon the same package - do not pass one where the other is expected. Preferorder_set_idfor new work.Single RxAccepted at the request level.Multi-RxMust not be sent. The server derives it from the order sets on each entry, and sending it returns422 MIXED_REQUEST_SHAPE. provider_pos_selectionintegerOptional- How much is left to the provider.
1=Provider does not choose.2=Provider picks order set only.3=Provider picks both pharmacy and order set.Single RxSet it yourself, or let the server default it from the fields you sent.Multi-RxMust not be sent. The server sets it per entry:3when an entry has no order sets,1when it has them. Sending it returns422 MIXED_REQUEST_SHAPE.
"", 0, "0", null and an absent key are all treated as absent, as is an empty order_set_ids array. This is deliberate: saved requests and partner templates routinely carry these keys with empty defaults, and those payloads keep working. Only a real value trips the rule.custom_pharmacy: 2 with 401 "Only partner pharmacies available for this exam!". With Multi-Rx they are neither rejected nor honoured: the server's custom-pharmacy path - the availability check, the required-field validation, and the record that stores your retail destination - runs only for a list of IDs, so custom_pharmacy, ncpdpid and the pharmacy_* fields pass without an error and the retail pharmacy is never recorded. For a retail destination use Urgent Care Visit or Choose Your Own Pharmacy instead.What the server derives
What each entry resolves to:
- Non-Rx exam
- No pharmacy, and nothing for the provider to choose. Supplying
order_set_idshere is an error. - Rx exam, no order_set_ids
- No pharmacy is set and
provider_pos_selectionbecomes3- the provider picks both the pharmacy and the order set during the consultation. - Rx exam with order_set_ids
- The pharmacy is resolved from those order sets, and
provider_pos_selectionbecomes1- nothing left for the provider to choose.
To resolve the pharmacy the server looks up which pharmacies carry each order set for that exam, in the patient's state, then intersects those lists across the entry. Exactly one pharmacy has to survive.
422 MED_NOT_IN_PACKAGE and names the order set; order sets split across pharmacies return 422 MED_PHARMACY_MISMATCH; an entry resolving to none, or to more than one, returns 422 PHARMACY_UNRESOLVED.Limits
- 3 Rx exams per invitation
- Counted over Rx exams only - non-Rx exams are unlimited. A fourth returns
422 PACKAGE_LIMIT_EXCEEDED, with one error naming each extra entry. This is the object form's limit: a plain list of IDs carries at most one Rx exam, because its single top-level pharmacy and order-set selection applies to the whole request. - 3 order sets per exam
- Per entry in the object form, or across the top-level
order_set_idswith a list of IDs. Over that returns422 MED_LIMIT_EXCEEDED. - 500 characters per provider_note
- The invite-level note and each exam-level note are checked separately, and each returns its own
422 NOTE_TOO_LONG.
Response
The two shapes answer with different keys - patient_exams for Single Rx, exams for Multi-Rx. Existing integrations are unaffected, but anything migrating to multi-Rx has to read the new key. In the Multi-Rx body, index is the entry's position in the exams[] you sent, rx_type is 1 for non-Rx and 2 for Rx, and pharmacy_id is null whenever none was resolved. That shape does not carry exam_title.
Required parameters
api_keystringRequired- Your location's API key.
examsarrayRequired- The exams to run, as an array of IDs from
/exam_list. Stack non-Rx exams freely; this flow carries one Rx exam per meeting. To setskip_intake, send the object form (see Skipping the questionnaire). The custom-pharmacy fields on this tab can stay with that form. Only a real top-levelpharmacy_id,order_set_id,order_set_ids,exam_pos_id, orprovider_pos_selectionreturns422 MIXED_REQUEST_SHAPE. first_namelast_namestringRequired- Patient name as it should appear on the consultation record.
emailstringRequired- Patient email. Used for invite delivery and as the patient identifier.
dobstringRequired- Date of birth as
YYYY-MM-DD. Example:1990-06-30. phone_numberstringRequired- Patient phone. Two formats accepted:
+15552223232or1234567890. tele_statestringRequired- Two-letter state abbreviation of the patient (not your clinic). Determines provider matching.
Common optional parameters
webhook_urlstringOptional- Where to POST the result. Highly recommended - without it, you have no way to know when the exam completes. Applies to this exam only. If your clinic also has a webhook URL saved in the portal, the value you send here wins - see Where your webhook URL comes from. Register the URL first (
/webhook_destination_register) to receive signed deliveries. A value that could never be a partner endpoint - not parseable, embedded credentials, a non-http scheme, a private, loopback or cloud-metadata host - is refused now withhttp_code 422,error_code invalid_webhook_url(a real HTTP422status, unlike the validation errors below). A URL you have not registered is logged and still delivered to today. Once the rollout completes (registration enforced), an unregistered URL is refused with422 webhook_url_not_registered(an unregistered plainhttp://one that is not your profile URL with422 invalid_webhook_url: it must usehttps://). Also once the rollout completes, your clinic's profile URL - sent here, or used because you omit this field - is accepted only if it ishttps://or you registered it, and not if its registration was removed (422 webhook_url_not_registered; register it again); a plainhttp://profile URL you have not registered then refuses the invite with422 invalid_webhook_url(must use https:// or be registered first); and if the registry cannot be checked, the invite answers HTTP503 webhook_registry_unavailable: nothing was created, retry shortly. Until then, the profile URL is delivered to as today. See Status & webhooks, section 3. additional_datastringOptional- Stringified JSON. Returned unchanged in the webhook payload. Use it to round-trip your internal IDs (order ID, subscription ID, etc.). One reserved key: if the JSON has a
providerkey naming an EMR handled by Qualiphy's integration hub (for examplezenoti), the partner webhook for that exam is suppressed and the result is delivered through that integration instead - so do not useproviderfor your own data. visit_typestringOptional"async"for an asynchronous review,"video"for a video visit. Leave it off and the invite behaves exactly as it does today. Async that the rules don't allow becomes a video visit, never an error; the response says which visit type the invite got and why. Any other value returns HTTP 200 withhttp_code400and"Invalid visit type.", and nothing is created. See Asking for an async review below this table.provider_notestringOptional- A note for the provider, carried with the consultation. This one applies to the whole invitation and is stored on the meeting. Max 500 characters - longer returns
422 NOTE_TOO_LONG. Accepted with both shapes ofexams[]; the object form adds a second, per-exam note alongside it. See the QualiphyRx Packages (Multi-Rx) tab below. redirect_approveredirect_rejectredirect_naredirect_missedstringOptional- URLs to send the patient to after their meeting completes, segmented by outcome.
redirect_missedfires after a 3-minute provider-availability timeout. genderintegerOptional1=Male,2=Female,3=Prefer not to say. Integer, not a string.dmv_license_numberstringOptional- Patient's DMV license number for ID verification.
address_line_1address_line_2citystatezip_codestringOptional- Patient's home address. Note
statehere is the address field; provider matching usestele_state. Test mode needs both set toTE. shipping_address_line_1shipping_address_line_2shipping_cityshipping_stateshipping_zip_codestringOptional- Where the pharmacy delivers, when
custom_pharmacy_delivery_methodis2. Not used for in-pharmacy pickup.
Pharmacy routing
custom_pharmacy mapping. 2 means custom (retail) pharmacy and 1 means partner pharmacy. It carries the platform's internal 1=false / 2=true convention rather than reading as an ordered list, which makes it easy to invert. The flag must also match how your exam is configured: an exam offering only custom pharmacies rejects 1 with 401 "Only custom pharmacies available for this exam!", and an exam offering only partner pharmacies rejects 2 with 401 "Only partner pharmacies available for this exam!". Where only one kind is available the server selects it for you, so the flag decides nothing unless the exam offers both.custom_pharmacyintegerOptional2=Custom Pharmacy (retail),1=Partner Pharmacy. Inverted from how it reads - see the note above.ncpdpidstringOptional- The retail pharmacy's NCPDPID. Get it from
/custom_pharmacy_search. Saved on the exam record as the e-Rx (SureScripts) destination. It's a pass-through - no registration or allowlisting of the pharmacy is needed on Qualiphy's side. pharmacy_namepharmacy_address_line_1pharmacy_address_line_2pharmacy_citypharmacy_statepharmacy_zip_codepharmacy_phonepharmacy_typestringOptional- The retail pharmacy's details, sent alongside
custom_pharmacy: 2. custom_pharmacy_delivery_methodintegerOptional1=Patient picks up in pharmacy.2=Ship to patient or clinic.custom_pharmacy_patient_billingintegerOptional1=Clinic is billed by the pharmacy.2=Patient is billed.custom_pharmacy_clinic_billingstringOptional- Clinic identifier for pharmacy billing. Required when
custom_pharmacy_patient_billing: 1.
By default the patient still gets a pharmacy step in the meeting, and their pick overrides the destination you sent. To preselect it and remove that step, add custom_pharmacy_patient_choice: 1 and skip_pharmacy_confirmation: 2 - both documented on the Choose Your Own Pharmacy tab. Runnable version: Urgent Care Visit & Custom Pharmacies.
Response
One entry in patient_exams per exam you sent. patient_exam_id is the handle the rest of the API takes - resend, cancel and status all key off it.
Required parameters
api_keystringRequired- Your location's API key.
examsarrayRequired- The exams to run, as an array of IDs from
/exam_list. Stack non-Rx exams freely; this flow carries one Rx exam per meeting. To setskip_intake, send the object form (see Skipping the questionnaire).pharmacy_idandorder_set_idmust not stay at the top level: put the order set on the entry asorder_set_ids: [id]and droppharmacy_id, because the server derives the pharmacy. Sending either at the top level returns422 MIXED_REQUEST_SHAPEand nothing is created. Thencpdpid, pharmacy address,custom_pharmacy_patient_choice, andskip_pharmacy_confirmationon this tab can stay. first_namelast_namestringRequired- Patient name as it should appear on the consultation record.
emailstringRequired- Patient email. Used for invite delivery and as the patient identifier.
dobstringRequired- Date of birth as
YYYY-MM-DD. Example:1990-06-30. phone_numberstringRequired- Patient phone. Two formats accepted:
+15552223232or1234567890. tele_statestringRequired- Two-letter state abbreviation of the patient (not your clinic). Determines provider matching.
Common optional parameters
webhook_urlstringOptional- Where to POST the result. Highly recommended - without it, you have no way to know when the exam completes. Applies to this exam only. If your clinic also has a webhook URL saved in the portal, the value you send here wins - see Where your webhook URL comes from. Register the URL first (
/webhook_destination_register) to receive signed deliveries. A value that could never be a partner endpoint - not parseable, embedded credentials, a non-http scheme, a private, loopback or cloud-metadata host - is refused now withhttp_code 422,error_code invalid_webhook_url(a real HTTP422status, unlike the validation errors below). A URL you have not registered is logged and still delivered to today. Once the rollout completes (registration enforced), an unregistered URL is refused with422 webhook_url_not_registered(an unregistered plainhttp://one that is not your profile URL with422 invalid_webhook_url: it must usehttps://). Also once the rollout completes, your clinic's profile URL - sent here, or used because you omit this field - is accepted only if it ishttps://or you registered it, and not if its registration was removed (422 webhook_url_not_registered; register it again); a plainhttp://profile URL you have not registered then refuses the invite with422 invalid_webhook_url(must use https:// or be registered first); and if the registry cannot be checked, the invite answers HTTP503 webhook_registry_unavailable: nothing was created, retry shortly. Until then, the profile URL is delivered to as today. See Status & webhooks, section 3. additional_datastringOptional- Stringified JSON. Returned unchanged in the webhook payload. Use it to round-trip your internal IDs (order ID, subscription ID, etc.). One reserved key: if the JSON has a
providerkey naming an EMR handled by Qualiphy's integration hub (for examplezenoti), the partner webhook for that exam is suppressed and the result is delivered through that integration instead - so do not useproviderfor your own data. visit_typestringOptional"async"for an asynchronous review,"video"for a video visit. Leave it off and the invite behaves exactly as it does today. Async that the rules don't allow becomes a video visit, never an error; the response says which visit type the invite got and why. Any other value returns HTTP 200 withhttp_code400and"Invalid visit type.", and nothing is created. See Asking for an async review below this table.provider_notestringOptional- A note for the provider, carried with the consultation. This one applies to the whole invitation and is stored on the meeting. Max 500 characters - longer returns
422 NOTE_TOO_LONG. Accepted with both shapes ofexams[]; the object form adds a second, per-exam note alongside it. See the QualiphyRx Packages (Multi-Rx) tab below. redirect_approveredirect_rejectredirect_naredirect_missedstringOptional- URLs to send the patient to after their meeting completes, segmented by outcome.
redirect_missedfires after a 3-minute provider-availability timeout. genderintegerOptional1=Male,2=Female,3=Prefer not to say. Integer, not a string.dmv_license_numberstringOptional- Patient's DMV license number for ID verification.
address_line_1address_line_2citystatezip_codestringOptional- Patient's home address. Note
statehere is the address field; provider matching usestele_state. Test mode needs both set toTE. shipping_address_line_1shipping_address_line_2shipping_cityshipping_stateshipping_zip_codestringOptional- Where the pharmacy delivers, when
custom_pharmacy_delivery_methodis2. Not used for in-pharmacy pickup.
Pharmacy routing
custom_pharmacy flag. You supply the destination outright and turn off the patient's pharmacy step, so there is nothing for the flag to decide. Where the exam also uses partner order sets, ncpdpid rides alongside pharmacy_id + order_set_id - see the QualiphyRx Packages (Single Rx) tab for those two.ncpdpidstringOptional- The pharmacy you are routing to, from
/custom_pharmacy_search. This is the destination the prescription is sent to. pharmacy_namepharmacy_address_line_1pharmacy_address_line_2pharmacy_citypharmacy_statepharmacy_zip_codepharmacy_phonepharmacy_typestringOptional- The pharmacy's details. The full address must be present for
skip_pharmacy_confirmationto take effect. custom_pharmacy_patient_choiceintegerOptional1=Custom pharmacy is preselected.2=Patient chooses their own custom pharmacy at the meeting. If omitted, this defaults to2even when you supplied anncpdpid- the patient still gets a pharmacy step in the meeting, and their pick overrides your preset destination. For fully automatic routing with no patient step, always send1(requiresncpdpid).skip_pharmacy_confirmationintegerOptional1=Show pharmacy confirmation screen.2=Skip it. Only skips when all pharmacy fields are present in the payload.pharmacy_idorder_set_idintegerOptional- Where the exam is also configured with partner order sets these ride alongside the retail destination, which is why the payload above carries them. Get them from
/partner_pharmacy_listand/partner_pharmacy_treatment_packages. Omit both on an exam that only routes to retail. custom_pharmacy_delivery_methodintegerOptional1=Patient picks up in pharmacy.2=Ship to patient or clinic. This is the field the shipping address above depends on.custom_pharmacy_patient_billingintegerOptional1=Clinic is billed by the pharmacy.2=Patient is billed.custom_pharmacy_clinic_billingstringOptional- Clinic identifier for pharmacy billing. Required when
custom_pharmacy_patient_billing: 1.
Runnable version: the preselect variant in Urgent Care Visit & Custom Pharmacies.
Response
One entry in patient_exams per exam you sent. patient_exam_id is the handle the rest of the API takes - resend, cancel and status all key off it.
These are the same payloads the Recipes walk through, declared once and read in both places. Try now in the right rail always fires the basic invite sample, not the tab you are reading - to run one of these as-is, open its recipe and use the payload there.
Asking for an async review (visit_type)
One exam can run as an asynchronous review (the patient answers the questionnaire and a provider reviews it, with no live visit) or as a video visit. Send the exam you already use, with a top-level visit_type. You no longer need a separate "ASYNC" copy of the exam.
- No
visit_type, ornull: exactly today's invite. The response carries none of the fields below. "async": an async review where the rules allow it: your clinic's async rollout, the exam's own rules, and the patient's state (tele_state, or the clinic's state when you don't send one).- Where the rules don't allow async, the invite is still created, as a video visit. It is never refused for this. The response gives the visit type the invite got and why, so you can tell the patient what to expect.
"video": a video visit, even where async would be allowed.- You set the visit type; the patient can't switch it.
- One visit type per invite. If one exam on the invite has to be a video visit, the other exams are video visits too, and their
reason_codeisother_exam_video. Your existing "ASYNC" exams are the exception: they stay async (next point). - Price: an async review is charged at the exam's own price, less any async discount Qualiphy has set up for your account on that exam. A video visit is the exam's usual price. The discount is fixed when the invite is sent.
- Your existing "ASYNC" exams keep working and run as async whatever
visit_typesays (reason_codenot_in_conversion). - Any other value (
"live","ASYNC",2,true) returns HTTP 200 with{ "http_code": 400, "error_message": "Invalid visit type." }, and nothing is created.
The sample uses Test mode and the no-charge exam 5359, so it is safe to send as-is. TE isn't a state Compliance sets, so a test invite that asks for async is always a video visit: not_reviewed, unless your clinic's switch (clinic_not_enabled), the exam's own rule or a clinical rule (first_visit_video) answers first. To see an async review, send a real patient state where the rules allow it.
visit describes the invite as a whole. Each entry in patient_exams (or exams, for the object form) also carries its own visit_type and reason_code. Both are returned only when you sent visit_type. Keep them from this response: patient_exam_status and the webhooks don't carry them yet.
visit.requestedstring- The
visit_typeyou sent. visit.visit_typestring"async"or"video": what the invite got.visit.reason_codestring- Why, as a stable code (table below). Branch on this, not on
reason. visit.reasonstring- The same reason in words, for your logs or your staff. Its wording can change.
api_pick- You asked for this visit type and the rules allow it.
clinic_not_enabled- Async review isn't switched on for your clinic yet, so the invite is a video visit.
exam_not_ready- This exam isn't approved for async review yet.
exam_video- This exam only runs as a video visit.
controlled_substance- This exam prescribes a controlled substance, so it runs as a video visit.
urgent_care- Urgent care exams run as video visits.
first_visit_video- A clinical rule for this exam requires the patient's first visit to be a video visit, and this patient has none yet. It applies in every state.
exam_video_here- This exam is video only in the patient's state.
video_only- The patient's state allows only video visits.
not_reviewed- The patient's state hasn't been reviewed for async yet (also the answer for a missing state or
TE). no_video_visit- The patient's state allows async only after a video visit for the same treatment, and this patient has none at your clinic.
treatment_period_over- The patient's state allows async only during the treatment period of a video visit, and it has ended.
video_visit_too_long_ago- The patient's state allows async only within a set time of a video visit, and the last one was longer ago.
other_exam_video- Another exam on the same invite has to be a video visit, so this one is too.
native_video- Another exam on the invite always runs as a video visit, so the invite is video.
not_in_conversion- This exam always runs as it does today (for example an existing "ASYNC" exam);
visit_typedoesn't change it. rules_unavailable- The rules couldn't be checked, so the invite is a video visit. The invite still went out; send the next one as usual.
422 validation errors
These arrive with HTTP status 200; the 422 is in http_code. Validation runs before anything is written, so a 422 means nothing was created - no meeting, no exams - and the request is safe to correct and retry. Where several entries are at fault, all of them come back in one response rather than one per round trip. A problem with the shape of the request itself - a mixed array, or legacy fields sent with the object form - returns on its own, before the entries are examined.
index and exam_id point at the entry at fault and are both null for problems with the invitation as a whole - which is how you tell an over-long invite note from an over-long exam note. MED_NOT_IN_PACKAGE carries an extra order_set_id naming the order set that failed.
Most of these codes are specific to the object form of exams[]. That form is available to any partner; the order-set codes are the partner-pharmacy ones. The three that reach a request sending a list of IDs - in any scenario - are marked below.
MIXED_EXAMS_FORM- Either shape. exams[] must be all ids or all objects, not a mix.
MIXED_REQUEST_SHAPE- Object-form exams[] cannot be combined with top-level Rx scalars; remove: … The detail ends with the offending field names, so you do not have to work out which one tripped it.
PACKAGE_NOT_AVAILABLE- Exam is not available to this clinic or state. The exam is no longer assigned to your clinic for the patient's state - despite still being published. A request sending a list of IDs fails the same check earlier and more bluntly, with
401 "Unauthorized Exam Access!"for the whole request rather than a per-exam error. DUPLICATE_EXAM- The same exam appears more than once in this invite.
DUPLICATE_MED- The same order set is listed more than once for this exam.
PACKAGE_LIMIT_EXCEEDED- At most 3 Rx exams are allowed per invite. One error per entry beyond the third.
MED_LIMIT_EXCEEDED- Either shape. At most 3 order sets are allowed per exam. With a list of IDs this is the top-level
order_set_ids, and the error carriesindex: null. NOTE_TOO_LONG- Either shape. provider_note exceeds 500 characters. Raised for the invite-level note on both shapes, and separately for each exam-level note in the object form.
INVALID_SKIP_INTAKE- skip_intake must be a boolean. Object form only. The entry sent
skip_intakeas something other thantrueorfalse(for example"true"or1). It is refused rather than read asfalse, so a patient is never sent the questionnaire you meant to skip, and a non-boolean is still refused on an asynchronous exam where a real boolean is otherwise ignored. Nothing is created. The entry is inerrors[]with this exam'sindexandexam_id. ORDER_SETS_ON_NON_RX- Order sets can only be supplied for Rx (rx_type = 2) exams.
MED_NOT_IN_PACKAGE- Order set 15 is not available for exam 73 in this state. Names the order set in the message and again in an
order_set_idfield on the error. MED_PHARMACY_MISMATCH- Order sets in this exam are supplied by different pharmacies… The detail lists the candidate pharmacy IDs for each order set, so you can see where they diverge. Split the entry across two exams, or pick order sets from one pharmacy.
PHARMACY_UNRESOLVED- Two cases, with different messages. A single order set resolving to no pharmacy at all: The selected order set does not resolve to a pharmacy. Or several that resolve to more than one, leaving nothing to choose between them: The selected order sets resolve to multiple pharmacies (…); cannot pick one.
NO_EXAMS- No exams provided. Shared with the Qualiphy portal's own invite path.
/exam_inviterejects an empty or missingexams[]earlier, with401 "Exams is invalid!", so this code does not reach partner callers today.
Webhook URL errors
Checks on webhook_url (ENG-1823) answer in a flat shape - { http_code, error_code, error_message }, no errors[] - and, like the codes above, nothing is created. Unlike the codes above, which arrive with HTTP status 200 and the 422 only in http_code, these answer with the real HTTP status too: 422 for invalid_webhook_url and (once the rollout completes) webhook_url_not_registered, 503 for webhook_registry_unavailable (also only once the rollout completes). A client that throws on any non-2xx status must still read the JSON body to see error_code.
invalid_webhook_url- 422, now: the URL could never be a partner endpoint (not parseable, embedded credentials, non-http scheme, private, loopback or cloud-metadata host). 422, after the rollout: also an unregistered plain
http://URL that is not your profile URL, and a plainhttp://profile URL you have not registered - including when the invite omitswebhook_urland falls back to it. Usehttps://, or register the profile URL first. webhook_url_not_registered- 422, after the rollout: the URL is not a registered destination. Register it with
/webhook_destination_register, or omitwebhook_urlto use the clinic's configured URL. Today it is logged and the invite goes through. webhook_registry_unavailable- 503, after the rollout: the destination registry could not be read while the invite was checked. Nothing was created; retry shortly.
Common 401 errors
The /exam_invite endpoint returns several distinct 401 messages. Most map to a specific portal action you (or your clinic admin) need to take in staging-app.qualiphy.me - not a code change.
- Unauthorized access.
- API key is missing or invalid.
- Need to add Patient Care Provider via Qualiphy Portal!
- Your account doesn't have a provider configured for the patient's state. Add one in Portal → Operators → Add Provider.
- You need to signed docusign and signed rx
- Onboarding agreements aren't complete. Sign all DocuSign documents and the Rx agreement in the portal before retrying.
- Need to sign Prescriptive Services Contract via Qualiphy Portal!
- Required before any Rx exam (GFE works without this). Sign in Portal → Settings → Agreements.
Inbound webhook fired by Qualiphy at three lifecycle moments. Your handler dispatches on the event field. Respond 200 immediately and process asynchronously to avoid retries.
event.patient_exam_id and round-trip your own order ID in additional_data so every event matches back without a lookup. The provider key is reserved - see /exam_invite.Where your webhook URL comes from
Two places can hold a webhook URL, and knowing which one is in play saves a lot of debugging.
webhook_urlon the invite- Per exam, sent on each
/exam_invitecall. This is the primary method for an API integration and needs no portal access. Register it first with/webhook_destination_registerto receive signed deliveries; see/exam_invitefor what happens to an unregistered or invalid value. - Clinic URL in the portal
- An account-level default used when an invite arrives without a
webhook_url. Set it under Clinics → the three-dot menu on the clinic → Edit. This view is on the clinic owner account, so a manager-level login may not see it.
webhook_url, so they fire against the clinic-level URL. If you want events for both API-created and staff-created exams, set both and keep them in sync.X-Qualiphy-Signature (v1= + hex HMAC-SHA256 over <timestamp>.<raw body>, keyed with the destination's signing_secret) and X-Qualiphy-Timestamp (Unix seconds). Register the URL with POST /webhook_destination_register to receive the secret, then verify with a constant-time compare and a 300-second replay window before parsing; the recipe is in Status & webhooks. During the rollout a URL you have not registered still receives deliveries, unsigned - until then, keep a secret token in the URL (letters, numbers and dashes only: & or # gets truncated anywhere the URL is handled unencoded). Once the rollout's final step is switched on, no unsigned delivery is sent at all: an unregistered URL is refused on the invite, and the later webhooks of exams created before the switch are not sent either until that URL is registered. The one exception is Qualiphy's own Zenoti integration endpoint, which carries no secret and is delivered unsigned by design.Request headers
X-Qualiphy-Timestampstring- Send time in Unix seconds. Reject a delivery more than 300 seconds from your clock (replay window).
X-Qualiphy-Signaturestringv1=+ hex HMAC-SHA256 over<timestamp>.<raw request body>, keyed with the destination'ssigning_secretfrom/webhook_destination_register. Hash the raw bytes you received and compare in constant time. Present on every delivery to a registered destination; absent on deliveries to a URL you have not registered.Content-Typestring- Always
application/json.
Two senders, two shapes
Each decision produces at least two deliveries to your URL, from two different Qualiphy components, and they do not carry the same shape:
- The completion sender posts first, the moment the provider decides. Its prescription list is
prescriptions(plural), and on environments that predate ENG-101 itsexam_statusis the lower-case enum key (approved/rejected/na). - The result-document sender posts when the chart PDF is generated, about a minute later, and again on every regeneration - a provider editing the note, a prescription change, an admin regenerating the record. Its list is
prescription(singular), itsexam_statusis always the label form, itsrx_statususes the pharmacy vocabulary, and it is the copy that reliably carries a signedexam_url- the completion sender includes one too, but only when the document already exists as it fires.
prescriptions ?? prescription, compare exam_status case-insensitively, and never assume a field outside the core set is present. These samples are abbreviated: the result-document copy also carries patient and prescriber PHI that is elided here. Status & webhooks documents both payloads field by field.Event 1 - Consultation Complete
Fires for every exam (GFE, Rx, Urgent Care) when the provider finishes the consultation. This is the basic exam outcome.
Status values: exactly three outcomes are terminal and fire this webhook - Approved, Deferred to Medical Director (the case a provider declines and escalates) and N/A (no decision was possible, for example the patient never attended). There is no Rejected, NA or Missed on the wire. The completion sender has not adopted these labels everywhere yet: until ENG-101 reaches an environment it sends the lower-case enum keys approved / rejected / na instead, which is what production emits today, so compare case-insensitively and map rejected to Deferred to Medical Director. Status & webhooks carries the full mapping table. The exam_url is a CloudFront-hosted PDF of the consultation record, and it is usually null on the first delivery: the document is generated on demand. The result-document delivery is the one that reliably carries the signed link; the completion sender includes one only if a PDF already exists when it fires. A handler that ignores repeat deliveries outright never receives a PDF. Stay idempotent on the decision itself, but let a later delivery update exam_url, then download and mirror the file to your own storage - the signed link is short-lived. See Status & webhooks for the two senders and what each carries.
Event 2 - Prescription Confirmed
Fires only for Rx exams, after Event 1, when the treatment order has been written and confirmed at the pharmacy. Carries the full schema below.
prescription is an array; an exam may include multiple treatment items. schedule_code reflects DEA controlled-substance schedule when applicable. Storage of these fields is regulated - design your DB schema with that in mind.
Event 3 - Prescription Tracking
Fires when the pharmacy ships the treatment. Use this to surface tracking info to the patient or your operations team.
This event comes from the pharmacy tracking handlers, not the senders above, and its body is smaller and differently typed. It carries no exam_status, exam_id or questions_answers, so branch on event before reading those - a handler that indexes them unconditionally throws here. patient_exam_id and prescription_id are relayed as received from the shipment notice and so may arrive as strings, where events 1 and 2 send numbers; compare with Number(). prescription_id is present only when the pharmacy supplies one. It does carry clinic_id, and that is the only location key on this event - there is no clinic_name here.
Dispatching the events
A reliable handler maps the event integer to the appropriate processor:
Attach a document to a patient exam: ID photos, lab results, prior records. The provider sees attachments during the screening.
Returns the screening question schema for a given exam ID. Use to build pre-fill UI on your own intake form, or to map your existing intake fields onto the Qualiphy question set.
Parameters
api_keystringRequired- Your location's API key.
exam_idintegerRequired- The exam to fetch questions for. Get the ID from
/exam_list.
Sample request
Submits answers on behalf of the patient. Pair with /exam_questions to pre-fill the screening from your own intake data, so patients aren't answering the same questions twice.
Parameters
api_keystringRequired- Your location's API key.
meeting_uuidstringRequired- From the original
/exam_inviteresponse. Omitting it returns400 "Invalid meeting id". patient_exam_idintegerRequired- From the
patient_exams[]array in the original/exam_inviteresponse. answersarrayRequired- Array of answer objects. Each takes
question_idandanswer. For single-select and multi-select questions also sendexam_question_response_id(for multi-select, repeat the samequestion_idonce per selection); useanswer_textfor options with a free-text box. Get IDs from/exam_questions. Weight and height have fixed formats, below.
Weight and height
Weight is pounds in answer, e.g. "212" ("212 lbs" also works). Height can be sent in any of these forms, and is stored as 5' 11":
{ "answer": "5' 11\"" }: feet and inches inanswer.5'11",5'11',5 ft 11 in,5 feet 11 inches,5'-11",5' 11 1/2",5 11and5-11also work (inches are rounded to the nearest whole inch), as does feet alone with a unit (6',6 ft).{ "answer": "5", "height_inches": 11 }: feet inanswer, andheight_inchesfrom 0 to 11 is the inches part.{ "answer": "", "height_inches": 71 }:height_inchesof 12 or more is total inches.answermay be empty or the matching feet ("5").{ "answer": "71 in" }: total inches inanswer. A bare number with no unit ("71") is read as inches only from 24 to 84 (2' 0" to 7' 0"); send a unit for anything taller.{ "answer": "180 cm" },"1.8 m", or a bare"180"(120 to 250): metric, rounded to the nearest inch.
Heights from 2' 0" to 8' 11" are accepted. Weight and height also update the patient's profile and BMI. A weight that isn't a number of pounds is stored as sent but doesn't update the profile. A height that can't be read in any of these forms (for example "5" with no height_inches, or "5.9") is not stored; the rest of the request is, and the response is 200 with a warnings list naming the question:
A height listed in warnings leaves that question as it was. A height stored by an earlier call is kept, and the exam can reach a provider with it. If none was stored, the question counts as unanswered: an asynchronous exam stays in prefill_only_patient_ready (it isn't sent to a provider) until you resubmit that height or the patient answers it. Each warning's question_id is the id you sent, as you sent it. An empty answer with no height_inches (or 0) is stored as sent, with no warning.
Sample request
Re-sends the invite email and SMS to the patient. Use when a patient says they didn't receive their original invite.
Parameters
api_keystringRequired- Your location's API key.
patient_exam_idintegerRequired- From the
patient_exams[]array in the original/exam_inviteresponse.
Sample request
Cancel a previously created patient exam invite. Useful when a patient cancels their order or you need to clean up a duplicate invite. Cancellation is only valid before the provider has acted on the exam.
Parameters
patient_exam_idintegerRequired- From the
patient_exams[]array in the original/exam_inviteresponse. Not theexam_id. api_keystringRequired- Your location's API key.
Sample request
Response
Cancellation rules (400 errors)
An exam can't be cancelled once a provider has acted on it. The 400 response tells you why:
- Exam status is already approved.
- Provider already approved. Trigger your refund/cleanup flow instead of trying to cancel.
- Exam status is already rejected.
- Provider already rejected. The exam is closed; no action needed.
- Exam status is already Deferred to Medical Director.
- Under medical director review. Contact support if you need to intervene.
/exam_invite_cancel twice on a successfully-cancelled exam returns 400 with the relevant status. Treat that as success in your retry logic.Read the current status of one of your clinic's patient exams - where it has reached in provider review, and the prescription outcome where one applies. Poll this after creating an exam invite. Authenticates on your api_key alone; only exams belonging to your clinic are readable.
Parameters
api_keystringRequired- Your location's API key.
patient_exam_idintegerRequired- The patient exam to look up. Returned when you create an
/exam_invite, and included in every webhook payload.
Sample request
Response
Response fields
statusstring- Where the exam has got to.
pending- awaiting provider review.approved/rejected/na/cancelled- the provider's outcome.prescribed- a prescription was approved for the exam.rejected_prescription- the prescription was rejected.expired- the exam is past its window. http_codeinteger- Mirrors the HTTP status in the body, for clients that read only the payload.
Errors
- 401 Unauthorized: api_key did not resolve a clinic
- The
api_keyis wrong, or the clinic is inactive. - 403 Forbidden: patient exam does not belong to this clinic
- The exam exists but belongs to another clinic. You can only read your own clinic's exams.
- 404 Patient exam not found.
- No exam exists with that
patient_exam_id.
Set the status of one of your clinic's patient exams. Authenticates on your api_key alone; only exams belonging to your clinic can be modified, and the exam's recorded provider is preserved.
/exam_invite_cancel. This endpoint has no active-session or terminal guard, so status: 6 will overwrite an already-approved exam to cancelled. /exam_invite_cancel refuses in those cases. Use this one only for exams you know are still pending.Parameters
api_keystringRequired- Your location's API key.
patient_exam_idintegerRequired- The patient exam to update. Must belong to your clinic.
statusintegerRequired- The status to set. A partner may only cancel its own exam, so the only accepted value is
6(cancelled). Approving, rejecting or marking n/a are clinical determinations made by a provider and cannot be set through this endpoint - any other value returns403.
Sample request
Response
Response fields
success_messagestring- Present when the status was updated (
"Status updated"). error_messagestring- Present on failure, and specific about which check failed - authentication (
401), exam ownership or a non-settable status (403), or an unexpected processing error (400).
Errors
- 401 Unauthorized: api_key did not resolve a clinic
- The
api_keyis wrong, or the clinic is inactive. - 403 Forbidden: patient exam does not belong to this clinic
- The exam exists but belongs to another clinic.
- 403 Forbidden: only 'cancelled' (6) may be set via this endpoint
- The exam is yours, but the requested status is not one a partner may set (only
6/ cancelled is). - 400 <reason>
- The request could not be processed (e.g. a malformed body). Note there is no
400for an already-decided or in-session exam: the update is applied regardless. A server-side guard is tracked.
Retrieve the same completion webhook JSON (Event 1 or Event 2) Qualiphy would POST to your webhook_url, rebuilt from current exam data. Use it when a delivery was missed - the senders never replay a failed delivery, so this is how you recover one. Authenticates on your api_key alone; only exams belonging to your clinic are readable.
prescription body. See Exam Webhook for the two shapes.Parameters
api_keystringRequired- Your location's API key.
patient_exam_idintegerRequired- The patient exam whose completion webhook payload you want. Must belong to your clinic. Returned when you create an
/exam_invite, and included in every webhook payload.
Sample request
Response
Response fields
http_codeinteger- Mirrors the HTTP status in the body, for clients that read only the payload.
eventinteger- As on the completion webhook:
1= good-faith exam (noprescriptionskey),2= exam with prescriptions (addsprescriptions[]). exam_statusstring- The completion sender's vocabulary:
Approved/Deferred to Medical Director/N/A. Environments that predate ENG-101 - the sandbox today - still emit lower-caseapproved/rejected/na, so compare case-insensitively. Not thepatient_exam_statuspolling vocabulary. rx_statusstringapproved,rejected,pending, or""when the exam has no prescription component (event 1).exam_urlstring- Usually
nullright after a decision, since the PDF is produced on demand. If a result document already exists when you call this, the response may carry a time-limited link. clinic_idinteger- The clinic (location) the exam belongs to - the same id
exam_listreturns. Key on this rather thanclinic_name, which is free text. additional_datastring- The string you passed on the invite, echoed back verbatim (
nullif none). One reserved key: if it is JSON whoseprovidernames an EMR handled by Qualiphy's integration hub (for examplezenoti), the partner webhook for that exam is suppressed and the result is delivered through that integration instead. Do not useproviderfor your own data - see/exam_invite. patient_emailpatient_phone_numberquestions_answersmixed- PHI. Handle as you would a webhook payload: HTTPS only, do not log bodies in plaintext, never put patient data in URLs.
Errors
- 400 Completion webhook payload is not available until the exam reaches a terminal status.
- The exam exists but has not been decided yet. Poll
patient_exam_statusand retry later - this is not a bad id. - 401 Unauthorized: api_key did not resolve a clinic
- The
api_keyis wrong, or the clinic is inactive. - 403 Forbidden: patient exam does not belong to this clinic
- The exam exists but belongs to another clinic.
- 404 Patient exam not found.
- No exam exists with that
patient_exam_id.
Register a URL as a webhook destination for your clinic and receive its signing_secret. Every delivery to a registered destination carries X-Qualiphy-Signature and X-Qualiphy-Timestamp (see Exam Webhook and the recipe in Status & webhooks). An https:// URL configured on the clinic profile is registered for you (at rollout, or on its first delivery). A plain http:// profile URL is not: register that same URL here yourself (the one case where http:// is accepted) to receive a secret, or move it to https://. A clinic with no profile URL has no destination until you register one. Changing the clinic's webhook URL in the portal deregisters the old profile URL only if it was registered for you (at rollout or on its first delivery) and you never collected its secret; a URL you registered yourself, or whose secret you collected, stays registered.
Registering a URL you previously removed reactivates it with a new signing_secret, returned once: HTTP 200, created: false, reactivated: true. The old secret is never revived, so deploy the new one before the URL receives deliveries again.
Parameters
webhook_urlstringRequired- An
https://URL to a public host, at most 500 characters, no embedded credentials. Private, loopback and cloud-metadata hosts are refused (422 invalid_webhook_url). Plainhttp://is accepted only for a URL already in use (the clinic's configured URL), never for a new destination. A clinic may hold at most 10 active destinations (422 too_many_webhook_destinations). rotate_secretbooleanOptional- On an already-registered URL, mint and return a new
signing_secret. It replaces the old one immediately: deliveries signed after the call use it, and it exists only in this response, so your receiver cannot hold it beforehand. Store and deploy it right away; deliveries signed before your receiver has it fail verification, the completion sender's retries span only about 2.5 seconds and the result-document sender does not retry a 4xx, so rotate at a quiet time. Keeping the previous secret accepted for a few minutes still helps for a delivery signed just before the rotation (sample). api_keystringRequired- Your account API key.
Sample request
Response
Errors
Real HTTP statuses, mirrored as http_code, with error_code and error_message. A missing or invalid api_key is the exception: HTTP 200 with http_code 401, like every endpoint.
- 422 invalid_webhook_url
- Not
https://(a new plainhttp://destination), not a public host, embedded credentials, or longer than 500 characters. - 422 too_many_webhook_destinations
- The clinic already has 10 active destinations. Remove one first.
- 409 registration_conflict
- A concurrent registration of the same URL was undone (it would have exceeded the 10-destination cap). Nothing was issued; retry the request.
- 429 rate_limited
- Too many register or remove calls in the rate-limit window. Slow down and retry later.
rotate_secret: true, on reactivating a removed URL (always a new secret), or the first time a URL that was registered for you (your clinic's https:// profile URL, at rollout or on its first delivery) is registered by you. After that only signing_secret_hint (the last four characters) is ever shown.List the clinic's active webhook destinations. Full secrets are never listed; signing_secret_hint is the last four characters, enough to tell which secret a delivery was signed with after a rotation.
Parameters
api_keystringRequired- Your account API key.
Sample request
Response
Errors
Real HTTP statuses, mirrored as http_code, with error_code and error_message. A missing or invalid api_key is the exception: HTTP 200 with http_code 401, like every endpoint.
- 429 rate_limited
- Too many list calls in the rate-limit window (a separate, larger budget than register and remove, so polling the list cannot block a registration). Slow down and retry later.
Remove a webhook destination. During the rollout, deliveries to that URL continue unsigned; once the rollout's final step lands, an invite naming it is refused and nothing is delivered to it. The clinic's configured URL cannot be removed here: change it in the portal first. To use a removed URL again, register it: that reactivates it with a new signing_secret, returned once (HTTP 200, created: false, reactivated: true). The old secret is never revived, so update your receiver.
Parameters
destination_idintegerRequired- The
idfrom/webhook_destination_listor the register response. api_keystringRequired- Your account API key.
Sample request
Response
Errors
Real HTTP statuses, mirrored as http_code, with error_code and error_message. A missing or invalid api_key is the exception: HTTP 200 with http_code 401, like every endpoint.
- 404 destination_not_found
- No active destination with that id for your clinic: it was already removed, the id is mistyped, or it belongs to another clinic.
- 409 destination_is_clinic_default
- The URL is the clinic's configured webhook URL. Change it in the portal, then remove it here.
- 422 invalid_destination_id
destination_idmust be a positive integer.- 429 rate_limited
- Too many register or remove calls in the rate-limit window. Slow down and retry later.
404 means only that your clinic has no active destination with that id - already removed (for example by an earlier attempt), mistyped, or not yours. Before treating it as done, call webhook_destination_list and confirm the URL you meant to remove is no longer listed.Lists the partner compounding pharmacies that can fulfill the given Rx exam(s) for a patient in the given state. Returns each pharmacy's pharmacy_id, which you'll pass into /exam_invite and /partner_pharmacy_treatment_packages.
Parameters
api_keystringRequired- Your location's API key.
exam_idsinteger[]Required- Array of Rx exam IDs from
/exam_list(rx_type: 2). patient_statestringRequired- Two-letter state code (e.g.
"NY"). Filters to pharmacies that can ship to the patient's state. Omitting it returns an empty array.
Sample request
Sample response
exam_ids returns 400 with "Cannot convert undefined or null to object" — not a missing-parameter message. An empty array ([]) response usually means no partner pharmacy / order sets are attached to those exams yet, or the patient_state isn't covered — contact your Qualiphy representative to get the pharmacy configured.Lists treatment packages (drug + dosage combinations + pricing) available at the given partner pharmacies for the given Rx exam(s). Returns order_set_id values for use with /exam_invite. Legacy exam_pos_id is still returned alongside for older integrations.
Parameters
api_keystringRequired- Your location's API key.
pharmacy_idsinteger | integer[]Required- Pharmacy ID(s) from
/partner_pharmacy_list. Accepts a single integer or an array. exam_idsinteger[]Required- Array of Rx exam IDs from
/exam_listyou want packages for. patient_statestringRequired- Two-letter state code (e.g.
"NY"). Omitting it returns an empty array.
Sample request
Sample response
pharmacy_ids (plural) — passing pharmacy_id returns an empty array, not an error. An empty array with correct parameters means no order sets are attached to those exams for those pharmacies yet — contact your Qualiphy representative.Look up any U.S. pharmacy by name, location, or NCPDPID. Returns full address and identifier fields you'll need for /exam_invite when using custom pharmacy routing.
Parameters
api_keystringRequired- Your location's API key.
searchstringOptional- Pharmacy name fragment (e.g.
"CVS"). zip_codestringOptional- Five-digit ZIP for proximity filtering.
ncpdpidstringOptional- Direct NCPDPID lookup. Pass alone to fetch a known pharmacy by ID.
Sample request
Sample response
External APIs
The endpoints under /api/v1/ are External APIs: endpoints built for integration partners, such as the Quidget middleware that keeps a clinic's online store in sync with its Qualiphy catalog. They use your clinic's API key, but they follow their own conventions, so the rules elsewhere in these docs that describe the core API don't apply to them.
| Core API (everything outside /api/v1/) | External APIs (/api/v1/) | |
|---|---|---|
| Method | POST with a JSON body | GET; Notification Settings also takes PATCH with a JSON body |
| API key | api_key in the JSON body | Only Authorization: Bearer YOUR_API_KEY; a key in the body or query string gets 401 |
| Status | HTTP 200, real status in http_code | Real HTTP status codes; no http_code |
| Body | Endpoint-specific | {"success": true, "data": …} or {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}} |
| Limits | None documented | Rate-limited, with X-RateLimit-* headers and 429 + Retry-After; each endpoint's page gives its budgets |
POST, carries api_key in the body, or answers HTTP 200 with http_code, that describes the core API. The External APIs are the endpoints listed under External APIs in the navigation, and every one of them lives under /api/v1/.Returns every pharmacy your clinic can route to in one call, each with the states it ships to. Use it to answer "can this pharmacy serve this patient" without a second call, and to resolve the pharmacy_id returned by /v1/packages.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Query parameters
statestringOptional- Two-letter state code (e.g.
TX). Only pharmacies that ship to that state. activestringOptionaltrueorfalse. Only active, or only inactive, pharmacies. Omit it to get every pharmacy.
Sample request
Sample response
Response fields
pharmacy_idinteger- The pharmacy id. The same id as
pharmacy_idin/v1/packages. pharmacy_namestring | null- The canonical pharmacy name: the one name for this pharmacy across the v1 API;
nullif none is recorded./v1/packagesreturns the same value for the samepharmacy_id. activeboolean- Whether the pharmacy is active.
activeis alwaystruetoday; the field is there so a future on/off switch does not change the format. statesstring[]- Two-letter states this pharmacy ships to for your clinic: states where an invite will succeed for at least one of your exams. Can be empty.
integration_partnerinteger | null- The pharmacy's integration partner.
Errors
Real HTTP status codes, with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}.
304- Not modified: your
If-None-Matchmatched the currentETag. Empty body — keep your cached copy. 400- An invalid
stateoractive(listed infield_errors). 401- Missing or invalid API key, or a key sent in the query string or body.
429- Rate limited — wait
Retry-Afterseconds. Two budgets, both per server worker: 120 requests per minute per clinic for this endpoint, separate from/v1/packages,/v1/locationsand/v1/settings/notifications; and 60 failed authentications (401s) per minute per IP, shared with them and checked before the key is. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body.
pharmacy_name is the canonical pharmacy name across the v1 API. Use it as returned instead of normalizing names yourself.ETag as If-None-Match on every poll — a 304 means nothing changed. The rate limit is 120 requests per minute per clinic, per server worker (the API runs several workers, so treat it as approximate), separate from /v1/packages, /v1/locations and /v1/settings/notifications, plus a shared per-IP budget for failed authentications (see 429); every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. A pharmacy missing from an unfiltered response (no state, no active) has been removed.Returns every treatment package for up to 20 exams in one call, each with the states it is available in — no patient state is needed in the request. Use it to build or refresh your package catalog instead of calling /partner_pharmacy_list and /partner_pharmacy_treatment_packages once per state.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Query parameters
exam_idstringRequired- Comma-separated exam ids from
/exam_list, at most 20 per call — e.g.123,456. pharmacy_idintegerOptional- Only packages from this pharmacy.
statestringOptional- Two-letter state code (e.g.
NY). Only packages an invite will succeed for in that state. availabilitystringOptionalactive(default) orall. Withall, inactive packages are included and marked"availability": "inactive".cursorstringOptional- Pass back
next_cursorfrom the previous response to get the next page. limitintegerOptional- Packages per page. Default
200, maximum1000.
Sample request
Sample response
Response fields
exam_idinteger- The exam id you requested. Stable across exam edits.
exam_version_idinteger- The current version of the exam. Changes when the exam is re-versioned.
exam_pos_idinteger- The package id to send with an exam invite. Changes when the exam is re-versioned — do not store it as the package's identity.
order_set_idinteger- The treatment (order set) id.
pharmacy_idinteger- The pharmacy.
pharmacy_namestring | null- The canonical pharmacy name, the same as in
/v1/pharmacies;nullif none is recorded. integration_partnerinteger | null- The pharmacy's integration partner.
titlestring | null- The package title;
nullif none is recorded. consult_pricemedication_pricetotal_pricestring- USD, as strings with 2 decimals.
total_price=consult_price+medication_price, and equalsqualiphy_total_pricefrom/partner_pharmacy_treatment_packages. currencystring- Always
USD. statesstring[]- Two-letter states where an invite for this package will succeed: the pharmacy serves the state and the exam is offered there. Can be empty.
availabilitystringactiveorinactive(inactive only appears withavailability=all).updated_atstring | null- When any part of the package last changed (ISO 8601);
nullif none of its source rows carries a timestamp. exam_ids_not_foundinteger[]- Requested exam ids that are unknown or not available to your clinic. They do not fail the call.
next_cursorstring | null- Pass as
cursorto get the next page;nullon the last page.
Errors
Real HTTP status codes, with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}.
304- Not modified: your
If-None-Matchmatched the currentETag. Empty body — keep your cached copy. 400- Missing or malformed
exam_id, more than 20 ids,limitover 1000, or another invalid parameter (listed infield_errors). 401- Missing or invalid API key, or a key sent in the query string or body.
429- Rate limit exceeded — wait
Retry-Afterseconds. The per-clinic budget is shared with Locations and Notification Settings; the failed-authentication budget is shared by every/api/v1/endpoint. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body.
(exam_id, pharmacy_id, order_set_id). exam_pos_id and exam_version_id change when an exam is re-versioned, so anything bound to exam_pos_id alone will break.ETag as If-None-Match on every poll — a 304 means nothing changed. The rate limit is 120 requests per minute per clinic, per server worker (the API runs several workers, so treat it as approximate), shared with Locations and Notification Settings, plus 60 failed authentications (401s) per minute per IP, shared by every /api/v1/ endpoint; every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. At most 20 exam_id per call. Treat a package missing from the response as removed only when you requested availability=all.Lists your active locations with their ids, so you can bind each storefront to the right location without asking support for ids. Each location is a clinic: its id is the same value as clinic_id in /exam_list and in webhooks.
"Your locations" means the active locations under the same account and the same organization as the location whose API key you send, including that location itself; a location on your account with no organization is grouped only with other locations that have none. A single-location account gets one location back. Locations on other Qualiphy accounts are never returned.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Query parameters
cursorstringOptional- Pass back
next_cursorfrom the previous response to get the next page. limitintegerOptional- Locations per page. Default
200, maximum1000.
Sample request
Sample response
Response fields
locations[].idinteger- The location id.
locations[].namestring | null- The location's name;
nullif none is recorded. countinteger- Locations on this page.
next_cursorstring | null- Pass as
cursorto get the next page;nullon the last page.
Errors
Real HTTP status codes, with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}.
400- Malformed
cursor, orlimitnot a whole number from 1 to 1000 (listed infield_errors). 401- Missing or invalid API key, or a key sent in the query string or body.
429- Rate limited; wait
Retry-Afterseconds. Two budgets apply, both per server worker: 120 requests per minute per clinic, shared with Packages, Locations and Notification Settings, and 60 failed authentications (401s) per minute per IP, shared by every/api/v1/endpoint. The failed-authentication budget is checked before the key is, so once an IP passes 60 failed authentications, every request from it gets429until the window resets, valid keys included.X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Resetreport the per-clinic budget on authenticated responses, and the failed-authentication budget on a401or a failed-authentication429. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body.
/v1/locations/{location_id}.Returns one location from /v1/locations by its id. The same rule applies: only locations that list would return for your API key.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Path parameters
location_idintegerRequired- A location
idfrom/v1/locations.
Sample request
Sample response
Errors
Same error body as /v1/locations.
400location_idis not a positive whole number.401- Missing or invalid API key, or a key sent in the query string or body.
404- No such location among yours. A location on another account returns the same
404. 429- Rate limited; wait
Retry-Afterseconds. Two budgets apply, both per server worker: 120 requests per minute per clinic, shared with Packages, Locations and Notification Settings, and 60 failed authentications (401s) per minute per IP, shared by every/api/v1/endpoint. The failed-authentication budget is checked before the key is, so once an IP passes 60 failed authentications, every request from it gets429until the window resets, valid keys included.X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Resetreport the per-clinic budget on authenticated responses, and the failed-authentication budget on a401or a failed-authentication429. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body.
Returns your location's setting for Qualiphy's exam invitation emails and text messages to your patients. Change the setting with PATCH /v1/settings/notifications.
The setting applies only to the location (clinic) whose API key you send. Other locations on your account keep their own setting. A location that has never changed it reads back true for both.
It controls Qualiphy's exam invitation emails and text messages to your patients, including invitation resends. Follow-up exam emails and texts always send, whatever this setting says: they carry information patients need after their exam. The text that tells a waiting patient a provider is now available also sends whatever this setting says, unless the exam has text messages turned off. It is the same setting Qualiphy support can change for you, so changes made either way show here.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Sample request
Sample response
Response fields
notifications.emailboolean- Your location's setting for exam invitation emails:
trueis on,falseis off. notifications.smsboolean- Your location's setting for exam invitation text messages:
trueis on,falseis off.
Errors
Real HTTP status codes, with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}.
401- Missing or invalid API key, or a key sent in the query string or body.
429- Rate limited; wait
Retry-Afterseconds. Two budgets apply, both per server worker: 120 requests per minute per clinic, shared with Packages, Locations and Notification Settings, and 60 failed authentications (401s) per minute per IP, shared by every/api/v1/endpoint. The failed-authentication budget is checked before the key is, so once an IP passes 60 failed authentications, every request from it gets429until the window resets, valid keys included.X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Resetreport the per-clinic budget on authenticated responses, and the failed-authentication budget on a401or a failed-authentication429. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body.
Turns Qualiphy's exam invitation emails or text messages to your patients on or off. Send only the channels you want to change; the response shows the setting after the change, in the same shape as GET /v1/settings/notifications.
- Scope: the setting applies only to the location (clinic) whose API key you send. Other locations on your account keep their own setting.
- What it controls: Qualiphy's exam invitation emails and text messages to your patients, including invitation resends.
- What it does not control: follow-up exam emails and texts always send, whatever this setting says. They carry information patients need after their exam. The text that tells a waiting patient a provider is now available also sends whatever this setting says, unless the exam has text messages turned off.
- Administrator notice: turning patient email off sends a notice to the administrator email address on file for the location. This endpoint cannot change that address.
- Audit log: every change made through this endpoint is recorded in an audit log.
- Support changes: it is the same setting Qualiphy support can change for you. Changes made either way show here.
Authorization: Bearer YOUR_API_KEY. A key in the query string or body is rejected with 401.Body parameters
A JSON object with at least one of these fields. Any other field (for example admin_email) is rejected with 400, not ignored.
emailbooleanOptional- Your location's setting for exam invitation emails:
trueturns it on,falseturns it off. Must be a JSON boolean. smsbooleanOptional- Your location's setting for exam invitation text messages:
trueturns it on,falseturns it off. Must be a JSON boolean.
Sample request
Sample response
Errors
Real HTTP status codes, with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}. Read error.code to tell the cases apart.
400invalid_request: the body is not a JSON object, has no fields, has a value that is not a JSON boolean, or has a field other thanemailandsms. Each problem is listed infield_errors. Anapi_keyin the body is a401, not a400(see Authentication).401- Missing or invalid API key, or a key sent in the query string or body.
409conflict: the setting changed while your request was running. Nothing was changed; retry.422channel_required: a channel you asked to turn off cannot be turned off for your clinic;field_errors[].messagegives the reason. No channel is restricted today, but handle this code.admin_email_missing: turning email off needs an administrator email address on file for the location, and there is none. Nothing was changed.429- Rate limited; wait
Retry-Afterseconds. Two budgets apply, both per server worker: 120 requests per minute per clinic, shared with Packages, Locations and Notification Settings, and 60 failed authentications (401s) per minute per IP, shared by every/api/v1/endpoint. The failed-authentication budget is checked before the key is, so once an IP passes 60 failed authentications, every request from it gets429until the window resets, valid keys included.X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Resetreport the per-clinic budget on authenticated responses, and the failed-authentication budget on a401or a failed-authentication429. 500- Unexpected server error. Retry later; if it persists, send us the
correlation_idfrom the error body. 503notice_failed: turning email off sends a notice to your administrator email address, and that notice could not be sent. Nothing was changed; retry.
Recipe: GFE for an Aesthetic Treatment
The most common Qualiphy API integration. A patient buys a Botox or filler treatment on your store; you need a licensed provider to clear them before they show up at the clinic.
Run a GFE for Botox or fillers
~15 min implementation · 2 endpoints + 1 webhook
- 1Once at setup: call
/exam_listto grab your aesthetic exam ID. Store the IDs you'll use - they're stable. - 2In your e-commerce platform (WooCommerce, Shopify, custom checkout, etc.), the patient checks out for an aesthetic treatment. Your order-completion handler fires.
- 3Call
/exam_invitewith the patient's details and your aesthetic exam ID. - 4Qualiphy emails and texts the patient a meeting link only if you want Qualiphy to contact your patient. Otherwise the
meeting_urlin the response is yours to deliver - see Patient Notification Settings to disable. - 5Your webhook receives an
approveresult. Update the order status and notify the patient that they're cleared to come in.
Tip: Use additional_data to pass your internal order ID. It comes back unchanged in the webhook payload, making it trivial to match results to orders without a separate database lookup. The provider key is reserved - see /exam_invite.
Recipe: Partner Pharmacy Medication Shipping
Order medication from our partner pharmacies with negotiated rates. We handle routing the prescription and notifying you with shipping updates along the way. Works for GLP-1, peptides, hormone replacement, and other Rx programs running through Qualiphy partner pharmacies.
Order medication with Qualiphy
~30 min implementation · up to 4 endpoints + 1 webhook
- 1Once at setup: call
/exam_listto grab the medication exam ID(s) you'll be sending patients through. - 2Once at setup: call
/partner_pharmacy_listwith your Rxexam_idsand apatient_stateto discover the pharmacies that can fulfill them. Store thepharmacy_idvalues you want to use. Skip this step if you don't have a preferred pharmacy and want the prescriber to choose the cheapest option every time. - 3Once at setup: call
/partner_pharmacy_treatment_packageswith yourpharmacy_ids,exam_ids, andpatient_stateto get the available packages. Store theorder_set_idvalues. Skip this step if you don't care which dosage is prescribed and trust the physician to make the right decision per patient. - 4Per patient: call
/exam_invitewith the medication exam ID, the patient details, and the optionalpharmacy_id+order_set_idif you preselected them. - 5Qualiphy emails and texts the patient a meeting link only if you want Qualiphy to contact your patient. Otherwise the
meeting_urlin the response is yours to deliver - see Patient Notification Settings to disable. - 6Webhook event 1 fires when the consultation completes. Webhook event 2 fires once the prescription is confirmed at the partner pharmacy, and event 3 fires when the package ships - tracking number included.
pharmacy_id and order_set_id on the patient/subscription record. For the next order just rebuild the same /exam_invite payload with current patient data - no need to re-discover pharmacy or dosage IDs./exam_invite again for a fresh meeting_url - the subscription cadence lives entirely in your billing system.Recipe: Urgent Care Visit & Custom Pharmacies
Use this flow when the prescription should ship to (or be picked up from) a pharmacy outside Qualiphy's partner network - the patient's local CVS, Walgreens, or any other retail pharmacy. Common for same-day UTI treatments, but also for any program where a patient prefers their own pharmacy over the partner-pharmacy default.
Send a prescription to a custom pharmacy
~20 min implementation · 3 endpoints + 1 webhook
- 1Once at setup: call
/exam_listto grab the exam ID(s) you'll be sending patients through. - 2On checkout, ask the patient which pharmacy they want to use. Call
/custom_pharmacy_searchto look up nearby pharmacies by name or ZIP. - 3Submit
/exam_invitewith the exam ID, the patient details, and the patient's chosen pharmacy. - 4Qualiphy emails and texts the patient a meeting link only if you want Qualiphy to contact your patient. Otherwise the
meeting_urlin the response is yours to deliver - see Patient Notification Settings to disable. - 5Patient joins the screening, talks to the provider. If approved, the prescription is sent to the chosen pharmacy.
- 6Webhook event 1 fires once the consultation is approved. Webhook event 2 fires after the provider sends the prescription to the pharmacy. (No event 3 for custom pharmacies - see warning below.)
200), but the prescription has nowhere to go after the provider signs it - the order strands until someone manually sets a destination. If you route fulfillment yourself, include the ncpdpid and pharmacy fields on every invite.Variant: preselect a fixed pharmacy (no patient step)
If every order goes to the same pharmacy (e.g. your own fulfillment partner), preselect it on the invite instead of asking the patient. Send your exam's normal routing fields (pharmacy_id / order_set_id if it uses Choose-Your-Pharmacy order sets) plus the destination and the two mode fields - and note there's no custom_pharmacy flag in this shape:
custom_pharmacy_patient_choice: 1 removes the patient's pharmacy step; skip_pharmacy_confirmation: 2 skips the confirmation screen (it only takes effect because the full pharmacy address is present). Omit both and the invite defaults to patient-picks mode, where the patient's in-meeting choice overrides your preset destination.
Recipe: Pull Your Full Exam Configuration
You want an exam's full setup - its screening questions and the order sets and pharmacies attached to it - in machine-readable form, without transcribing it by hand or asking us to confirm what's attached. This recipe assembles the read-only endpoints you already have into one configuration view, so your integration can discover an exam's config on its own.
Discover an exam's questions, order sets & pharmacies
~20 min implementation · up to 4 read-only endpoints · no webhook
- 1Call
/exam_listto get every exam on your account with itsid,title, and type. Pick the exam IDs you're integrating. - 2For each exam, call
/exam_questionswith theexam_idto get its screening question schema - the curated questions patients answer, keyed byno. - 3Rx exams only: call
/partner_pharmacy_listwith yourexam_idsand apatient_stateto find the partner pharmacies attached to the exam. Store thepharmacy_idvalues. - 4Rx exams only: call
/partner_pharmacy_treatment_packageswith thosepharmacy_ids, yourexam_ids, andpatient_stateto get the attached order sets - each with itsorder_set_id,exam_pos_id,title, pricing, andpharmacy_name.
/exam_questions returns each question by its no and text, not individual answer-choice IDs. When you submit answers back, match on no + question (see Pre-fill Patient Answers). Re-pull the schema after an exam is edited rather than caching it long-term.Recipe: Pre-fill Patient Answers
You already collect health screening info on your own intake form, and you don't want patients to re-answer the same questions during the Qualiphy screening. Or you want full control over the wording of every question and you'll display the form on your end - not Qualiphy's.
Submit answers programmatically
~30 min implementation · 3 endpoints + 1 webhook
- 1Call
/exam_questionsto get the question schema for the exam. Map each question to the matching field on your intake form. - 2Call
/exam_inviteas usual. Capture the returnedpatient_exam_idandmeeting_uuid— both are required on the submit. - 3Immediately call
/exam_submit_answerswith the patient's pre-collected answers. Every question you submit appears pre-filled on the Qualiphy side, except a height the server couldn't read, which comes back inwarnings(see Weight and height). If you submit answers for every question, the questionnaire is skipped entirely and the patient goes straight to the provider call. Submit a subset and the patient only sees the unanswered questions, with their existing answers shown alongside.
Patient Notification Settings
Qualiphy sends two distinct kinds of patient-facing messages. Each can be disabled independently if you want full control - or you want your providers to stay out of direct patient contact. Disable one, both, or neither.
1. Auto-generated invites
When you call /exam_invite, Qualiphy automatically emails and texts the patient the meeting link. Disable these if you want to deliver the link from your own branded system using the meeting_url returned in the response.
How to disable: call PATCH /api/v1/settings/notifications with {"email": false, "sms": false}, or ask your Qualiphy rep. The setting applies per location (the location whose API key you use), not per request; turn it off for each location that sends its own invites. Turning email off emails the administrator address on file for that location; if there is none, the call returns 422, and if that email cannot be sent it returns 503; either way it changes nothing, SMS included.
One text also still sends: when a provider becomes available while your patient is waiting for their exam, Qualiphy texts them a link to join now, unless the exam has text messages turned off. You have no webhook for that moment, so Qualiphy keeps sending it.
2. Provider direct contact
Qualiphy providers may personally email or call the patient in specific situations - for example, when a video call drops mid-session and the provider needs to call them back, or to nudge a patient whose exam has been pending too long. These messages come from the provider's number/email, not Qualiphy's automated system.
How to disable: in the Qualiphy portal, go to Settings → Notification Settings. From there you can toggle each notification type per clinic, manage which notification contacts get copied, and choose whether providers contact patients directly for pending consultations.

Sending invites from your own system
Once auto-generated invites are off, the integration shape is straightforward:
Deliver the meeting link yourself
~15 min implementation · 2 endpoints · one settings call per location
- 1Turn off auto-generated invites with
PATCH /api/v1/settings/notifications, once per location. - 2Call
/exam_inviteas usual. Capture the returnedmeeting_url. - 3Send your own email or SMS to the patient with the
meeting_urlembedded in your branded template.
How an Exam Works
Every Qualiphy interaction follows the same lifecycle, regardless of treatment type. Understanding this flow makes everything else easier to reason about.
- 1You call
/exam_invitewith patient details and one or more exam IDs. Qualiphy returns ameeting_urlimmediately. - 2The patient receives an invite via email and SMS (or via your own system if you've configured custom delivery). They click the link and enter the screening.
- 3The patient completes the screening. They answer health questions, then connect with a licensed provider for a brief video consultation.
- 4The provider makes a decision: approve, reject, or defer. For Rx exams, an approval includes a treatment order that routes to your selected pharmacy.
- 5Your
webhook_urlreceives the result as a POST. Your handler updates the patient record, triggers fulfillment, sends a notification, or whatever your business logic requires.
Steps 1 and 5 are where your code lives. Steps 2-4 happen on Qualiphy's side without further integration work.
Exam Types
The same /exam_invite endpoint handles all three exam types. The exam ID determines the type; a single payload can trigger one of any kind.
Good Faith Exam (GFE)
Provider clears a patient for an in-clinic procedure. Most common for Botox, fillers, IV therapy, and other aesthetic services. No medication is dispensed.
Rx Treatment
Provider evaluates the patient and, if appropriate, issues a treatment order. Common for GLP-1 weight loss programs, hormone therapy, and other ongoing treatments. Medication routes to a partner or custom pharmacy.
Urgent Care
On-demand consultations for acute conditions: UTI, pink eye, cold sores, acne, nausea. Treatments are sent to a retail pharmacy of the patient's choice.
How to know which type an exam is
Call /exam_list; each exam record returns its type. Or check the exam in the Qualiphy portal under Exam List.
exams[], the only shape that can express a per-exam choice. See Multi-Rx on /exam_invite.States & Telehealth
Telehealth in the U.S. is regulated state-by-state. Qualiphy uses the tele_state field on every /exam_invite call to match patients with providers licensed in their location.
Always pass the patient's state
Not your clinic's state. The patient's state determines which providers can serve them and which pharmacies can fulfill treatments. A clinic in Texas with a patient in California sends "tele_state": "CA".
Format
Two-letter uppercase state abbreviation: NY, CA, TX, etc. Use DC for Washington D.C.
Coverage
Qualiphy serves 48 states + D.C. Alabama and Mississippi are not currently supported.
Pharmacy Routing
For Rx exams, you choose how treatments get from the provider to the patient. There are three patterns. Pick whichever fits your business model.
Partner pharmacy (recommended for Rx programs)
Use Qualiphy's pre-vetted compounding pharmacy network. Bundled, all-inclusive pricing. Qualiphy handles fulfillment and ships directly to the patient. Best for GLP-1, peptide, and other recurring Rx programs.
Workflow: call /partner_pharmacy_list with your Rx exam_ids + patient_state to see available pharmacies and their pharmacy_id, then optionally call /partner_pharmacy_treatment_packages (same parameters plus pharmacy_ids) to get an order_set_id for a specific package. Pass pharmacy_id + order_set_id into your /exam_invite payload.
Custom pharmacy
Send the treatment order to a specific retail or compounding pharmacy. Required for Urgent Care exams (the patient picks a pharmacy near them). Best when the patient already has a preferred pharmacy.
Workflow: call /custom_pharmacy_search to find a pharmacy by name or ZIP, then pass the resulting ncpdpid and address fields into your /exam_invite payload.
Provider's choice
Let the licensed provider pick the right pharmacy and order set during the consultation, based on the patient's needs. Use the provider_pos_selection field on /exam_invite:
1- Provider does not choose. You've fully specified the pharmacy and order.
2- Provider picks the order set only (drug + dosage). You specified the pharmacy.
3- Provider picks both the pharmacy and the order set. Most flexible.
Field Glossary
The Qualiphy API has a few field names whose meaning isn't obvious from the name. Bookmark this section - you'll come back to it.
tele_statevsstatetele_stateis the patient's telehealth jurisdiction, used to match providers and pharmacies. It must be the patient's state, even if the clinic is elsewhere.stateis just the patient's home address state. They're often the same value, but conceptually different fields.address_*vsshipping_address_*vspharmacy_*- Three different addresses.
address_*is the patient's home address.shipping_address_*is where Rx ships to (often a clinic or P.O. box, not the patient's home).pharmacy_*is the custom retail pharmacy whencustom_pharmacy: 2. custom_pharmacy- Inverted from intuition.
2=Custom Pharmacy (retail like CVS, Walgreens).1=Partner Pharmacy (Qualiphy's compounding network) - the platform's internal1=false /2=true convention, not an ordered list. Must match the exam's configured routing: a custom-only exam rejects1with401 "Only custom pharmacies available for this exam!", a partner-only exam rejects2with401 "Only partner pharmacies available for this exam!". To preselect a retail destination without the flag, usencpdpid+custom_pharmacy_patient_choice: 1instead. attachments_required- Also inverted.
1=not required.2=required. Watch for off-by-one bugs. rx_type- On exams from
/exam_list.1=non-Rx (GFE),2=Rx. You can stack non-Rx exams freely in one meeting. A plain list of exam IDs carries at most one Rx exam; up to 3 need the object form ofexams[]- see Multi-Rx on/exam_invite. gender- Integer, not string.
1=Male,2=Female,3=Prefer not to say. exam_idvspatient_exam_idexam_idis the static catalog ID for a treatment (e.g. "GLP-1 Weight Loss").patient_exam_idis unique to one patient's instance of that exam. Always usepatient_exam_idwhen cancelling, looking up answers, or correlating webhooks.eventon the webhook1=Consultation Complete.2=Prescription Confirmed.3=Prescription Tracking. Always switch on this. Webhook reference →provider_pos_selection- "POS" = Pharmacy / Order Set.
1=you specify both.2=provider picks order set.3=provider picks both.
Webhook Best Practices
Webhooks are the most operationally sensitive part of any integration. A failed webhook handler means a missed approval, which means a frustrated patient. Build defensively.
Respond fast, process slow
Your handler should validate the payload, queue the work, and return 200 in under 100 ms. Do the actual processing in a background worker. A slow handler eats into the sender's timeout (10 seconds for the completion sender), and a timed-out attempt is treated as a failure.
Retries are bounded - reconcile what is lost
Each sender retries 3 times and then gives up: the completion sender at 0.5 s then 2 s, retrying any non-2xx; the result-document sender immediately, then after 2 s and 8 s, retrying only network errors and 5xx (a 4xx from you is read as a deliberate rejection). Neither replays a failed delivery later. A decision whose deliveries all failed is not resent, so treat webhooks as the fast path and /patient_exam_status as the reconciliation path - poll on startup, and for any exam you have not heard about. See Status & webhooks for the full delivery contract.
Idempotency
Treat patient_exam_id as a unique key. If your handler is invoked twice with the same ID, the second invocation should be a no-op. Store a record of processed IDs and check on every call.
Logging
Log every payload before processing, including failed deliveries. When something goes wrong months later, the raw payload is the only forensic record you'll have.
Verifying the source
Verify the signature first. Register your URL (POST /webhook_destination_register) to receive a signing_secret; every delivery to a registered destination then carries X-Qualiphy-Signature and X-Qualiphy-Timestamp. Recompute v1= + hex HMAC-SHA256 over <timestamp>.<raw body>, compare in constant time, reject anything older than 300 seconds, and only then parse the body. Recipe and samples: Status & webhooks. Until you register, authenticate a delivery by matching patient_exam_id (and the additional_data reference you sent on the invite) to an exam you created, and treat anything that does not match as hostile. The provider key is reserved - see /exam_invite. Keep the webhook URL unguessable, serve it over HTTPS, and IP-allowlist Qualiphy's origin as a second layer if your platform supports it - but do not rely on the allowlist alone, since it cannot tell a forged payload from a real one.
Errors & Status Codes
A 200 means the call succeeded and the body carries the response payload. Everything else is one of these. The /api/v1/ endpoints (Packages, Locations, Pharmacies, Notification Settings) return these as real HTTP status codes with the body {"success": false, "error": {"code", "message", "field_errors", "correlation_id"}}, and can also return 304, 404, 409, 422, 429 and 503; each endpoint lists its own.
400- Bad request. Usually a missing required field, malformed date/phone, or an invalid
tele_state. The response body specifies which field. 401- Authentication failed: your API key is missing or invalid. Outside
/api/v1/the key is theapi_keybody field; on/api/v1/it is theAuthorization: Bearerheader, and a key sent anywhere else is also a401. 500- Server error. Retry after a brief backoff. If it persists, contact support.
Going to Production
A pre-launch checklist. Run through this before flipping your integration on for real patients.
- ☐Full integration validated end-to-end via Test mode (state & tele_state set to
TE, expected outcomes confirmed via webhook) - ☐
stateandtele_statenow driven by the patient's real address (no hardcodedTEleft in code paths) - ☐Patient name fields use real patient data (no
Test Approve/Test Rejectfixtures left over) - ☐The no-charge test exam
5359replaced with the real exam IDs your integration sends - ☐Webhook handler tested against approve and reject paths
- ☐Production API key stored in your secrets manager (not in source control)
- ☐Production webhook URL registered on the production host with
/webhook_destination_register, and thesigning_secretit returns stored in your secrets manager for the receiver. Destinations and secrets are per environment: the sandbox registration and secret do not carry over (see Status & webhooks) - ☐Idempotency check on
patient_exam_idin webhook handler - ☐Error monitoring on the
/exam_invitecall (4xx and 5xx) - ☐Subscribed to API change notifications
- ☐For Rx programs: pharmacy routing values stored on the patient/subscription record, not hardcoded
state/tele_state from TE to the patient's real state, replace test names with real patient data, and you're live. Roll out gradually — feature-flag the integration on for a small percentage of patients first.Want a tailored plan for your team?
The quick start asks a handful of questions about your business, then generates a custom integration plan you can email straight to your dev team.
Run the quick start →