---
title: "Console Cli Device"
method: GET
path: "/api/v1/console/cli/device/{user_code}"
tags: ["console"]
---

# Console Cli Device

`GET /api/v1/console/cli/device/{user_code}`

## Request

- Base URL: `https://ndi-api.nace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://ndi-api.nace.ai/api/v1/console/cli/device/{user_code}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nace/apis/ndi-service/docs/api/v1/console/cli/device/:user_code/get.ts> (a function with typed inputs; its response is checked against the schema)

Confirm the code is a live pending session, for the approve page. Never the secret.

## Path parameters

- `user_code` string, required

## Response `200`

Successful Response

- ConsoleDeviceSessionResponse: Pending session metadata for the approve page — never the API key.
  - `user_code` string, required
  - `status` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Identity rejected or account disabled.
- `404`: No console account yet — call POST /console/session first.
- `409`: Conflict
- `413`: Request Entity Too Large
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/nace/apis/ndi-service.md) - [All operations](https://skmtc.dev/nace/apis/ndi-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nace/apis/ndi-service/revisions/d9d1f8ec2207?raw)
