This document explains how admin users can view care seekers through the miri web app using external care seeker IDs and API keys.
The miri web app provides a way for authenticated admin users to view care seeker profiles using external identifiers. This functionality is particularly useful for integrating with external systems that need to link to specific care seeker profiles.
https://app.miri.ai/http://app-staging.miri.ai/{baseUrl}/dashboard/external-member/{externalCareSeekerId}?apiKey={apiKey}
Production Example:
https://app.miri.ai/dashboard/external-member/{externalCareSeekerId}?apiKey={apiKey}
Staging Example:
http://app-staging.miri.ai/dashboard/external-member/{externalCareSeekerId}?apiKey={apiKey}
For external authentication with automatic authorization, use:
{baseUrl}/dashboard/external-member/{externalCareSeekerId}?apiKey={apiKey}&token={ssoToken}&provider={provider}
Production Example:
https://app.miri.ai/dashboard/external-member/user123?apiKey=abc123&token=google-sso-token&provider=google
Staging Example:
http://app-staging.miri.ai/dashboard/external-member/user123?apiKey=abc123&token=firebase-sso-token&provider=firebase
https://app.miri.ai//dashboard/external-member/{externalCareSeekerId}?apiKey={apiKey}When using external authentication, additional parameters are required:
token: SSO token from the authentication provider (Google, Firebase, Apple, etc.)provider: Authentication provider (google, firebase, apple, custom)For a care seeker with external ID user123 and API key abc123:
https://app.miri.ai/dashboard/external-member/user123?apiKey=abc123
For a care seeker with external ID john-doe-456 and API key xyz789:
https://app.miri.ai/dashboard/external-member/john-doe-456?apiKey=xyz789
For a care seeker with external ID user123 and API key abc123:
http://app-staging.miri.ai/dashboard/external-member/user123?apiKey=abc123
For a care seeker with external ID john-doe-456 and API key xyz789:
http://app-staging.miri.ai/dashboard/external-member/john-doe-456?apiKey=xyz789
For external authentication with Google SSO:
https://app.miri.ai/dashboard/external-member/patient-123?apiKey=abc123&token=google-sso-token&provider=google
For external authentication with Firebase SSO:
http://app-staging.miri.ai/dashboard/external-member/user-456?apiKey=xyz789&token=firebase-sso-token&provider=firebase
For external authentication with Apple SSO:
https://app.miri.ai/dashboard/external-member/apple-user-789?apiKey=def456&token=apple-sso-token&provider=apple
The web app uses a dynamic route at /dashboard/external-member/[id] that:
externalCareSeekerId from the URL path parameter [id]apiKey from the query string parameterstoken and provider from query string parameters (if present)When token and provider parameters are present:
useExternalAuth hook automatically processes the external authenticationThe CareSeekerView component:
externalCareSeekerId and apiKey parametersuseCareSeekerRepository().getByToken() methodThe SDK internally uses useCareSeekerAPI to make an authenticated request to:
GET /v2.0/care-seekers/get-by-id
With the following parameters:
external_uid: The external care seeker IDapi_key: The API key for authenticationinclude_logins: Set to true to include login historyskip_onboarding_check: Set to true for admin viewsOnce the care seeker data is retrieved, the web app displays:
apiKey must be valid and activeexternalCareSeekerId must correspond to an existing care seeker in the systemWhen using external authentication:
token must be a valid SSO token from the specified providerprovider must be one of the supported providers (google, firebase, apple, custom)The web app handles various error scenarios:
careSeekerId nor externalCareSeekerId is provided, an error is shownexternalCareSeekerId is provided but apiKey is missing, an error is shownExternal applications can use this URL structure to:
Healthcare providers can:
Developers can:
External systems can: