> ## 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.

# Poll for device authorization token

> CLI polls this endpoint to check if the user has approved the device code. Returns the API key on success.



## OpenAPI

````yaml https://platform.spritz.finance/openapi.json post /v1/device/token
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/token:
    post:
      tags:
        - Device Authorization
      summary: Poll for device authorization token
      description: >-
        CLI polls this endpoint to check if the user has approved the device
        code. Returns the API key on success.
      operationId: postV1DeviceToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                deviceCode:
                  minLength: 1
                  type: string
                grantType:
                  minLength: 1
                  type: string
              required:
                - deviceCode
                - grantType
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                deviceCode:
                  minLength: 1
                  type: string
                grantType:
                  minLength: 1
                  type: string
              required:
                - deviceCode
                - grantType
          multipart/form-data:
            schema:
              type: object
              properties:
                deviceCode:
                  minLength: 1
                  type: string
                grantType:
                  minLength: 1
                  type: string
              required:
                - deviceCode
                - grantType
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  apiKey:
                    type: string
                  keyId:
                    type: string
                  permissions:
                    type: array
                    items:
                      type: string
                  expiresAt:
                    type: string
                    nullable: true
                  keyName:
                    type: string
                    nullable: true
                required:
                  - apiKey
                  - keyId
                  - permissions
                  - expiresAt
                  - keyName

````