What Are Scopes?
Scopes define the specific actions and resources that a token can access. They follow a pattern ofaction:resource and represent granular permissions in the Parchment API.
Available Scopes
Below are the common scopes used in the Parchment partner API:| Scope | Description | Status |
|---|---|---|
create:patient | Create new patient records | Live |
read:patient_prescription | View patient prescription data | Live |
read:patient | View patient information | Coming Soon |
update:patient | Update existing patient records | Coming Soon |
create:user | Create new user accounts | Live |
read:user | View user information | Live |
read:users | View users | Live |
update:user | Update existing user accounts | Coming Soon |
delete:user | Delete user accounts | Coming Soon |
Scope Intersection
When requesting scopes for a token, the system performs an intersection between:- The requested scopes in the token generation call
- The allowed scopes configured for the organization
Best Practices for Scopes
- Least Privilege: Request only the scopes you need for your specific operation
- Scope Separation: Generate different tokens for different operations rather than requesting all scopes at once

