---
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` 'check' | 'claim-anon-session' | 'complete'
  - `refresh_token` string

## Response `200`

Successful response

- object
  - `success` boolean, 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)
