# Provider Side Integration URL: https://developers.vsee.com/guides/embed-waiting-room/provider-side 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](https://developers.vsee.com/use-cases/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](https://developers.vsee.com/api/user-api/post/users/sso). The API returns the token in `data.token.token`. The examples below show it as ``. #### 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=&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=&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](https://developers.vsee.com/use-cases/provider-dedicated-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](https://developers.vsee.com/api/user-api/post/users/sso). The API returns the token in `data.token.token`. The examples below show it as ``. #### Step 2: Create a waiting room in the clinic Call [POST /rooms](https://developers.vsee.com/api/rooms-api/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](https://developers.vsee.com/api/rooms-api/post/users/%7Bid%7D/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=&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=&next=/visits/start/67258 ``` The path `/visits/start/{visit_id}` takes the provider to the visit page.