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

# Start Device Auth

> Begin the OAuth 2.0 Device Authorization Grant flow for OpenAI.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/oauth/openai/device/start
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/oauth/openai/device/start:
    post:
      tags:
        - OAuth
      summary: Start Device Auth
      description: Begin the OAuth 2.0 Device Authorization Grant flow for OpenAI.
      operationId: start_device_auth_v1_oauth_openai_device_start_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceStartResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeviceStartResponse:
      properties:
        device_auth_id:
          type: string
          title: Device Auth Id
        user_code:
          type: string
          title: User Code
        verification_uri:
          type: string
          title: Verification Uri
        interval:
          type: integer
          title: Interval
        expires_at:
          type: string
          title: Expires At
      type: object
      required:
        - device_auth_id
        - user_code
        - verification_uri
        - interval
        - expires_at
      title: DeviceStartResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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