FIREANIME API
Browse API97 operations
POST

StartDeviceLogin

StartDeviceLogin creates a short-lived cross-device authorization request.

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

Request

StartDeviceLoginRequest

StartDeviceLoginRequestapi.v1.auth.StartDeviceLoginRequest2 fields

Start Device Login Request message.

deviceType
DeviceType

Device Type value.

deviceName
string

A short, non-authoritative label shown below the server-controlled platform name.

Request JSON
{
  "deviceType": "UNSPECIFIED",
  "deviceName": "string"
}
02

Response

StartDeviceLoginResponse

StartDeviceLoginResponseapi.v1.auth.StartDeviceLoginResponse6 fields

Start Device Login Response message.

deviceCode
string

A high-entropy secret held only by the requesting device. It must never be displayed.

userCode
string

A short code displayed on both devices for manual entry and request comparison.

verificationUri
string

Verification Uri value.

verificationUriComplete
string

Verification Uri Complete value.

expiresIn
int32

Expires In value.

interval
int32

Interval value.

Example response
{
  "deviceCode": "string value",
  "userCode": "string value",
  "verificationUri": "string value",
  "verificationUriComplete": "string value",
  "expiresIn": 1,
  "interval": 1
}
03

Error handling

Common failure codes

invalid_argumentThe request payload failed validation.

internalThe service could not complete the operation.