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

# Device authorization page

> Better Auth serves this as JSON. A top-level browser navigation is redirected to the web app's device screen instead, so opening the URL by hand shows a page rather than a JSON blob.



## OpenAPI

````yaml /openapi.json get /auth/device
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /auth/device:
    get:
      tags:
        - Authentication
      summary: Device authorization page
      description: >-
        Better Auth serves this as JSON. A top-level browser navigation is
        redirected to the web app's device screen instead, so opening the URL by
        hand shows a page rather than a JSON blob.
      operationId: getDeviceAuthorizationPage
      parameters:
        - schema:
            type: string
            description: The device authorization user code.
          required: false
          description: The device authorization user code.
          name: user_code
          in: query
        - schema:
            type: string
            enum:
              - '1'
            description: >-
              Force a redirect to the web UI, for clients that do not send
              Sec-Fetch-* headers.
          required: false
          description: >-
            Force a redirect to the web UI, for clients that do not send
            Sec-Fetch-* headers.
          name: ui
          in: query
      responses:
        '200':
          description: Device authorization payload from Better Auth
        '302':
          description: Redirects the browser to the web app device screen
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````