Patient use case

Guest Invite

Create a guest invite link to a video call. The patient SSOs in, creates an intake and walk-in visit, then uses the visit code to generate a shareable invite link.

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 response includes data.code — a unique visit code used for the invite link.

    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
  4. Step 4: Build guest invite link

    Redirect to https://{your_clinic}.vseepreview.com/visits/join/{visit_code}

    Use data.code from the visit response (not data.id) to build the invite link. No authentication is required to join via this link.