Provider Side Integration
The examples use the staging clinic https://vclinic.vseepreview.com/vc/next/. Replace it with your own clinic's URL.
Use case 1: Provider opens the web dashboard with an SSO token
Try it yourself in the Provider Dashboard use case.
Use case: you already sign up and manage your providers in your own provider portal. Now you want them to go to VSee Clinic for its telehealth features.
Here is how to log a provider in with an access token and redirect them.
Step 1: Get a provider access token
Call POST /users/sso. The API returns the token in data.token.token. The examples below show it as <SSO_TOKEN>.
Step 2: Redirect the provider to their dashboard
Give the provider a button or link that goes to VSee Clinic. The URL follows this pattern:
{portal_base_url}auth?sso_token={token}&next={next_url}
For example:
https://vclinic.vseepreview.com/vc/next/auth?sso_token=<SSO_TOKEN>&next=/providers/dashboard
This logs the provider in, then redirects them to https://vclinic.vseepreview.com/vc/next/providers/dashboard.
Step 2b: Redirect the provider to the video call and chat page
https://vclinic.vseepreview.com/vc/next/auth?sso_token=<SSO_TOKEN>&next=/visits/start/67258
The path /visits/start/{visit_id} takes the provider to the visit page.
Use case 2: Create a provider account with a room
Try it yourself in the Provider with Room use case.
Use case: you already sign up and manage your providers in your own provider portal, and want them to use VSee Clinic for its telehealth features. Your portal has multiple providers, and each one should have their own waiting room in VSee Clinic with their own pool of patients.
Step 1: Get a provider access token
Call POST /users/sso. The API returns the token in data.token.token. The examples below show it as <SSO_TOKEN>.
Step 2: Create a waiting room in the clinic
Call POST /rooms. The API returns the room ID and room code (data.id, data.code). If the room already exists, it returns error 400.
Step 3: Assign the new provider to the waiting room
Call POST /users/:id/rooms.
Step 4: Redirect the provider to their dashboard
The provider is now assigned to the room and can see patients from it.
Give the provider a button or link that goes to VSee Clinic. The URL follows this pattern:
{portal_base_url}auth?sso_token={token}&next={next_url}
For example:
https://vclinic.vseepreview.com/vc/next/auth?sso_token=<SSO_TOKEN>&next=/providers/dashboard
This logs the provider in, then redirects them to https://vclinic.vseepreview.com/vc/next/providers/dashboard.
Step 4b: Redirect the provider to the video call and chat page
https://vclinic.vseepreview.com/vc/next/auth?sso_token=<SSO_TOKEN>&next=/visits/start/67258
The path /visits/start/{visit_id} takes the provider to the visit page.