Skip to content
medgridehr.comRequest a Demo

Authentication

Every request needs a bearer key created in Settings → API Keys:

Authorization: Bearer <your key>

There are two kinds of key:

Key Use it Scopes
Secret Server-side only. Shown once, at creation. Any scopes you grant
Publishable Safe to put in a web page. Always limited to write:checkout

Scopes

Scope Allows
read:patients List and get patients
read:prescriptions List and get prescriptions; list prescribers
write:prescriptions Create prescriptions; report their status
write:checkout Create checkout orders

write:patients, read:appointments and write:appointments can be selected on a key but do not unlock any endpoint yet.

Rotating and revoking. Create the new key, switch your system over, then revoke the old one in Settings → API Keys. A revoked key stops working immediately. A request with a missing, wrong or revoked key gets 401; a valid key without the needed scope gets 403.

Keys are stored hashed, so GridOS cannot show you a Secret key again. If you lose it, create a new one.

Was this page helpful?