Prerequisites
- Valid partner credentials (partner_id, partner_secret, organization_id, organization_secret)
- Parchment SSO Integration: You must first set up Parchment SSO before implementing iframe embedding
- Your domain needs to be whitelisted in Parchment’s environments
Implementation Steps
1. Generate SSO Token with Embed Path
When generating an SSO token for iframe embedding, use the/embed/ prefix in your redirect path:
🚀 API EndpointHeaders:
x-partner-id: Your partner IDx-partner-secret: Your partner secretx-organization-id: Target organization IDx-organization-secret: Organization secretx-user-id: Parchment user ID to authenticateContent-Type: application/json
Important: The
/embed/ prefix in the redirect_path tells Parchment to render the page in iframe-optimized mode, removing navigation elements and adjusting the layout for embedded display.Available Embed Paths
| Path | Description |
|---|---|
/embed/patients/{patient_id}/prescriptions | Prescription form for a specific patient. Main entry point for creating new prescriptions. |
/embed/patients/{patient_id}/prescriptions/{prescription_id} | View or manage an existing prescription for a patient. |
/embed/prescriptions/approval | Approval dashboard for reviewing, approving, amending, or rejecting queued prescriptions. |
2. Embed in Your Application
Use the returnedredirect_url as the iframe source:
Result


