Provider use case

Provider with Room

Set up multiple providers with their own dedicated waiting rooms. Each provider gets their own room to accept their own pool of patients.

Steps

  1. Step 1: Obtain provider access token

    POST /users/sso · auth: API Key + Secret

    SSO the provider (type=400). Response includes data.id (user ID) for room assignment and data.token.token for redirect.

    headers:

    FieldRequiredDescription
    X-ApiKeyyesAPI Key
    X-ApiSecretyesAPI Secret
    X-AccountCodeyesAccount code

    queryParams:

    FieldRequiredDescription
    fieldsnoSet to 'vsee' to include VSee ID and token

    bodyFields:

    FieldRequiredDescription
    first_nameyesProvider's first name
    last_nameyesProvider's last name
    typeyesUser type: 400 = Provider
    emailnoProvider email address
    codeyesUnique provider identifier on your end
    subtypenoProvider subtype (e.g., 482 = Doctor, 470 = CSR)
  2. Step 2: Create a waiting room

    POST /rooms · auth: Admin Token

    Create a dedicated room. Sends X-ApiKey, X-ApiSecret, and the Clinic Admin API Token together. Slug must be unique.

    headers:

    FieldRequiredDescription
    X-AccountCodeyesAccount code
    X-ApiKeyyesAPI Key
    X-ApiSecretyesAPI Secret
    X-ApiTokenyesClinic Admin API Token from dashboard

    bodyFields:

    FieldRequiredDescription
    domainyesClinic domain (auto-fills from stored Clinic URL)
    slugyesUnique room slug/identifier — developer-defined per room
    nameyesRoom display name — developer-defined per room
  3. Step 3: Assign provider to the room

    POST /users/{id}/rooms · auth: Admin Token

    Link the room to the provider. Replace {id} with data.id from Step 1. Uses Admin Token.

    headers:

    FieldRequiredDescription
    X-ApiTokenyesClinic Admin API Token from dashboard
    X-AccountCodeyesAccount code

    pathParams:

    FieldRequiredDescription
    idyesProvider's user ID from Step 1

    bodyFields:

    FieldRequiredDescription
    codeyesRoom code from Step 2
  4. Step 4: Redirect to provider dashboard

    Redirect to https://{your_clinic}.vseepreview.com/auth?sso_token={sso_token}&next=/providers/dashboard

    Redirect the provider to their dashboard where they'll see their dedicated room.