---
title: "Poll for the sign-in session (RFC 8628 token endpoint)"
method: POST
path: "/agent/v1/control-plane/cli/device/token"
tags: ["Console"]
---

# Poll for the sign-in session (RFC 8628 token endpoint)

`POST /agent/v1/control-plane/cli/device/token`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/agent/v1/control-plane/cli/device/token`
- Auth: none declared

Public; the device_code is the credential. On approval returns { control_plane_session_token, token_type, expires_in, absolute_expires_at, email, wallets[] } (single-use). Otherwise an RFC-8628 error body { error } at HTTP 400: authorization_pending | slow_down | access_denied | expired_token.

## Request body

- object
  - `device_code` string, required

## Response `200`

{ control_plane_session_token, ... } on approval.

- object

## Other responses

- `400`: RFC 8628 error body { error }.

---

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