Skip to content

Check Username Available

GET
/api/auth/username-available/{username}
curl --request GET \
--url https://example.com/api/auth/username-available/example \
--header 'Authorization: Bearer <token>'

Check if a username is available (case-insensitive).

username
required
Username
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}