Guides
App Launch (Authorization Code + PKCE)
Use this flow when a user (clinician or patient) is present: SMART App Launch from an EHR, a standalone SMART app, or plain OpenID Connect sign-in. No client secret is required for public clients; PKCE (S256) protects the code exchange.
For system-to-system access with no user present, see Backend Services (Client Credentials) instead.
Environments
| Environment | Base URL | Default |
|---|---|---|
| Production (AU) | https://au.platform.innowell.org | Yes |
| Staging (AU) | https://au.platform-stg.innowell.dev |
Switch environments with the server selector at the top of the API Reference. CA-region hosts are planned.
The four steps
- Register (out of band). Innowell issues you a
client_id, registers yourredirect_uri(s), and grants your scopes. Confidential clients also receive aclient_secret. - Discover.
GET /.well-known/smart-configurationpublishes the authorize/token endpoints and supported scopes. - Obtain a token. Redirect the user to
/oauth/authorizewith PKCE, receive acodeon yourredirect_uri, then exchange it at/oauth/token. - Call the FHIR API with the resulting bearer token.
Flow
EHR launch addendum
For an EHR launch, first mint a launch context, then pass its id to /oauth/authorize:
POST /oauth/smart/launchwithpatient_id(the Innowell role id, not the FHIR id), authenticated with a bearer token. Returnslaunch_id. Only clinicians and lead clinicians can mint a launch context; other roles receive403 insufficient_role.- Add
launch={launch_id}andaud={fhir_base}to the/oauth/authorizerequest. - The resulting token carries a
patientvalue (FHIR patient id) in the token response.
Token request (curl)
Code
Replace $BASE_URL with your chosen environment. Tokens are RS256 JWTs; validate them
against GET /oauth/discovery/keys.
Last modified on