---
title: "Polls a ludo CLI browser login; returns the CLI key once approved (Roles: none, user)"
method: POST
path: "/cli/auth/token"
tags: ["CLI"]
---

# Polls a ludo CLI browser login; returns the CLI key once approved (Roles: none, user)

`POST /cli/auth/token`

## Request body

- CliAuthPollPayload
  - `device_code` string, required

## Response `200`

Success

- CliAuthPoll
  - `status` 'pending' | 'approved' | 'denied' | 'expired'
  - `api_key` string — The CLI key, returned once on the first poll after approval.

## Other responses

- `400` — Error

## Changes

- **2026-09-26** `9fb1b21a5bec` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ludo/apis/ludo-ai-api/changes/cli/auth/token/post.md)

---

[API](https://skmtc.dev/ludo/apis/ludo-ai-api.md) · [All operations](https://skmtc.dev/ludo/apis/ludo-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ludo/apis/ludo-ai-api/revisions/a6d8dcc39b12?raw)
