Patient use case

Video Session

Log patient in using SSO, create an intake and walk-in visit, then redirect them directly into a video call with a provider.

Steps

  1. Step 1: Obtain patient access token

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

    Call SSO with patient details (type=200). Use ?fields=vsee to include VSee ID and token in the response.

    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_nameyesPatient's first name
    last_nameyesPatient's last name
    typeyesUser type: 200 = Patient
    emailnoPatient email address
    codeyesUnique patient identifier on your end (max 128 chars)
  2. Step 2: Create intake object

    POST /intakes · auth: User Token

    Create an intake data object to capture the reason for visit. Uses the patient's access token from Step 1.

    headers:

    FieldRequiredDescription
    X-ApiTokenyesUser access token from SSO response
    X-AccountCodeyesAccount code

    bodyFields:

    FieldRequiredDescription
    typeyesIntake type (1 = standard)
    room_codeyesRoom code for the waiting room
    reason_for_visitnoReason for visit / chief complaint
  3. Step 3: Create a walk-in visit

    POST /visits/add_walkin · auth: User Token

    Create a walk-in visit. The intake_id links the intake data from Step 2.

    headers:

    FieldRequiredDescription
    X-ApiTokenyesUser access token from SSO response
    X-AccountCodeyesAccount code

    bodyFields:

    FieldRequiredDescription
    provider_idyesVSee member ID of the provider handling this visit (auto-fills from stored Provider Member ID)
    intake_idyesIntake ID from Step 2
    room_codeyesRoom code for the waiting room
  4. Step 4: Redirect to video call

    Redirect to https://{your_clinic}.vseepreview.com/auth?sso_token={sso_token}&next=/visits/start/{visit_id}

    Redirect the patient directly into the video call/chat page for their visit.