Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

Intakes

POST /intakes
Status
colourYellow
titleV3

Create intake information.data object

Custom parameters

Apart from the parameters below, any amount of custom JSON field-value pairs may be sent. They will all be saved into the Intake object. Later they may be displayed to the provider (please contact VSee to configure the rendering format).

Parameters

Parameter

Type

Description

provider_id

Integer

(optional) The ID of the provider who is being visited

reason_for_visit

String

(optional) Reason for visit

type

Integer

(optional) Visit type: 1 - walkin; 2 - schedule

member_id

String

(optional) Patient’s code ID on behalf of whom the intake will be created

room_code

String

Room’s code

attachments

Array

(optional) Multiple formats supported: [{id:"577af3e6-9e48-4a51-9315-2ba8c0a8210a"}, ...] or ["577af3e6-9e48-4a51-9315-2ba8c0a8210a", ...] or 577af3e6-9e48-4a51-9315-2ba8c0a8210a,577af3e6-9e48-4a51-9315-2ba8c0a8210a,...

location

String

(optional) CA/AL/...

phone

String

(optional) e.g 7123465789

Sample Request

Code Block
curl -k -X POST -d "provider=541&reason_for_visit=Test&reset=true&type=1" https://api.vseepreview.com/vc/next/api_v3/intakes.json

{
  "data": {
        "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144"
  }
}

...

Code Block
curl -k -X POST -d "provider=541&reason_for_visit=Test&reset=true&type=1" https://api.vseepreview.com/vc/next/api_v3/intakes.json

{
  "data": {
        "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144",
        "custom_is_allergic": "Yes",
        "custom_symptoms": "Rash, Red Eyes",
        "custom_symptoms_duration": "2 weeks"
  }
}

POST /intakes/:id
Status
colourYellow
titleV3

Update a selected intake informationdata object

Parameters

Parameter

Type

Description

provider_id

Integer

(optional) The ID of the provider who is being visited

reasonforvisit

String

(optional) Reason for visit

type

Integer

(optional) Visit type: 1 - walkin; 2 - schedule

member_id

String

(optional) Patient’s code ID on behalf of whom the intake will be created

room* room_code

String

Room’s code

attachments

Array

Multiple formats supported: [{id:"577af3e6-9e48-4a51-9315-2ba8c0a8210a"}, ...] or ["577af3e6-9e48-4a51-9315-2ba8c0a8210a", ...] or 577af3e6-9e48-4a51-9315-2ba8c0a8210a,577af3e6-9e48-4a51-9315-2ba8c0a8210a,...

location

String

CA/AL/...

phone

String

7123465789

consultation

Object

(optional) Required for payment related, the consultation objects can be found at GET /rooms/:code API

Response

Code Block
curl -X POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" -H "X-AccountCode: vclinic" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "location=CA" -F "phone=7123456789" -F "reason_for_visit=Test intake functionalities 2" "https://api.vseepreview.com/vc/next/api_v3/intakes/57a0705e-1c4c-4f24-b51d-3c71ac1f0144"

{
  "data": {
      "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144"
  }
}

...

GET /intakes/:id

...

Status
colourYellow
titleV3

Retrieve a selected intake data object

Parameters

None

Response

Code Block
curl -X GET \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  "https://api.vseepreview.com/vc/next/api_v3/intakes/57a0705e-1c4c-4f24-b51d-3c71ac1f0144"

{
  "data": {
    "modified": 1471465080,
    "created": 1471465080,
    "type": "1",
    "reason_for_visit": "the reason",
    "attachments": [
      {
        "_id": "57b4c65d-7ef8-461f-8951-43b1ac1f0144",
        "name": "575004c7-b350-421d-8542-4dcdac1f0144.png",
        "path": "files/2016/08/17/57b4c65d-7ef8-461f-8951-43b1ac1f0144.png",
        "size": 12859,
        "ext": "png",
        "type": 0,
        "creator_id": "575",
        "remark": null,
        "using": 1,
        "modified": {
          "sec": 1471465053,
          "usec": 966000
        },
        "created": {
          "sec": 1471465053,
          "usec": 967000
        }
      }
    ],
    "id": "57b4c678-de20-4c1a-a52b-43e9ac1f0144"
  }
}

Walkin Visits

POST /visits/add_walkin
Status
colourYellow
titleV3

Create a walkin walk-in visit

Parameters

Parameter

Type

Description

provider_id

String

(optional) The ID of the provider who is being visited if patient is starting an appointment. Shouldn’t pass this for walkins.

intake_id

String

The ID of the intake.

visit_data_id

String

The ID of a scheduled appointment. This one is used in the case when the patient visits a scheduled appointment.

visit_id

String

(optional) The ID of a scheduled appointment. This one is used in the case when the patient visits a scheduled appointment.

user_code

String

(optional) Patient’s code ID on behalf of whom the intake will be created

room_code

String

Current room’s code in which the visit will be created

Response

Code Block
curl -k -X POST \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \
  -F "provider_id=826" \
  -F "intake_id=57a0705e-1c4c-4f24-b51d-3c71ac1f0144" \
  -F "room_code=ceproom1" \
  "https://api.vseepreview.com/vc/next/api_v3/visits/add_walkin"

{
  "data": {
        "id": "1525",
        "member_id": "508",
        "provider_id": "509",
        "account_code": null,
        "code": "56e8c580f55c44a2868b66f0ac1f0144",
        "start": "1458095488",
        "end": "1458096388",
        "actual_start": null,
        "actual_end": null,
        "specialty_id": null,
        "state": null,
        "type": "1",
        "status": "10",
        "completed_by": null,
        "created": 1458095488,
        "modified": 1458095488,
        "room_id": null,
        "_id": "1525",
        "payment": {
              "duration": 15,
              "amount": "00.00",
              "description": "FruitStreet Config Level One-time charge"
        },
        "intake": {
              "provider": "509",
              "reason_for_visit": "Test intake functionalities 1",
              "type": "1",
            "modified": 1458095488,
              "created": 1458095414,
              "visit_id": "1525",
              "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144"
        },
        "provider": {
              "id": "509",
               "first_name": "Ligeng",
              "last_name": "Doctor",
              "vseeid": "wellikodev+user509",
              "title": ""
        },
        "member": {
              "id": "508",
              "first_name": "Ligeng",
              "last_name": "01",
              "vseeid": "wellikodev+user508",
              "dob": "2014-09-10",
              "gender": 1,
              "phone": "6506506500"
        },
  }
}

Asynchronous Visits

POST /visits/

...

add_econsult
Status
colourYellow
titleV3

Create an asynchronous e-consult visit. The econsult will be created without scheduling, the providers will see it on their dashboards and will need to accept it.

Parameters

Parameter

Type

Description

intake_id

String

The ID of the

visit/appointment

reason

String

  • "patient_end_call" - Patient click End Call button on VSee

  • "patient_exit_room" - Patient click Exit Waiting Room

  • "call_ended" - When call ended not by patient, could be due to network problem or provider ended the call

  • "patient_cancel_appointment" - Patient click cancel appointment button

  • "max_waiting_time_reached" - Patient side max waiting time reached

Response

...

intake

room_code

String

Room code (required)

Response

Code Block
curl --location --request POST 'https://api.vseepreview.com/vc/next/api_v3/visits/add_econsult' \
--header 'X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb"' \
-H-header "'X-AccountCode: vclinic"' \
--Hheader "Content'X-TypeApiKey: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "id=14" "https://api.vseepreview.com/vc/next/api_v3/visits/close"

{44c4d9bec884a8ca356177bebd59551d' \
--header 'Content-Type: application/json' \
--data-raw '{
   "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11",
   "room_code": "vclinic_room_code"
}'


{
   "data": {
       "incharge": false,
       "isEditExpired": false,
       "id": "152514814100",
   }
}

POST /visits/add_econsult

Create an asynchronous e-consult visit. The econsult will be created without scheduling, the providers will see it on their dashboards and will need to accept it.

Parameters

...

Parameter

...

Type

...

Description

...

intake_id

...

String

...

The ID of the intake

...

room_code

...

String

...

Room code (required)

Response

Code Block
curl --location --request POST 'https://api.vseepreview.com/vc/next/api_v3/visits/add_econsult' \
--header 'X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb' \
--header 'X-AccountCode: vclinic' \
--header 'X-ApiKey: 44c4d9bec884a8ca356177bebd59551d' \
--header 'Content-Type: application/json' \
--data-raw '{
   "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11",
   "room_code": "vclinic_room_code"
}'


{
   "data": {    "member_id": 14396847,
       "provider_id": 0,
       "account_code": "vclinic",
       "code": "6050d2e590d847429d312c8664457b11",
       "start": 1615909605,
       "inchargeend": false1615910505,
       "isEditExpiredactual_start": falsenull,
       "idactual_end": "14814100"null,
       "memberspecialty_id": 14396847null,
       "provider_idstate": 0"--",
       "account_codetype": "vclinic"3,
       "codestatus": "6050d2e590d847429d312c8664457b11"20,
       "startcompleted_by": 1615909605null,
       "endroom_id": 161591050510019500,
       "actualroom_startcode": null"vclinic_room_code",
       "actual_endmember": null, {
           "specialty_id": null"14396847",
           "statecode": "--member_01",
           "type": 3"200",
       "status": 20,
       "completed_by": null,
       "room_id": 10019500,
       "room_code": "vclinic_room_code",
       "member": {
           "id": "14396847",
           "code": "member_01",
           "type": "200",
               "subtype": "",
           "first_name": "Ligeng",
           "last_name": "Member 01",
           "full_name": "Ligeng Member 01",
           "active": true,
           "vseeid": "cmo+604ef759ccd04d859847431864457b13"
       },
       "pending_actions": [],
       "invoice": {
           "user_id": 14396847,
           "status": 10,
           "currency": "USD",
           "livemode": false,
           "amount_due": 0,
           "visit_id": "14814100",
           "modified": 1615909605,
           "created": 1615909605,
           "id": "6050d2e5-f680-4695-b284-2c8664457b11"
       },
       "creator": {
           "id": "14396847",
           "code": "member_01",
           "vseeid": "cmo+604ef759ccd04d859847431864457b13",
           "type": 200,
           "subtype": "",
           "first_name": "Ligeng",
           "last_name": "Member 01",
           "account_code": "vclinic"
       },
       "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11",
       "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11",
       "postvisit": {
           "member_id": "14396847",
           "class_id": null,
           "visit_id": "14814100",
           "modified": 1615909605,
           "created": 1615909605
       },
       "account": {
           "domain": null,
           "code": "vclinic",
           "name": "VClinic"
       },
       "room": {
           "id": "10019500",
           "code": "vclinic_room_code",
           "name": "VClinic UAT Room"
       },
       "intake": {
           "reason_for_visit": "This is to test the API",
           "question_1": "Answer 1",
           "question_2": "Answer 2",
           "location": "--",
           "modified": 1615909288,
           "created": 1615909288,
           "visit_id": "14814100",
           "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11",
           "id": "6050d1a8-b120-45b4-a568-61a664457b11"
       },
       "subtype": 4,
       "expiry": 1615924905
   }
}

Appointment API

GET /availability
Status
colourYellow
titleV3

Get provider's available slots

Parameters

Parameter

Type

Location

Description

room_code

String

Query string

(optional) Room code. If not given, will try to fall back to Intake.room

start

Integer

Query string

Search for available slots from this start time

end

Integer

Query string

Search for available slots up to this end time

duration

Integer

Query string

Search for available slots during certain seconds

provider_id

String

Query string

(optional) Pick only this provider’s slots

intake_id

String

Query string

Intake ID. Should be passed when patient is choosing a slot for an appointment. It will use intake’s location, specialty, etc.

consultation_id

String

Query string

Consultation ID. This will help to determine slot duration

X-ApiKey

String

Header

(beta) Header value is required if the application want to retrieve availablity without user token

X-ApiSecret

String

Header

(beta) Header value is required if the application want to retrieve availablity without user token

Notes: If application want to retrieve providers availability slots for a room without user token, the following are required X-ApiKeyX-ApiSecretroom_codestartendconsultation_idlocation will be required if you want to filter by state as well.

Notes: The time range parameters 'start', 'end' and 'duration' obey the following rules:

input

actual

start

end

duration

start

end

duration

1

not set

not set

not set

available

available+4d

4d

2

set

not set

not set

  1. start

  2. If 'nearest' is set, then we search for the nearest slots since the start time

  1. start+4d

  2. nearest+4d

4d

3

set

set

not set

start

end

(ignored)

4

set

not set

set

  1. start

  2. If 'nearest' is set, then we search for the nearest slots since the start time

  1. start+duration

  2. nearest+duration

duration

5

not set

set

not set

end-4d

end

4d

6

not set

set

set

end-duration

end

duration

7

not set

not set

set

available

available+duration

duration

8

set

set

set

start

end

(ignored)

(available: The start time of the 1st available slot)

...

Code Block
{
  "data": [
     {       
       "start": 1470186000,
       "end": 1470186900,
       "providers": ["123", "345"]
     },
     {
       "start": 1470186000,
       "end": 1470186900,
       "providers": ["123", "345"]
     }    
   ]           
  ]
}

POST /visits
Status
colourYellow
titleV3

Create an appointment

Parameters

Parameter

Type

Description

member_id

String

The ID of the visiting patient (optional - only use in paramedic workflow)

slot_start

Integer

The timestamp of the beginning of the appointment (in UNIX timestamp format)

slot_end

Integer

The timestamp of the ending of the appointment (in UNIX timestamp format)

room_code

String

Room code (required)

type

Integer

2 - scheduling

intake_id

String

The ID of the intake

provider_id

String

(optional) The ID of the provider who is being visited

Response

Code Block
curl -X POST \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \
  -F "member_id=575" \
  -F "slot_start=1470669300" \
  -F "slot_end=1470670200" \
  -F "type=2" \
  -F "intakeId=57a0705e-1c4c-4f24-b51d-3c71ac1f0144" \
  "https://api.vseepreview.com/vc/next/api_v3/appointments"


{
    "data": {
        "member_id": 17778181,
        "provider_id": 12456470,
        "account_code": "vclinic",
        "code": "615f2e2eabc46ad94e9b6457b11",
        "start": 1631628616,
        "end": 1631628916,
        "actual_start": 1631628211,
        "actual_end": null,
        "specialty_id": null,
        "state": null,
        "type": 2,
        "status": 30,
        "completed_by": null,
        "room_id": 1002387,
        "room_code": "vclinicroom",
        "modified": 1633630312,
        "created": 1633627694,
        "provider": {
            "id": "12456470",
            "email": "anton+providersa@vseelab.com",
            "subtype": "482",
            "vseeid": "anton+providersa@vseelab.com",
            "photo": null,
            "full_name": "Anton Provider",
            "title": "",
            "suffix": ""
        },
        "member": {
            "id": "17778181",
            "code": "anton+vclinic2@vseelab.com",
            "email": "anton+vclinic2@vseelab.com",
            "vseeid": "cmo+615f28cd70804d8994d62bd564457b11",
            "photo": null,
            "full_name": "Anton Test",
            "phone": "5551231122"
        },
        "subType": 3,
        "more_provider_ids": null,
        "guest_emails": null,
        "guest_mobiles": null,
        "reminder_type": null,
        "reminder_time": null,
        "host_ids": [
            "12456470"
        ],
        "hosts": [
            {
                "username": "anton+providersa@vseelab.com",
                "email": "anton+providersa@vseelab.com",
                "phone": "",
                "timezone": "America/Los_Angeles",
                "vseeid": "anton+providersa@vseelab.com",
                "full_name": "Anton Provider",
                "title": "",
                "suffix": "",
                "id": "12456470",
                "photo_attachment_id": "",
                "role": "owner"
            }
        ],
        "creator": {
            "id": "15729940",
            "code": "60aed4242c90409099385cef64457b11",
            "vseeid": "d55d2f77ff3653891a587fdfa83207b4@vsee.com",
            "type": 160,
            "subtype": "",
            "first_name": null,
            "last_name": null,
            "account_code": "vclinic"
        },
        "pending_actions": [],
        "is_test": false,
        "meeting": {
            "recording_auto_start": false,
            "phone_numbers": {
                "US": [
                    "+1.650.758.0255"
                ]
            },
            "hosts": [
                "anton+providersa@vseelab.com",
                "chau+provider@vseelab.com"
            ],
            "expiry": 1633643316,
            "conference_pin": 838759,
            "meeting_id": "1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"
        },
        "one_time_link_token": "l0vht6wkxj",
        "notify_list": [],
        "payment": {
            "duration": null,
            "amount": "25.00",
            "description": "Cloud Clinic Default One-time Charge Message",
            "id": "615cec5b-14c8-4493-b9ce-365764457b11"
        },
        "intake_id": "615f2de7-8ab8-48d3-80d8-53f564457b11",
        "related_walkin_id": "18407370",
        "call_logs": {
            "total_start": 1633628208,
            "total_end": 1633628268,
            "total_duration": 60,
            "waiting_time": 0,
            "provider_id_1": "anton+providersa@vseelab.com",
            "call_start_1": 1633628208,
            "call_duration_1": 60,
            "wait_time_1": 0,
            "patients": [
                "cmo+615f28cd70804d8994d62bd564457b11"
            ],
            "source": "v2",
            "source_ids": [
                "1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi",
                "1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"
            ]
        },
        "incharge": false,
        "intake": {
            "provider_id": "12456470",
            "member_id": "17778181",
            "room_code": "vclinicroom",
            "location": "MI",
            "phone": "5551234415",
            "type": "2",
            "room": "vclinicroom",
            "modified": 1633627623,
            "created": 1633627623,
            "visit_id": "18407167",
            "attachments": "",
            "reason_for_visit": "",
            "consent": "true",
            "consultation": {
                "description": "test",
                "duration": 60,
                "charge": false,
                "group": false,
                "slots": 1,
                "amount": 0,
                "visible_to_patient": true,
                "id": "615cec5b-14c8-4493-b9ce-365764457b11",
                "currency": "USD"
            },
            "id": "615f2de7-8ab8-48d3-80d8-53f564457b11"
        },
        "related_walkin": {
            "start": 1633628101,
            "end": 1633631701,
            "status": 30,
            "id": "18407370"
        },
        "postvisit": {
            "member_id": "17778181",
            "class_id": null,
            "visit_id": "18407167",
            "modified": 1633627695,
            "created": 1633627695,
            "id": "615f2e2f-c240-4088-a28b-594b64457b11"
        },
        "isEditExpired": false,
        "room": {
            "id": "10023087",
            "code": "vclinicroom",
            "name": "VClinic UAT",
            "domain": "vclinic.vseepreview.com",
            "account_code": "vclinic",
            "slug": "UAT"
        },
        "account": {
            "code": "vclinic",
            "name": "VClinic",
            "domain": "vclinic.vseepreview.com",
            "vsee_api": {
                "meeting": {
                    "enabled": true,
                    "guest_invite_enabled": true,
                    "adhoc_group_call": {
                        "disabled": true
                    }
                }
            }
        },
        "root_visit": {
            "id": "18407167",
            "group_chat_id": null,
            "participants": null
        },
        "id": "18407167",
        "subtype": 3
    },
    "s": "ms"
}

...

POST /visits

...

Get the visits list of the patient. The frontend can check the data["start"] field. If the start field is greater than the current timestamp then the visit is a upcoming appointment, otherwise it’s a past session. Group appointments and one-to-one appointments are now differentiated by the field visit_group_id which only exists in group appointments data.

For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.

The following sample response offers 2 example for one-to-one appointment and one for group appointment.

Fields that can be returned for fields with format: "html"<u>, <b>, <i>, <strong>, <ul>, <ol>, <li>, <p>, <br>

...

/close
Status
colourYellow
titleV3

Close/Cancel a visit or an appointment

Parameters

Parameter

Type

Description

id

String

The ID of the visit/appointment

reason

String

  • "patient_end_call" - Patient click End Call button on VSee

  • "patient_exit_room" - Patient click Exit Waiting Room

  • "call_ended" - When call ended not by patient, could be due to network problem or provider ended the call

  • "patient_cancel_appointment" - Patient click cancel appointment button

  • "max_waiting_time_reached" - Patient side max waiting time reached

Response

Code Block
curl -k -X GET \
 POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \   -H "X-AccountCode: vclinic" \-H   "https:Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "id=14" "https://api.vseepreview.com/vc/next/api_v3/visits.json/close"

{
  "data": [{
    {       "id": "77271525",
  }
}

POST /visits/delete
Status
colourYellow
titleV3

Force cancel a visit. You can use admin token to cancel any existing visits.

Parameters

Parameter

Type

Description

id

String

The ID of the visit/appointment

Response

Code Block
curl   "member_id": "575",
      "provider_id": "1096"--location 'https://api.vseepreview.com/vc/stable/api_v3/visits/delete' \
--header 'X-ApiToken: 614c588d4b03c60d9c6e480d14978164' \
--header 'X-AccountCode: vclinic' \
--form 'id="5010007042332"'

GET /visits
Status
colourYellow
titleV3

Get the visits list of the patient. The frontend can check the data["start"] field. If the start field is greater than the current timestamp then the visit is a upcoming appointment, otherwise it’s a past session. Group appointments and one-to-one appointments are now differentiated by the field visit_group_id which only exists in group appointments data.

For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.

The following sample response offers 2 example for one-to-one appointment and one for group appointment.

Fields that can be returned for fields with format: "html"<u>, <b>, <i>, <strong>, <ul>, <ol>, <li>, <p>, <br>

Parameters

Response

Code Block
curl -k -X GET \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  "https://api.vseepreview.com/vc/next/api_v3/visits.json"

{
  "data": [
    {
      "id": "7727",
      "member_id": "575",
      "provider_id": "1096",
      "account_code": "vclinic",
      "code": "57a07c26947c4544aeef4e5cac1f0144",
      "start": "1470669300",
      "end": "1470670200",
      "actual_start": null,
      "actual_end": null,
      "specialty_id": null,
      "state": null,
      "type": "2",
      "subtype": "3",
      "status": "20",
      "completed_by": null,
      "created": 1470135334,
      "modified": 1470135334,
      "room_id": null,
      "_id": "7727",
      "payment": {
        "duration": null,
        "amount": "0.00",
        "description": "CMO Config Level One-time charge"
      },
      "accountinvoice_codeid": "vclinic57a071d0-c0dc-45a6-9bc3-40fdac1f0144",
      "code"provider": {
        "id": "57a07c26947c4544aeef4e5cac1f01441096",
        "startcode": "1470669300563b40f082584368bee10335ac1f0144",
        "endfirst_name": "1470670200Anton",
        "actuallast_startname": "Provider nullIII",
        "actual_endusername": null,"anton+provider3@vsee.com",
        "specialty_idvseeid": null, "conciergedev+user1096",
        "stateemail": null"anton+provider3@vsee.com",
        "typephoto": "2https://api.vseepreview.com/vc/next/api_v3/files/index/app_user/photo/1096/?auth_code=8350f279578774a6e31787fc5a5a05d2948770e0",
        "subtypeactive": "3"true,
        "statustitle": "20",
        "completed_bysuffix": null"",
        "createdtos": 1470135334true,
        "modifiedphone": 1470135334,"(334) 229-4100",
        "room_idsubtype": null,"482"
      "_id": "7727"},
      "paymentmember": {
        "durationid": null"575",
        "amountcode": "0.00553ea41edfd041bd94475276ac1f0144",
        "descriptionfirst_name": "CMOKeven2",
 Config Level One-time charge"    "last_name": "Teodoro2",
 },       "invoice_idusername": "57a071d0-c0dc-45a6-9bc3-40fdac1f0144anton+1@vsee.com",
        "providervseeid": {"conciergedev+user575",
        "iddob": "10961983-02-02",
        "codeemail": "563b40f082584368bee10335ac1f0144anton+1@vsee.com",
        "first_namegender": "Anton"2,
        "last_nameactive": "Provider III"true,
        "usernametos": "anton+provider3@vsee.com"true,
        "vseeidphone": "conciergedev+user10967123456111",
        "emailsubtype": "anton+provider3@vsee.com","
      }
    },
    "photopostvisit": {
      "https://api.vseepreview.com/vc/next/api_v3/files/index/app_user/photo/1096/?auth_code=8350f279578774a6e31787fc5a5a05d2948770e0visit_id": "9709",
      "modified": 1473370072,
"active      "created": true1473368099,
        "titlemember_id": "1290",
        "suffixmodifiedBy": "Alexey Provider 2",
      "draft": false,
      "tosattachments": true[],
        "phonephysical_exam": "(334) 229-4100",
<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>",
       "subtypeassessment_plan": "482"<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>",
       }"reason_for_visit": "Allergic reaction",
      "memberreason_for_visit_other": {"",
        "idschema": "575",
        "codediagnosis": "553ea41edfd041bd94475276ac1f0144"Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)",
      "firstpatient_nameinstructions": "Keven2<p>Plan \/ Discharge...<br><\/p>",
 
      "last_namedisposition": "Teodoro2Referred to ED",
        "usernamedea": "anton+1@vsee.com",
        "vseeidnpi": "conciergedev+user575",
    }
   "dob": "1983-02-02",
        "email": "anton+1@vsee.com",
        "gender": 2,
        "active": true,
        "tos": true,}

GET /visits/:id
Status
colourYellow
titleV3
and Sample Visit Object

Get detailed information for a certain appointment.

Group appointments and one-to-one appointments are now differentiated by the field "visitgroupid" which only exists in group appointments data.

For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.

Parameters

None

Response

Code Block
curl -k -X GET \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  "https://api.vseepreview.com/vc/next/api_v3/visits/7727.json"

{
    "data": {
        "phonemember_id": "7123456111"17778181,
        "subtypeprovider_id": ""
      }
    }12456470,
    "postvisit": {       "visitaccount_idcode": "9709vclinic",
        "modifiedcode": 1473370072,
      "created": 1473368099,"615f2e2eabc46ad94e9b6457b11",
        "member_idstart": "1290"1631628616,
        "modifiedByend": "Alexey1631628916,
Provider 2",       "draftactual_start": false1631628211,
        "attachmentsactual_end": []null,
        "physicalspecialty_examid": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>"null,
        "assessment_planstate": "<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>"null,
      "reason_for_visit  "type": "Allergic reaction",2,
        "reason_for_visit_otherstatus": ""30,
        "schemacompleted_by": ""null,
        "diagnosisroom_id": "Allergic reaction1002387,initial
encounter (T78.40XA),Asthma (J45.909)",       "patientroom_instructions": "<p>Plan \/ Discharge...<br><\/p>code": "vclinicroom",
        "dispositionmodified": "Referred1633630312,
to ED",       "deacreated": ""1633627694,
        "npiprovider": "" {
         } }  

GET /visits/:id

Get detailed information for a certain appointment.

Group appointments and one-to-one appointments are now differentiated by the field "visitgroupid" which only exists in group appointments data.

For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.

Parameters

None

Response

Code Block
curl -k -X GET \
  -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  "https://api.vseepreview.com/vc/next/api_v3/visits/7727.json"

{"id": "12456470",
            "email": "anton+providersa@vseelab.com",
            "datasubtype": {"482",
            "member_idvseeid": 17778181"anton+providersa@vseelab.com",
        "provider_id    "photo": 12456470null,
            "accountfull_codename": "vclinicAnton Provider",
            "codetitle": "615f2e2eabc46ad94e9b6457b11",
            "startsuffix": 1631628616,""
        "end": 1631628916},
        "actual_startmember": 1631628211, {
            "actual_endid": null"17778181",
            "specialty_idcode": null,"anton+vclinic2@vseelab.com",
            "stateemail": null"anton+vclinic2@vseelab.com",
            "typevseeid": 2,"cmo+615f28cd70804d8994d62bd564457b11",
            "statusphoto": 30null,
            "completedfull_byname": null"Anton Test",
        "room_id    "phone": 1002387,"5551231122"
        "room_code": "vclinicroom"},
        "modifiedsubType": 16336303123,
        "createdmore_provider_ids": 1633627694null,
        "providerguest_emails": {null,
            "id"guest_mobiles": "12456470"null,
 
          "emailreminder_type": "anton+providersa@vseelab.com",
   null,
        "subtypereminder_time": "482"null,
            "vseeid"host_ids": "anton+providersa@vseelab.com",[
            "photo": null,12456470"
        ],
        "full_namehosts": "Anton Provider",[
            {
  "title": "",             "suffixusername": "anton+providersa@vseelab.com",
        },        "email": "member": {anton+providersa@vseelab.com",
                "idphone": "17778181",
                "codetimezone": "anton+vclinic2@vseelab.comAmerica/Los_Angeles",
                "emailvseeid": "anton+vclinic2@vseelabprovidersa@vseelab.com",
             "vseeid   "full_name": "cmo+615f28cd70804d8994d62bd564457b11Anton Provider",
                "phototitle": null"",
                "full_namesuffix": "Anton Test",
                "phoneid": "555123112212456470",
        },         "subTypephoto_attachment_id": 3"",
 
      "more_provider_ids": null,         "guest_emailsrole": "owner"
 null,         "guest_mobiles": null, }
       "reminder_type": null ],
        "reminder_timecreator": null, {
            "host_idsid": ["15729940",
            "12456470code": "60aed4242c90409099385cef64457b11",
       ],         "hostsvseeid": ["d55d2f77ff3653891a587fdfa83207b4@vsee.com",
            {
"type": 160,
               "usernamesubtype": "anton+providersa@vseelab.com",
   
            "emailfirst_name": "anton+providersa@vseelab.com",
 null,
              "phonelast_name": ""null,
                "timezone"account_code": "America/Los_Angelesvclinic",
        },
        "vseeidpending_actions": "anton+providersa@vseelab.com"[],
        "is_test": false,
      "full_name": "Anton Provider",   "meeting": {
            "titlerecording_auto_start": "",
   false,
            "suffixphone_numbers": "",{
                "idUS": "12456470", [
                   "photo_attachment_id": "",+1.650.758.0255"
                "role": "owner"]
             },
        ],    "hosts":  [
  "creator": {             "id": "15729940",anton+providersa@vseelab.com",
               "code": "60aed4242c90409099385cef64457b11chau+provider@vseelab.com",
            "vseeid": "d55d2f77ff3653891a587fdfa83207b4@vsee.com"],
            "typeexpiry": 1601633643316,
            "subtypeconference_pin": ""838759,
            "firstmeeting_nameid": null,
  "1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"
         "last_name": null},
            "account_code"one_time_link_token": "vclinicl0vht6wkxj",
        }"notify_list": [],
        "pending_actionspayment": [], {
            "is_testduration": falsenull,
            "meetingamount": {"25.00",
            "recording_auto_startdescription": false "Cloud Clinic Default One-time Charge Message",
            "phone_numbersid": { "615cec5b-14c8-4493-b9ce-365764457b11"
        },
        "USintake_id": ["615f2de7-8ab8-48d3-80d8-53f564457b11",
          "related_walkin_id": "18407370",
         "+1.650.758.0255"
"call_logs": {
            "total_start": 1633628208,
 ]             }"total_end": 1633628268,
            "hoststotal_duration": [60,
                "anton+providersa@vseelab.com""waiting_time": 0,
                "chau+provider@vseelab"provider_id_1": "anton+providersa@vseelab.com",
             ]"call_start_1": 1633628208,
            "expirycall_duration_1": 163364331660,
            "conferencewait_time_pin1": 8387590,
            "meeting_idpatients": "1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"[
        },         "one_time_link_token": "l0vht6wkxj","cmo+615f28cd70804d8994d62bd564457b11"
           "notify_list": [],
     
  "payment": {             "durationsource": null"v2",
            "amountsource_ids": "25.00",[
            "description": "Cloud Clinic Default One-time Charge Message", "1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi",
               "id": "615cec5b-14c8-4493-b9ce-365764457b11"
 1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"
            ]
        },
        "intake_idincharge": "615f2de7-8ab8-48d3-80d8-53f564457b11"false,
        "related_walkin_idintake": "18407370",{
            "callprovider_logsid": {"12456470",
            "totalmember_startid": 1633628208"17778181",
            "totalroom_endcode": 1633628268"vclinicroom",
            "total_durationlocation": 60"MI",
            "waiting_timephone": 0"5551234415",
            "provider_id_1type": "anton+providersa@vseelab.com2",
            "call_start_1room": 1633628208"vclinicroom",
            "call_duration_1modified": 601633627623,
            "wait_time_1created": 01633627623,
            "patientsvisit_id": ["18407167",
                "cmo+615f28cd70804d8994d62bd564457b11""attachments": "",
            ] "reason_for_visit": "",
            "sourceconsent": "v2true",
            "source_idsconsultation": [{
                 "1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"description": "test",
                "1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi"
duration": 60,
           ]
     "charge": false,
       },         "inchargegroup": false,
        "intake": {             "provider_id"slots": "12456470"1,
             "member_id   "amount": "17778181",0,
                "roomvisible_to_codepatient": "vclinicroom"true,
                "locationid": "MI615cec5b-14c8-4493-b9ce-365764457b11",
                "phonecurrency": "5551234415USD",
            "type": "2"},
            "roommedical_profile": "vclinicroom",{
              "modified_id": 1633627623"553ea41ef468747652d11034",
              "createduser_id": 1633627623"575",
              "visitfamily_idconditions": "18407167", {
                "attachmentsdata": "",[
            "reason_for_visit": "",     {
       "consent": "true",             "consultationcondition": { "Diabetes",
                   "description": "testrelations",: [
               "duration": 60,      "Paternal grandparents"
         "charge": false,          ]
      "group": false,           },
     "slots": 1,            {
    "amount": 0,                 "visible_to_patientcondition": true,"Ulcer disease",
                    "idrelations": "615cec5b-14c8-4493-b9ce-365764457b11", [
                     "currency": "USDMother"
            },        ]
    "medical_profile": {             }
 "_id": "553ea41ef468747652d11034",               "user_id": "575",],
                "family_conditionsmodified": {1467623311,
                "datamodifiedBy": ["Keven Teodoro"
                 {
  },
                 "conditionconditions": "Diabetes",
    {
                "relationsdata": [
                  {
   "Paternal grandparents"                "condition":     ]"Kidney disease"
                  },
                  {
                    "condition": "UlcerKidney diseasestones",
                  },
 "relations": [                {
      "Mother"                "condition": "Stroke"
    ]                   }
                ],
                "modified": 14676233111472059195,
                "modifiedBy": "KevenKeven2 TeodoroTeodoro2"
              },
              "conditionssocial_history": {
                "data": [],
                "modified": 1472588123,
{                     "conditionmodifiedBy": "KidneyKeven2 disease"
                  }Teodoro2",
                "modified_by":  {
                    "conditionid": "575"Kidney,
stones"                  "type": }200,
                  {
 "subtype": "",
                  "condition": "Stroke"
           first_name": "Keven2",
      }               "last_name": "Teodoro2",
 ],                 "modifiedphoto": 1472059195,""
                "modifiedBy": "Keven2 Teodoro2"
 }
              },
              "socialhealth_historyhabits": {
                "data": [],
                "modified": 14725881231470128370,
                "modifiedBy": "Keven2 Teodoro2",
                "modified_by": {
 },
                "idsurgeries": "575",{
                  "typedata": 200,[
                  {
"subtype": "",                   "first_nameprocedure": "Keven2C-section",
                  "last_name": "Teodoro2"},
                  "photo": ""{
                 }   "procedure": "Heart valve replaced"
        },               "health_habits": {}
                 "data": [],
                "modified": 14701283701471769856,
                "modifiedBy": "Keven2 Teodoro2"
              },
              "surgeriesmedications": {
                "data": [
   ],
              {  "modified": 1471769958,
                 "proceduremodifiedBy": "C-section"Keven2 Teodoro2",
                "modified_by": {
},                   {
 "id": "575",
                  "proceduretype": "Heart200",
valve replaced"                 "subtype": "",
}                   ]"first_name": "Keven2",
                  "modifiedlast_name": 1471769856,"Teodoro2"
                "modifiedBy": "Keven2 Teodoro2"}
                },
              "medicationsallergies": {
                "data": [],
                "modified": 14717699581471986123,
                "modifiedBy": "Keven2 Teodoro2",
                "modified_by": {
                  "id": "575",
                  "type": "200",
                  "subtype": "",
                  "first_name": "Keven2",
                  "last_name": "Teodoro2"
                }
              },
              "allergies": {
   
            "data": [],   }
             "modified": 1471986123},
                "modifiedBymodified": "Keven2 Teodoro2",{
                "modified_bysec": {1472059195,
                  "idusec": "575",806000
                  "type": "200",
   },
              "subtypecreated": "",{
                  "first_namesec": "Keven2"1430168606,
 
                "last_nameusec": "Teodoro2"596000
                }
              },
             "id": "modified": {615f2de7-8ab8-48d3-80d8-53f564457b11"
        },
        "secrelated_walkin": 1472059195,
{
               "usecstart": 8060001633628101,
              },
 "end": 1633631701,
            "createdstatus": {30,
                "sec": 1430168606,"id": "18407370"
         },
        "usecpostvisit": 596000{
            "member_id": "17778181",
}             }"class_id": null,
            "visit_id": "615f2de7-8ab8-48d3-80d8-53f564457b11"
 18407167",
      },         "related_walkinmodified": {1633627695,
            "startcreated": 16336281011633627695,
            "endid": 1633631701,"615f2e2f-c240-4088-a28b-594b64457b11"
        },
        "statuspostvisit": 30,{
            "visit_id": "184073709709",
        },   "modified": 1473370072,
          "postvisitcreated": {1473368099,
            "member_id": "177781811290",
            "class_idmodifiedBy": null,"Second Provider 2",
          "visit_iddraft": "18407167"false,
 
          "modifiedattachments": 1633627695[],
            "created": 1633627695"physical_exam": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>",
            "idassessment_plan": "615f2e2f-c240-4088-a28b-594b64457b11"
        },<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>",
          "postvisitreason_for_visit": {"Allergic reaction",
          "reason_for_visit_idother": "9709",
          "modifiedschema": 1473370072"",
          "createddiagnosis": 1473368099 "Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)",
          "memberpatient_idinstructions": "1290<p>Plan \/ Discharge...<br><\/p>",
          "modifiedBydisposition": "SecondReferred Providerto 2ED",
          "draftdea": false"",
          "attachmentsnpi": []"",
          "physical_examattachments": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>", [
            {
 "assessment_plan": "<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>",             "reason_for_visitid": "Allergic reaction",57e4f034-3a0c-4b1d-bc15-221bac1f0144",
              "reason_for_visit_othername": "Water_nature_canyon_cliffs_horseshoe_bend_rivers_2560x1600.jpg",
              "schemapath": "files/2016/09/23/57e4f034-3a0c-4b1d-bc15-221bac1f0144.jpg",
              "diagnosissize": "Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)",1692776,
              "patient_instructionsext": "<p>Plan \/ Discharge...<br><\/p>",jpg",
              "dispositiontype": "Referred to ED",0,
              "deacreator_id": "1096",
              "npiremark": ""null,
              "attachmentsusing": [1,
              "modified": {
                "_idsec": "57e4f034-3a0c-4b1d-bc15-221bac1f0144"1474621492,
                "nameusec": "Water_nature_canyon_cliffs_horseshoe_bend_rivers_2560x1600.jpg",858000
              "path": "files/2016/09/23/57e4f034-3a0c-4b1d-bc15-221bac1f0144.jpg"},
              "sizecreated": 1692776,{
                "extsec": "jpg"1474621492,
                "typeusec": 0,858000
              }
  "creator_id": "1096",          }
      "remark": null,   ]
        },
  "using": 1,     "isEditExpired": false,
        "modifiedroom": {
                "secid": 1474621492,
   "10023087",
            "useccode": 858000"vclinicroom",
            "name": "VClinic }UAT",
              "createddomain": {
   "vclinic.vseepreview.com",
            "secaccount_code": 1474621492"vclinic",
            "slug": "UAT"
  "usec": 858000      },
        }"account": {
           } "code": "vclinic",
        ]    "name": "VClinic",
   },         "isEditExpireddomain": false,"vclinic.vseepreview.com",
            "roomvsee_api": {
                "idmeeting": "10023087",{
            "code": "vclinicroom",       "enabled": true,
    "name": "VClinic UAT",                "domainguest_invite_enabled": "vclinic.vseepreview.com"true,
            "account_code": "vclinic",        "adhoc_group_call": {
     "slug": "UAT"         },         "accountdisabled": {
  true
         "code": "vclinic",          }
  "name": "VClinic",             "domain": "vclinic.vseepreview.com",}
             "vsee_api": {}
        },
        "meetingprescriptionsBeforeVisit": [
{          {
            "enabledID": true"97316",
            "DrugID": "69117",
      "guest_invite_enabled": true,     "NDC": "00122206038",
            "RxNormCode":  "adhoc_group_call": {260654",
            "Drug": "One Tab Daily with Iron oral tablet",
     "disabled": true      "Supply": false,
             }"Compound": false,
            "Directions": "1 Milliliter(s) 1 }to 2 times a day",
        }    "Qty": 60,
   },         "prescriptionsBeforeVisitQtyQual": ["Tablet",
            {"Refills": 0,
            "IDDaysSupply": "97316"0,
            "DrugIDSubstitutionAllowedFlag": "69117"1,
            "NDCSchedule": "00122206038"0,
            "RxNormCodePharmacyNote": "260654",
            "DrugInternalNote": "One Tab Daily with Iron oral tablet",
            "SupplyPrescriberId": false"826",
            "CompoundLocationId": false"DEMO-ACCOUNT",
            "DirectionsPrescriptionDate": "1 Milliliter(s) 1 to 2 times a day2016-01-30T00:00:00",
            "QtySignDate": 60"0001-01-01T00:00:00",
            "QtyQualStatus": "TabletCurrent",
            "RefillsPharmacyNcpdpId": 0"0001060",
            "DaysSupplyRouteDetail": 0,
            "SubstitutionAllowedFlag": 1"e-Sent:Jan 30 2016  3:41PM Test 000 Pharmacy 10.6MU<br />Sent",
            "SchedulePartnerMedID": 0"",
            "PharmacyNotePrescriberName": "",Dr. John Will, M.D."
         "InternalNote": "" },
            "PrescriberIdprescriptions": "826",
  [],

        "LocationIdroot_visit": "DEMO-ACCOUNT",{
            "PrescriptionDateid": "2016-01-30T00:00:0018407167",
            "SignDategroup_chat_id": "0001-01-01T00:00:00"null,
            "Statusparticipants": "Current",null
        },
        "PharmacyNcpdpIdid": "000106018407167",
            "RouteDetailsubtype": "e-Sent:Jan 30 2016  3:41PM Test 000 Pharmacy 10.6MU<br />Sent",
            "PartnerMedID": "",
            "PrescriberName": "Dr. John Will, M.D."
          },
        "prescriptions": [],3
    }
}

POST /visits/:id?version=2
Status
colourYellow
titleV3

Update an appointment

Parameters

Parameter

Type

Description

slot_start

Integer

(optional) The timestamp of the beginning of the appointment (in UNIX timestamp format)

slot_end

Integer

(optional) The timestamp of the ending of the appointment (in UNIX timestamp format)

provider_id

String

(optional) The ID of the provider who is being visited

Add provider into a TDB visit

Please supply new provider_id

Response

Code Block
curl -X POST \
  -H "X-ApiToken: 5a2eb231d652b49f88880fbb78328fb" \
  -H "X-AccountCode: vclinic" \
  -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \
  -F "provider_id=566" \
  "https://api.vseepreview.com/vc/next/api_v3/visits/666?version=2"


{
    "data": {
         "rootmember_visitid": {567,
            "provider_id": "18407167",
   566,
        "groupaccount_chat_idcode": null,
   "vclinic",
        "participantscode": null"615f2e2eabc46ad94e9b6457b11",
        }"start": 1631628616,
        "idend": "18407167"1631628916,
        "subtype": 3...
     }
}

POST /visits/:id?version=2

...

Remove provider from an appointment

Parameters

...

Parameter

...

Type

...

Description

...

slot_start

...

Integer

...

(optional) The timestamp of the beginning of the appointment (in UNIX timestamp format)

...

slot_end

...

Integer

...

(optional) The timestamp of the ending of the appointment (in UNIX timestamp format)

...

provider_id

...

String

...

(optional) The ID of the provider who is being visited

Add provider into a TDB visit

Please supply new provider_idDo the same as above but this time set provider_id to 0

GET /visits/current
Status
colourYellow
titleV3

Get current visit in progress

Parameters

None

Response

Code Block

curl -X POSTGET \
  -H "X-ApiToken: 5a2eb231d652b49f88880fbb78328fb6366a7018a39536a1ef4b63626f8e734" \
  https://api.vseepreview.com/vc/next/api_v3/visits/current.json

{
  "data": {
  -H      "X-AccountCodeid": vclinic" \"1504",
       -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \
  -Fmember_id": "508",
        "provider_id=566" \: "509",
        "account_code"https://api.vseepreview.com/vc/next/api_v3/visits/666?version=2": "fruitstreet",
  {      "datacode": "56e7b1d2b90c4d68953e3d02ac1f0144",
{         "member_idstart": 567"1459973100",
        "provider_idend": 566"1459974000",
        "accountactual_codestart": "vclinic"null,
        "codeactual_end": "615f2e2eabc46ad94e9b6457b111458024955",
        "startspecialty_id": 1631628616null,
        "endstate": 1631628916null,
        ...
    }
}

Remove provider from an appointment

Do the same as above but this time set provider_id to 0

GET /visits/current

Get current visit in progress

Parameters

None

Response

Code Block

curl -X GET \
  -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" \
  https://api.vseepreview.com/vc/next/api_v3/visits/current.json

{
  "data": {"type": "2",
        "status": "40",
        "completed_by": "508",
        "idcreated": "1504"1458024914,
        "member_idmodified": "508"1458024914,
        "providerroom_id": "509"null,
        "account_codeid": "fruitstreet1504",
        "codepayment": "56e7b1d2b90c4d68953e3d02ac1f0144",{
              "startduration": "1459973100"15,
        "end      "amount": "145997400000.00",
              "actual_startdescription": null,
"FruitStreet Config Level One-time charge"
       "actual_end": "1458024955" },
        "specialty_idintake": null, {
              "stateprovider": null,"509",
              "typereason_for_visit": "2Test intake functionalities",
              "statusreset": "40true",
          "completed_by    "type": "5081",
 ,
      "created": 1458024914,         "modified": 1458024914,
        "room_id      "created": null1458024708,
              "visit_id": "1504",
        "payment": {     "id": "56e7b104-ded0-4096-979b-395bac1f0144"
        "duration": 15,
  },
           "amountprovider": "00.00",{
              "descriptionid": "FruitStreet Config Level One-time charge"509",
        },         "intake"first_name": {"Ligeng",
              "providerlast_name": "509Doctor",
              "reason_for_visitusername": "Test intake functionalitiesligeng+provider1@vsee.com",
              "resetvseeid": "truewellikodev+user509",
              "typeemail": "1ligeng+provider1@vsee.com",
              "modifiedactive": 1458024914true,
              "createdtitle": 1458024708"",
              "visit_idtos": "1504"false,
              "idphone": "56e7b104-ded0-4096-979b-395bac1f01446506506500"
        },
        "providermember": {
              "id": "509508",
              "first_name": "Ligeng",
              "last_name": "Doctor01",
              "username": "ligeng+provider1@vsee1@vsee.com",
              "vseeid": "wellikodev+user509user508",
              "dob": "2014-09-10",
              "email": "ligeng+provider1@vsee1@vsee.com",
              "activegender": true1,
              "titleactive": ""true,
              "tos": falsetrue,
              "phone": "6506506500"
        },
  }
}


Visit export

GET /visits/:id/exports/visit_summary
Status
colourYellow
titleV3

Retrieve PDF visit summary

Code Block
breakoutModewide
curl  "member": {
         --location 'https://api-vclinic.vseepreview.com/vc/stable/api_v3/visits/1000000/exports/visit_summary' \
--header 'X-ApiToken: ******' \
--header 'X-AccountCode: vclinic' 

OK 200
{
    "iddata": "508",{
              "first_name"url": "Ligeng",https://clinic.vsee.me/visits/exports/d6880792f1fa01****"
    }
         "last_name": "01",
              "username": "ligeng+1@vsee.com",
              "vseeid": "wellikodev+user508",
              "dob": "2014-09-10",
              "email": "ligeng+1@vsee.com",
              "gender": 1,
              "active": true,
              "tos": true,
              "phone": "6506506500"
        }
  }
}


}

Understanding Visit object ID

There is a unique Visit.id field for every Visit object.

However some visits may be related to each other, following these rules:

Field

Sample

Meaning

id

"id": "1504"

Unique visit ID

related_appointment_id

"related_appointment_id": "2504"

When an appointment is started, a new visit object of type walkin is created. The relation to the original appointment ID is stored in this field.

related_walkin_id

"related_walkin_id": "1504"

When an appointment is started, a new visit object of type walkin is created. It’s ID is appended to the original appointment’s Visit object.

adhoc_visit_id

"adhoc_visit_id": "3504"

invite_id

"invite_id": "4504"

When a user is invited into an appointment call, the inviting appointment ID is stored here.

root_visit

"root_visit": {

"id": "18407167",

group_chat_id": null,

participants": null

}