---
title: "The device code an agent showed you, and the client it was issued to"
method: GET
path: "/v1/connect/device"
tags: ["account"]
---

# The device code an agent showed you, and the client it was issued to

`GET /v1/connect/device`

## Request

- Base URL: `https://api.briq.cloud`
- URL: `https://api.briq.cloud/v1/connect/device`
- Auth: none declared

## Query parameters

- `user_code` string, required

## Response `200`

ok

- object
  - `userCode` string, required
  - `expiresAt` string, required
  - `client` object, required
    - `clientId` string, required
    - `name` string, required
    - `uri` string, nullable, required
    - `icon` string, nullable, required
    - `verifiedDomain` string, nullable, required
    - `redirectHosts` string[], required
    - `local` boolean, required
  - `defaultPolicy` object, required
    - `maxConcurrentBriqs` integer
    - `dailySpendCapCents` integer
    - `allowedSizes` string[]
    - `allowedRegistries` string[]
    - `maxSleep` string: The longest sleep this credential may give a briq, "never" included ("never": no bound of its own; the environment and the plan still apply)
    - `expiresAt` string, date-time, nullable

## Other responses

- `400`: validation
- `401`: unauthorized
- `403`: forbidden
- `404`: not found

---

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