Quickstart
The API is read-only and answers JSON. This page takes you from nothing to a first authenticated request, then to paging and events. It takes a few minutes if you already have a workspace.
1. Check the service#
The health endpoint needs no key. It is the quickest way to confirm you can reach the API from where your code runs.
curl https://api.epic.direct/v1/health{ "data": { "status": "ok", "version": "2026-11-27" } }2. Create a key#
Accounts are created by invitation; there is no self-service sign-up. Sign in to your workspace at https://{workspace}.epic.direct and open API. Creating a key needs the Owner, Administrator or Developer role.
- Name the key after what will use it. One key per consuming system makes a leak easy to contain.
- Choose only the scopes that system needs. Nothing is implied: a key can do exactly what it lists.
- Optionally set an expiry, from 1 to 730 days.
The key starts with edk_live_ and is shown once. The platform keeps only a hash, so it cannot show it to you again: if it is lost, revoke it and create another.
export EPICDIRECT_API_KEY="edk_live_…"3. Make an authenticated request#
Send the key as a bearer token. This call needs the org:read scope.
curl https://api.epic.direct/v1/organization \
-H "Authorization: Bearer $EPICDIRECT_API_KEY"{
"data": {
"object": "organization",
"id": "example",
"name": "Example Radiology",
"status": "active",
"timezone": "America/Toronto",
"country": "CA",
"modules": ["overview", "requisitions", "protocoller", "hospitals", "api", "settings"],
"created_at": "2026-11-27T14:02:11.000Z"
}
}Three response headers are worth logging on your side:
| Header | Use |
|---|---|
x-request-id | Identifies this request. Quote it when you ask about an error. |
epic-direct-version | The API version that answered, currently 2026-11-27. |
x-ratelimit-remaining | Requests left in the current minute for this key. |
4. Page through a list#
List endpoints return newest first, up to limit items (1 to 200, default 50), with a next_cursor. Pass it back as cursor to get the next page. It is null on the last page.
curl "https://api.epic.direct/v1/requisitions?status=pending&limit=50" \
-H "Authorization: Bearer $EPICDIRECT_API_KEY"const base = "https://api.epic.direct";
const headers = { authorization: `Bearer ${process.env.EPICDIRECT_API_KEY}` };
async function* requisitions(status) {
let cursor = null;
do {
const url = new URL("/v1/requisitions", base);
url.searchParams.set("status", status);
if (cursor) url.searchParams.set("cursor", cursor);
const res = await fetch(url, { headers });
if (!res.ok) throw new Error(`${res.status} ${res.headers.get("x-request-id")}`);
const page = await res.json();
yield* page.data;
cursor = page.next_cursor;
} while (cursor);
}
for await (const r of requisitions("pending")) {
console.log(r.id, r.modality, r.study, r.status);
}Without the phi:read scope, patient-identifying fields in a requisition are null and phi_included is false. Ask for that scope only when the consuming system needs to identify the patient.
5. Receive events instead of polling#
Add a webhook endpoint on the same API page and choose the events you want. Each delivery is signed, and carries identifiers and states only: your receiver fetches the detail through the API with its own key. See Webhooks.
No hospital connection yet#
You do not need one to build against the API. Two connector types produce synthetic data and need no hospital authorisation:
| Connector | What it gives you | State |
|---|---|---|
| Epic.direct Sandbox | A simulated Epic imaging protocol work queue with synthetic patients. Exercises the full retrieve → suggest → approve → submit → verify loop without touching a hospital. | Available |
| Epic.direct Sandbox PACS | A simulated reading worklist: synthetic patients and arrival times, displayed with public teaching images. For training, demonstrations and testing a viewer set-up. | Available |
Requisitions from the sandbox carry "synthetic": true in API responses, so a consumer can tell them from real ones. Imaging studies are shown in the workspace only; the API does not return them.
Where next#
- Authentication and scopes: errors, rate limits and what each scope returns.
- API reference: every endpoint with an example.
- Integrating other products: which scopes and events suit RadSuite, RadBrief, RingPilot and ShiftPilot.