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

# Complete CLI authentication

`POST /auth/cli/complete`

Inspect, claim, or complete a CLI authentication session

## Request body

- object
  - `login_code` string, required
  - `mode` string
  - `refresh_token` string

## Response `200`

Successful response

- object
  - `success` boolean, required

## Changes

- **2026-05-06** `e832ef1d24dc` — 2 info
  - added the new optional request property `mode`
  - the request property `refresh_token` became optional

[Change history](https://skmtc.dev/hexclave/apis/hexclave-rest-api-3/changes/auth/cli/complete/post.md)

---

[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/76ec643d488e/schema)
