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

# Request Device Code

> Request a device code and user code for the device authorization flow. Display the verification_uri and user_code to the user, then poll /auth/device/token until authorized.



## OpenAPI

````yaml POST /customer/v2/auth/device/code
openapi: 3.0.3
info:
  title: OrbitFlare Customer API
  description: >-
    API documentation for the OrbitFlare Customer API. This API allows
    authenticated customers to manage their licenses, whitelist IPs, reset keys,
    and retrieve associated data. Supports v1 (API key only) and v2 (Bearer
    token or API key) with extended features including device/wallet auth, API
    keys management, profile, Solana USDC balance top-up, and RPC plan
    purchasing.
  version: 2.1.0
servers:
  - url: https://orbitflare.com/api
    description: OrbitFlare Production server
security:
  - api_key: []
tags:
  - name: Auth
    description: Authentication (device flow, wallet signature, session)
  - name: Licenses
    description: License management
  - name: API Keys
    description: API key management
  - name: Profile
    description: User profile and balance
  - name: Invoices
    description: Invoice listing, detail, and balance payment
  - name: Top-Up
    description: Balance top-up via Solana USDC
  - name: RPC Plans
    description: Solana RPC plan catalog
  - name: Orders
    description: Order management (validate, purchase, list)
paths:
  /customer/v2/auth/device/code:
    post:
      tags:
        - Auth
      summary: Request Device Code
      description: >-
        Request a device code and user code for the device authorization flow.
        Display the verification_uri and user_code to the user, then poll
        /auth/device/token until authorized.
      operationId: deviceCode
      responses:
        '200':
          description: Device code created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceCodeResponse'
      security: []
components:
  schemas:
    DeviceCodeResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            device_code:
              type: string
            user_code:
              type: string
            verification_uri:
              type: string
              format: uri
            expires_in:
              type: integer
              description: Seconds until expiry
            interval:
              type: integer
              description: Polling interval in seconds
  securitySchemes:
    api_key:
      type: apiKey
      name: X-ORBIT-KEY
      in: header
      description: API key for v1 and v2 (when not using Bearer token)

````