Skip to content

API reference

The public machine interfaces of PacsPilot. Every request authenticates with an API token created by a practice administrator on Settings › Gateways and tokens, sent as Authorization: Bearer pp_<kind>_…. The practice always comes from the token.

Errors are RFC 9457 application/problem+json with type: https://pacspilot.app/errors/{slug}; match on the slug. Each slug is documented at https://pacspilot.com/docs/api/errors/{slug}.

Site gateways and site agents use the ingest host with mTLS; those routes are internal and not listed here. Session routes used by the web app are internal and may change without notice.

Synthetic or de-identified data only until a Business Associate Agreement is in place.

Base URL: https://app.pacspilot.com. The machine-readable description is at /docs/api/openapi.json and GET /api/v1/openapi.json (OpenAPI 3.1.0).

Authentication

A practice owner or administrator creates tokens on Admin, API tokens in the app and picks the kind and scopes. The token is shown once; PacsPilot stores only its hash. Send it on every request:

Authorization: Bearer pp_partner_…
Kind Prefix Description
partner_stow pp_partner_… Partner token: STOW-RS and QIDO-RS. Scopes it may hold: stow:write, qido:read.
hl7 pp_hl7_… Orders interface token: HL7 v2, HL7 v3 and FHIR. Scopes it may hold: hl7:write, fhir:write, hl7v3:write, launch:issue.
ai_result pp_ai_… AI app result token: results for studies sent to that app. Scopes it may hold: ai:results.

Scopes

Scope Token kinds Allows
stow:write partner_stow Send DICOM instances with STOW-RS and STOW uploads, and read the status of your own batches.
qido:read partner_stow Search the practice's studies with study-level QIDO-RS. Results contain patient data and every query is audited.
hl7:write hl7 Send HL7 v2 orders, results and ADT messages over HTTPS.
fhir:write hl7 Create or update orders with FHIR R4 ServiceRequest and send CDA reports as DocumentReference.
hl7v3:write hl7 Send HL7 v3 interactions and CDA documents, with or without a SOAP envelope.
ai:results ai_result AI vendors only: return results for studies the practice sent to that AI app, as DICOM over STOW-RS or a JSON callback. Issued by activating the app on AI apps.
launch:issue hl7 Issue single-use, 60-second context launch links that open a study in PacsPilot for a member already signed in (reading cockpit context launch).

Operations

Operation Endpoint
Store instances (STOW-RS) post /dicomweb/studies
Search for studies (QIDO-RS) get /dicomweb/studies
Store instances of one study (STOW-RS) post /dicomweb/studies/{studyUid}
Get a STOW batch's status get /dicomweb/stow/{batchId}
Start a STOW upload post /dicomweb/stow-uploads
Send one part of a STOW upload put /dicomweb/stow-uploads/{batchId}/parts/{partNumber}
Complete a STOW upload post /dicomweb/stow-uploads/{batchId}/complete
Send HL7 v2 messages post /api/v1/hl7
Create or update an order (FHIR ServiceRequest) post /api/fhir/ServiceRequest
Send an HL7 v3 interaction or CDA document post /api/v1/hl7v3
Send a CDA report (FHIR DocumentReference) post /api/fhir/DocumentReference
Send lab results (FHIR Observation) post /api/fhir/Observation
Get this OpenAPI document get /api/v1/openapi.json
Return AI findings as JSON post /api/v1/ai/results
Create a context launch link post /api/v1/launch-tokens