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

# Start CLI browser-login device flow

> Creates a short-lived CLI login session and returns the browser verification URL. No API key is required.



## OpenAPI

````yaml /openapi.json post /public/device/start
openapi: 3.1.0
info:
  title: Peel API
  version: '2026-03-21'
  description: >-
    Public Peel API for creating APIs from URLs, inspecting them, calling
    generated endpoints, revising builds, and exporting OpenAPI or MCP
    definitions.
servers:
  - url: https://api.peel.sh
security: []
tags:
  - name: APIs
    description: Create, list, inspect, revise, rebuild, and export APIs.
  - name: Account
    description: Credits and account usage surfaces used by CLI, REST, and MCP clients.
  - name: Device Auth
    description: CLI browser-login device flow helpers.
  - name: Endpoint Execution
    description: Execute generated endpoints through a stable API resource.
  - name: OAuth
    description: OAuth discovery and token flows for hosted MCP clients.
  - name: MCP
    description: Hosted MCP transport and discovery surface.
paths:
  /public/device/start:
    post:
      tags:
        - Device Auth
      summary: Start CLI browser-login device flow
      description: >-
        Creates a short-lived CLI login session and returns the browser
        verification URL. No API key is required.
      operationId: startDeviceAuth
      responses:
        '200':
          description: Pending device-auth session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceAuthStartResponse'
        '503':
          description: Too many pending sessions or unable to create a session.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                additionalProperties: false
components:
  schemas:
    DeviceAuthStartResponse:
      type: object
      required:
        - session_id
        - user_code
        - verification_url
        - expires_at
      properties:
        session_id:
          type: string
          format: uuid
        user_code:
          type: string
        verification_url:
          type: string
          format: uri
        expires_at:
          type: string
          format: date-time
      additionalProperties: false

````