---
title: "Create device login ticket"
method: GET
path: "/login/device"
---

# Create device login ticket

`GET /login/device`

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

## Response `200`

OK

- CreateDeviceLoginTicketResponse
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `device_code` string, required — The unique code identifying this device login request.
  - `expires_in` integer, required — Number of seconds until this request expires.
  - `generated_at` string, date-time, required — When this device login request was created.
  - `interval` integer, required — Number of seconds to wait between polling attempts.
  - `login_url` string, required — The URL where the user should go to enter the user code.
  - `user_code` string, required — The code that the user needs to enter to authenticate.
  - `verification_url` string, required — The URL that the device should poll to check authentication status.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/tower/apis/tower-api.md) · [All operations](https://skmtc.net/tower/apis/tower-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tower/tower-api/revisions/0e42b0fb26d9/schema)
