---
title: "Get Cli Token"
method: POST
path: "/api/authorize/cli-token"
tags: ["OAuth Authorization"]
---

# Get Cli Token

`POST /api/authorize/cli-token`

Get or create the user's CLI Key for Context Gateway CLI.

## Response `200`

Successful Response

- CLIKeyResponse
  - `success` boolean, required
  - `token` string, required
  - `message` string, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/compresr/apis/compresr-platform-api.md) · [All operations](https://skmtc.net/compresr/apis/compresr-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/compresr/compresr-platform-api/revisions/93ee959dfa51/schema)
