FIREANIME API
Browse API97 operations
POST

PollDeviceLogin

PollDeviceLogin lets the requesting device wait for approval and redeem its own token.

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

Request

PollDeviceLoginRequest

PollDeviceLoginRequestapi.v1.auth.PollDeviceLoginRequest1 fields

Poll Device Login Request message.

deviceCode
string

Device Code value.

Request JSON
{
  "deviceCode": "string"
}
02

Response

PollDeviceLoginResponse

PollDeviceLoginResponseapi.v1.auth.PollDeviceLoginResponse5 fields

Poll Device Login Response message.

status
DeviceLoginStatus

Status value.

token
string

Present only after approval. This token belongs to the requesting device, not the phone.

isAdmin
bool

Is Admin value.

expiresAtUnix
int64

Expires At Unix value.

username
string

The approved account name, used by clients with local multi-account profiles.

Example response
{
  "status": "UNSPECIFIED",
  "token": "eyJhbGciOiJIUzI1NiJ9…",
  "isAdmin": true,
  "expiresAtUnix": "1",
  "username": "fireanime_user"
}
03

Error handling

Common failure codes

invalid_argumentThe request payload failed validation.

internalThe service could not complete the operation.