v6 documentation is incomplete, want to contribute?

Verify 2FA code

Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.

Requests made through this page are proxied through an intermediary server due to Cross-Origin Resource Sharing restrictions.

POST
/auth/twofactorauth/totp/verify
auth<token>

Auth Token via Cookie

In: cookie

codestring

Response Body

application/json

application/json

curl -X POST "https://api.vrchat.cloud/api/1/auth/twofactorauth/totp/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "string"
  }'
{
  "verified": true,
  "enabled": true
}

{
  "error": {
    "message": "\"Missing Credentials\"",
    "status_code": 401
  }
}