---
title: "Poll for approved device token"
method: POST
path: "/api/agent-auth/token"
---

# Poll for approved device token

`POST /api/agent-auth/token`

## Request

- Base URL: `https://goyondo.run`
- URL: `https://goyondo.run/api/agent-auth/token`
- Auth: none required

Poll every interval seconds using the device_code returned by POST /api/agent-auth/device. Treat authorization_pending as a normal in-progress state.

## Request body

- DeviceTokenRequest
  - `device_code` string, required

## Response `200`

Approved access token

- DeviceTokenResponse
  - `access_token` string
  - `token_type` string
  - `scope` string

## Other responses

- `400`: Pending, denied, expired, or invalid device code
- `500`: Failed to poll for token

---

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