Skip to main content
POST
Poll for the developer token (RFC 8628 §3.4)

Body

Form-encoded (application/x-www-form-urlencoded, parsed flat) or a flat JSON object: at most 8 KB and 20 parameters, every value one string of at most 4,096 characters, a parameter sent twice refused (invalid_request).

grant_type
string
required
Allowed value: "urn:ietf:params:oauth:grant-type:device_code"
device_code
string
required

The device_code the first call answered.

Maximum string length: 4096
Pattern: ^tsy_dc_
client_id
enum<string>
required

The client starting the sign-in; another is invalid_client.

Available options:
tassyir-cli

Response

The developer token.

RFC 6749 §5.1: the developer token, once.

access_token
string
required

Send as Authorization: Bearer <access_token> to developer/* (nowhere else). Store it like a password.

Pattern: ^tsy_dt_[0-9A-Za-z]{43}$
token_type
string
required
Allowed value: "Bearer"
expires_in
integer
required

Seconds of idle expiry (90 days); every use extends it.

Required range: 1 <= x <= 9007199254740991
scope
string
required
Allowed value: "developer"
token_id
string
required

A Tassyir id: a string of digits.

Pattern: ^\d{1,20}$
user_id
string
required

A Tassyir id: a string of digits.

Pattern: ^\d{1,20}$
email
string
required

Who the CLI signed in as.