---
title: "Initiate CLI authentication"
method: POST
path: "/auth/cli"
tags: ["CLI Authentication"]
---

# Initiate CLI authentication

`POST /auth/cli`

Create a new CLI authentication session and return polling and login codes

## Request body

- object
  - `expires_in_millis` number

## Response `200`

Successful response

- object
  - `polling_code` string, required
  - `login_code` string, required
  - `expires_at` string, required

---

[API](https://skmtc.dev/hexclave/apis/hexclave-rest-api-3.md) · [All operations](https://skmtc.dev/hexclave/apis/hexclave-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api-3/revisions/8451fc4b3a2e/schema)
