---
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
  - `anon_refresh_token` string

## Response `200`

Successful response

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

---

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