FIREANIME API
Browse API97 operations
POST

Login

Login authenticates a user with their credentials and returns a JWT session token.

/api.v1.auth.AuthService/Login Public
01

Request

LoginRequest

LoginRequestapi.v1.auth.LoginRequest4 fields

LoginRequest contains the credentials required to authenticate a user.

username
string

The unique username of the user.

password
string

The plain-text password of the user.

clientType
string

A bounded, non-authoritative client identifier used to label this session.

deviceName
string

A bounded, non-authoritative device label shown in session management.

Request JSON
{
  "username": "fireanime_user",
  "password": "your-password",
  "clientType": "string",
  "deviceName": "string"
}
02

Response

AuthResponse

AuthResponseapi.v1.auth.AuthResponse2 fields

AuthResponse contains the session information returned after successful authentication.

token
string

The JWT (JSON Web Token) used for subsequent authenticated requests.

isAdmin
bool

Indicates whether the authenticated user has administrative privileges.

Example response
{
  "token": "eyJhbGciOiJIUzI1NiJ9…",
  "isAdmin": true
}
03

Error handling

Common failure codes

invalid_argumentThe request payload failed validation.

internalThe service could not complete the operation.