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

# Poll CLI authentication status

`POST /auth/cli/poll`

Check the status of a CLI authentication session using the polling code

## Request body

- object
  - `polling_code` string, required

## Response `200`

Successful response

- object
  - `status` 'waiting' | 'success' | 'expired' | 'used', required
  - `refresh_token` string

## Other responses

- `201` — Successful response

## Changes

> 17 revisions in range; 3 could not be searched.

- **2026-05-15** `f135fd8ca8b4` — 8 warning
  - added the new `expired` enum value to the `status` response property for the response status `200`
  - added the new `expired` enum value to the `status` response property for the response status `201`
  - added the new `success` enum value to the `status` response property for the response status `200`
  - added the new `success` enum value to the `status` response property for the response status `201`
  - …4 more

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

---

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