> ## 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.

# Request Device Code

> Initiate GitHub device flow authentication

Starts the GitHub device flow. Returns a user code and verification URL for the user to visit.

### Body

**scope** `string` (default: user repo read:org workflow)

OAuth scopes to request.

### Response

**device\_code** `string`

Device code for polling.

**user\_code** `string`

Code the user enters at the verification URL.

**verification\_uri** `string`

URL where the user enters the code.

**expires\_in** `number`

Seconds until the device code expires.

**interval** `number`

Minimum polling interval in seconds.


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