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

# Device Token

> Poll for device code completion. Returns 202 while pending.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/auth/device/token
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/auth/device/token:
    post:
      tags:
        - auth
      summary: Device Token
      description: Poll for device code completion. Returns 202 while pending.
      operationId: auth_device_token
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceTokenRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTokenPendingResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    DeviceTokenRequest:
      properties:
        device_code:
          type: string
          title: Device Code
      type: object
      required:
        - device_code
      title: DeviceTokenRequest
      description: Request body for polling device token.
    AuthResponse:
      properties:
        api_key:
          type: string
          title: Api Key
        email:
          type: string
          title: Email
        user_id:
          type: string
          format: uuid
          title: User Id
      type: object
      required:
        - api_key
        - email
        - user_id
      title: AuthResponse
      description: Response returned after successful auth.
    DeviceTokenPendingResponse:
      properties:
        status:
          type: string
          enum:
            - pending
            - slow_down
          title: Status
      type: object
      required:
        - status
      title: DeviceTokenPendingResponse
      description: >-
        202 body while the user has not yet approved the device code; poll
        again.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.

````

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