---
title: "Exchange Cli Device Authorization"
method: POST
path: "/v1/auth/device-token"
tags: ["Public API v1"]
---

# Exchange Cli Device Authorization

`POST /v1/auth/device-token`

## Request

- Base URL: `https://api.corvio.ai`
- URL: `https://api.corvio.ai/v1/auth/device-token`
- Auth: none declared

## Request body

- PublicCliDeviceTokenRequest
  - `device_code` string, required

## Response `200`

Successful Response

- PublicCliDeviceTokenResponse
  - `secret` string, required
  - `key_id` string, uuid, required
  - `audience` 'user' | 'workspace' | 'platform_admin', required
  - `workspace_id` string, uuid, nullable
  - `workspace_name` string, nullable
  - `scopes` string[], required
  - `expires_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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