Skip to content

Instantly share code, notes, and snippets.

@cnlohr
Created July 5, 2021 01:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnlohr/f19d2d83eee66e1c49739163ad99ec89 to your computer and use it in GitHub Desktop.
Save cnlohr/f19d2d83eee66e1c49739163ad99ec89 to your computer and use it in GitHub Desktop.
2021 How to authenticate with the VRChat API
$ echo -n "username:password" | base64
$ echo -e "api.vrchat.cloud\tFALSE\t/\tFALSE\t0\tapiKey\tJlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26" > cookiejar.txt
$ curl -b cookiejar.txt -c cookiejar.txt -A "WorldMon" -H "Authorization: Basic ########################" https://api.vrchat.cloud/api/1/auth/user
{"requiresTwoFactorAuth":["totp","otp"]}
$ curl -X 'POST' \
'https://api.vrchat.cloud/api/1/auth/twofactorauth/totp/verify' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-b cookiejar.txt -c cookiejar.txt \
-d '{
"code": "######"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment