Logout
Invalidates the login session.
Authorization
authCookie Auth Token via Cookie
In: cookie
Response Body
application/json
application/json
curl -X PUT "https://api.vrchat.cloud/api/1/logout"{
"success": {
"message": "Ok!",
"status_code": 200
}
}{
"error": {
"message": "\"Missing Credentials\"",
"status_code": 401
}
}Login and/or Get Current User Info GET
This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
Cancel pending enabling of time-based 2FA codes DELETE
Cancels the sequence for enabling time-based 2FA.