---
title: "Initiate device login flow via WorkOS CLI auth"
method: POST
path: "/device-auth/initiate"
---

# Initiate device login flow via WorkOS CLI auth

`POST /device-auth/initiate`

## Request body

- object

## Response `200`

OK

- object
  - `deviceCode` string, required — Device code for polling
  - `userCode` string, required — User code displayed to the user
  - `verificationUri` string, required — URI the user should visit to authenticate
  - `verificationUriComplete` string, required — URI with the user code pre-filled for one-click authentication
  - `expiresIn` number, required — Seconds until the codes expire
  - `interval` number, required — Polling interval in seconds

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/trunk/apis/trunk-apis.md) · [All operations](https://skmtc.net/trunk/apis/trunk-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trunk/trunk-apis/versions/f7b911d8e24c/schema)
