---
title: "Cli Token"
method: POST
path: "/auth/cli/token"
tags: ["auth"]
---

# Cli Token

`POST /auth/cli/token`

Exchange a loopback one-time code (+ PKCE verifier) for a session key.

## Request body

- CliTokenRequest
  - `code` string, required
  - `code_verifier` string, required

## Response `200`

Successful Response

- CliTokenResponse
  - `token` string, required
  - `user_email` string, required
  - `conglomerate_id` string, required
  - `expires_at` string, nullable

## Other responses

- `422` — Validation Error

---

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