v6 documentation is incomplete, want to contribute?

Get 2FA Recovery codes

Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled.

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

GET
/auth/user/twofactorauth/otp
auth<token>

Auth Token via Cookie

In: cookie

Response Body

application/json

application/json

curl -X GET "https://api.vrchat.cloud/api/1/auth/user/twofactorauth/otp"
{
  "requiresTwoFactorAuth": [
    "string"
  ],
  "otp": [
    {
      "code": "string",
      "used": true
    }
  ]
}

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