partner_token in the request body of the Login and Register APIs.
Because partner_token does not identify the clinician, Bearer partners must also include provider_id in every Login and Register request. Suki uses provider_id to identify the clinician and validates it against the expression configured during onboarding.
Important
-
Bearer authentication is not the same as Single Auth Token authentication. Bearer partners send
provider_idonly during Login and Register. Single Auth Token partners include clinician identity on every subsequent API request by sendingsdp_provider_id. See Single Auth Token authentication. - A partner cannot use both Bearer authentication and Single Auth Token authentication.
- Suki assigns your authentication type during onboarding. If you are unsure whether your organization is configured as a Bearer partner, contact your Suki partnership team.
Prerequisites
Before you implement Bearer partner authentication, confirm the following:- Bearer partner configuration - Your Suki partner contact confirms that your organization is configured as a Bearer partner.
- Provider ID format - You and Suki agree on a stable provider identifier format, such as an email address or external user ID. Use the same format on every login and register call.
- HTTPS required - Send Login and Register requests as HTTPS POST requests with a JSON body. Do not send credentials in query parameters.
Common integration patterns and use cases
Use Bearer partner authentication only when Suki configured this partner type during onboarding. In each pattern, your backend supplies the active provider identity separately from the shared token.Identity Outside the Partner Token
Read the signed-in provider from your application session or identity store, then map that identity to the agreed
provider_id format in the authentication request body.No Per-User ID Token
Keep your existing shared-token model when your identity provider cannot issue a Suki-compatible per-user token. Use
provider_id as the separate provider identity.How Bearer authentication differs
Bearer partners authenticate the same way as other partners, but clinician identity is provided throughprovider_id instead of being derived from partner_token.
Bearer authentication behavior
- Login and Register identify the clinician using
provider_idinstead of per-user claims inpartner_token. - Clients, including the Web SDK, pass
provider_idfor Bearer partners. Other clients can do the same. provider_idis required and must follow the format agreed during onboarding.- Bearer partners cannot have the
READONLYpartner access level.
In Bearer partner authentication, the partner application provides the provider identity on behalf of the signed-in user. This is different from the HTTP
Authorization: Bearer header format.You still send partner_token in the JSON request body for login and register requests.Authentication workflow
For Bearer partners, Suki validatespartner_id and provider_id on Login. If the provider is not registered, call Register, then call Login again.
The flow matches standard partners after registration. Learn more about registration scenarios in Provider authentication.
Login and Register request fields
Bearer partners use the same login and register endpoints as standard partners. You must includeprovider_id on every login and register call.
Login
Endpoint: LoginMethod: POST
Example request
Register
Register a provider once before their first login. Refer to Provider authentication for new user, existing user, and conflict responses.Endpoint: RegisterMethod: POST