POST
Register
Register creates a new user account and returns a JWT session token upon success.
/api.v1.auth.AuthService/Register Public01
Request
RegisterRequest
RegisterRequestapi.v1.auth.RegisterRequest3 fields
RegisterRequest contains the information required to create a new user account.
usernamestringThe desired unique username for the new account.
passwordstringThe plain-text password for the new account.
captchaResponsestringThe response token from a captcha challenge to verify the requester is human.
{
"username": "fireanime_user",
"password": "your-password",
"captchaResponse": "captcha-token"
}02
Response
AuthResponse
AuthResponseapi.v1.auth.AuthResponse2 fields
AuthResponse contains the session information returned after successful authentication.
tokenstringThe JWT (JSON Web Token) used for subsequent authenticated requests.
isAdminboolIndicates whether the authenticated user has administrative privileges.
{
"token": "eyJhbGciOiJIUzI1NiJ9…",
"isAdmin": true
}03
Error handling
Common failure codes
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.