1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Roblox.Authentication.Api.Models.UsernameValidationResponse — openapi

Properties

NameTypeRequiredDescription
codeintegerfalse['ValidUsername' = 0, 'AlreadyInUseError' = 1, 'ModerationError' = 2, 'InvalidLengthError' = 3, 'StartsOrEndsWithUnderscoreError' = 4, 'TooManyUnderscoresError' = 5, 'ContainsSpacesError' = 6, 'InvalidCharactersError' = 7, 'ContainsPiiError' = 10, 'ContainsReservedUsernameError' = 12]
messagestringfalse

Complete Schema

{
  "type": "object",
  "properties": {
    "code": {
      "format": "int32",
      "description": " ['ValidUsername' = 0, 'AlreadyInUseError' = 1, 'ModerationError' = 2, 'InvalidLengthError' = 3, 'StartsOrEndsWithUnderscoreError' = 4, 'TooManyUnderscoresError' = 5, 'ContainsSpacesError' = 6, 'InvalidCharactersError' = 7, 'ContainsPiiError' = 10, 'ContainsReservedUsernameError' = 12]",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        10,
        12
      ],
      "type": "integer"
    },
    "message": {
      "type": "string"
    }
  },
  "additionalProperties": false
}