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

# Collect the API key a device sign-in made

> RFC 8628 polling: `authorization_pending` until the person approves, then the key. Use it as `Authorization: Bearer <key>`.



## OpenAPI

````yaml https://dojo.frogbot.ai/api/openapi.json post /api/cli/device/token
openapi: 3.1.0
info:
  title: Dojo API
  version: '1'
  description: >-
    Everything Dojo's pages do, for scripts and agents. Sign in with an API key
    as `Authorization: Bearer fb_…`. Paying and accepting the terms happen at a
    link a route answers, for a person to open.
servers:
  - url: https://dojo.frogbot.ai
security:
  - apiKey: []
tags:
  - name: Sign-in
  - name: Workspaces
  - name: Projects
  - name: Apps
  - name: Templates
  - name: Sharing
  - name: Deployments
  - name: Environment variables
  - name: Domains
  - name: Data
  - name: Billing
  - name: API keys
paths:
  /api/cli/device/token:
    post:
      tags:
        - Sign-in
      summary: Collect the API key a device sign-in made
      description: >-
        RFC 8628 polling: `authorization_pending` until the person approves,
        then the key. Use it as `Authorization: Bearer <key>`.
      operationId: post/api/cli/device/token
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                device_code:
                  type: string
                client_id:
                  type: string
              required:
                - grant_type
                - device_code
                - client_id
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                    enum:
                      - Bearer
                required:
                  - access_token
                  - token_type
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from `frogbot deploy`'s sign-in, `/api/cli/device/token`, or
        the API keys page.

````

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