v6 documentation is incomplete, want to contribute?

Verify Pending 2FA code

Finishes sequence for enabling time-based 2FA.

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

POST
/auth/twofactorauth/totp/pending/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/pending/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "string"
  }'
{
  "verified": true,
  "enabled": true
}

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