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

# Complete CLI authentication

`POST /auth/cli/complete`

Set the refresh token for a CLI authentication session using the login code

## Request body

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

## Response `200`

Successful response

- object
  - `success` boolean, required — Always equal to true.

---

[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)
