User API

post /me

Update current user profile

Base URL https://api.vseepreview.com/api_v3 · operationId updateMe

Authentication: User Token — Requires a user access token from login or SSO.

Update the profile of the currently authenticated user.

Parameters

NameInTypeRequiredEnumDefaultDescription
X-ApiTokenheaderstringyesAPI token (e.g. your_api_token)

Request body

Content type: application/x-www-form-urlencoded

FieldTypeRequiredEnumDescription
first_namestringno
last_namestringno
passwordstringnoSend alone for first-time password set, or with old_password to change it
old_passwordstringnoRequired when changing password
dobstringnoDate of birth (YYYY-MM-DD)
genderstringnomale, female
nationalitystringno
tosintegerno0, 10 - not accepted, 1 - accepted Terms of Service
phonestringno
street_addrstringno
statestringno2-letter state code
zipstringno
citystringno
pcp_namestringnoPrimary Care Physician Name
pcp_phonestringnoPrimary Care Physician Phone (10 digits)
timezonestringnoTimezone string (e.g. `America/New_York`, `Asia/Tokyo`)
photostringnoFile ID from POST /files API. Pass empty string to delete avatar.

Example:

{
  "password": "example_password",
  "dob": "1983-10-02",
  "nationality": "Vietnamese"
}

Responses

200 — Successful update

Update profile — Profile updated

{
  "data": {
    "id": "201",
    "first_name": "An",
    "last_name": "Nguyen",
    "username": "member-201",
    "dob": "1983-10-02",
    "email": "an+user1@vsee.com",
    "gender": 2,
    "active": true,
    "nationality": "Vietnamese",
    "tos": true
  }
}

Set first password — Password set successfully

{
  "data": {
    "id": "201",
    "first_name": "An",
    "last_name": "Nguyen",
    "active": true
  }
}

Change password — Password changed

{
  "data": {
    "id": "201",
    "first_name": "An",
    "last_name": "Nguyen",
    "active": true
  }
}

400 — Bad Request

{
  "code": 404,
  "message": "Sorry, this page is not available."
}

401 — Unauthorized

{
  "code": 404,
  "message": "Sorry, this page is not available."
}

Machine-readable: OpenAPI JSON (operationId: updateMe)