---
title: "POST /auth/cli/device/start"
method: POST
path: "/auth/cli/device/start"
tags: ["Authentication"]
---

# POST /auth/cli/device/start

`POST /auth/cli/device/start`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/auth/cli/device/start`
- Auth: none declared

## Request body

- CliDeviceStartRequest
  - `client_name` string, nullable: Friendly hostname / client identifier shown in the browser approval screen. Sanitized before display.

## Response `200`

Device session created

- CliDeviceStartResponse
  - `device_code` string, required: Opaque secret the CLI polls with. Never display to a human.
  - `expires_in` integer, required: Seconds until the device_code expires.
  - `interval` integer, required: Suggested polling interval, in seconds.
  - `user_code` string, required: Short human-readable code the user types into the browser.
  - `verification_uri` string, required: Base verification URL — the CLI may display this when the pre-filled URL is too long to be useful.
  - `verification_uri_complete` string, required: `verification_uri` with `user_code` pre-filled. Open this directly.

## Other responses

- `500`: Internal server error

## Changes

- **2026-05-30** `b72341d12f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/auth/cli/device/start/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
