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

# Initiate device authorization

> Generates a device code and user code for CLI authentication. The user opens verificationUriComplete in their browser to approve.



## OpenAPI

````yaml https://platform.spritz.finance/openapi.json post /v1/device/authorize
openapi: 3.0.3
info:
  title: Spritz Finance API
  version: 1.0.0
  description: API for the Spritz Finance platform with RFC 9457 error handling
servers:
  - url: https://platform.spritz.finance
    description: Production
  - url: https://sandbox.spritz.finance
    description: Sandbox
security: []
tags:
  - name: Users
    description: User management endpoints
  - name: Bank Accounts
    description: Manage bank accounts for off-ramp destinations
  - name: Bills
    description: Manage bill pay accounts
  - name: Cards
    description: Spritz-issued debit cards
  - name: Auto-Ramp Accounts
    description: Virtual bank accounts that automatically convert fiat deposits to crypto
  - name: Spritz App
    description: >-
      Endpoints used by the Spritz app and internal SDKs. Excluded from the
      public partner spec.
paths:
  /v1/device/authorize:
    post:
      tags:
        - Device Authorization
      summary: Initiate device authorization
      description: >-
        Generates a device code and user code for CLI authentication. The user
        opens verificationUriComplete in their browser to approve.
      operationId: postV1DeviceAuthorize
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                clientId:
                  minLength: 1
                  type: string
              required:
                - clientId
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                clientId:
                  minLength: 1
                  type: string
              required:
                - clientId
          multipart/form-data:
            schema:
              type: object
              properties:
                clientId:
                  minLength: 1
                  type: string
              required:
                - clientId
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  deviceCode:
                    type: string
                  userCode:
                    type: string
                  verificationUri:
                    type: string
                  verificationUriComplete:
                    type: string
                  expiresIn:
                    type: number
                  interval:
                    type: number
                required:
                  - deviceCode
                  - userCode
                  - verificationUri
                  - verificationUriComplete
                  - expiresIn
                  - interval

````