> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yolocode.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Poll Device Token

> Poll for access token after device flow authorization

Poll this endpoint after the user has entered their device code at GitHub's verification URL.

### Body

**device\_code** `string` *required*

The device code from the initial request.

### Response

Returns the GitHub access token when the user has authorized, or an error if still pending.

**access\_token** `string`

GitHub access token (when authorized).

**error** `string`

`authorization_pending` if user hasn't authorized yet, `slow_down` if polling too fast.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.