latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Create device login ticket

Creates a new device login ticket and returns the codes and urls needed for authentication.

get/login/device

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

device_codestring required

The unique code identifying this device login request.

expires_ininteger required

Number of seconds until this request expires.

generated_atstring date-time required

When this device login request was created.

intervalinteger required

Number of seconds to wait between polling attempts.

login_urlstring required

The URL where the user should go to enter the user code.

user_codestring required

The code that the user needs to enter to authenticate.

verification_urlstring required

The URL that the device should poll to check authentication status.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateDeviceLoginTicketResponse.json"
}