Cascade Device API

The Device API from Cascade — 2 operation(s) for device.

GitHub OpenAPI

Operations 2

POST /api/v1/device/code Start a sign-in from a terminal or agent (OAuth 2.0 device flow, RFC 8628); no… #
POST /api/v1/device/token Poll a sign-in; returns a new API key, exactly once, after the person approves #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cascade-industries:cascade-industries-device-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cascade-industries-device-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cascade Industries Device API
  version: 1.0.0
  description: 'Operations tagged Device across 2 of this provider''s published API definitions: cascade-industries-ephemeris-openapi-m1.json, cascade-industries-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: '{baseUrl}'
  variables:
    baseUrl:
      default: http://localhost:3000
security:
- apiKey: []
tags:
- name: Device
paths:
  /api/v1/device/code:
    post:
      operationId: startDeviceLogin
      summary: Start a sign-in from a terminal or agent (OAuth 2.0 device flow, RFC 8628); no…
      description: 'Returns a short user_code and a link. Show both to the person: they open the link, sign in or sign up, check the page shows the same code, and approve. Then poll /api/v1/device/token with device_code. Each network may start 10 sign-ins per 10 minutes.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - client
              properties:
                client:
                  type: string
                  pattern: ^[a-z0-9][a-z0-9._-]{0,39}$
                  description: Short lowercase name of the tool asking, e.g. my-agent
                name:
                  type: string
                  maxLength: 80
                  description: What the approval page shows, and the new key's name, e.g. my-agent on laptop
      responses:
        '200':
          description: Sign-in started
          content:
            application/json:
              schema:
                type: object
                required:
                - device_code
                - user_code
                - verification_uri
                - verification_uri_complete
                - expires_in
                - interval
                properties:
                  device_code:
                    type: string
                    description: 'Secret: keep it in the tool, never show it'
                  user_code:
                    type: string
                    example: WDJB-MJHT
                    description: Show this to the person
                  verification_uri:
                    type: string
                    format: uri
                  verification_uri_complete:
                    type: string
                    format: uri
                    description: 'verification_uri with the code filled in: open this'
                  expires_in:
                    type: integer
                    example: 600
                  interval:
                    type: integer
                    example: 5
                    description: Seconds between polls
        '400':
          description: Invalid client name
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceError'
        '429':
          description: Too many sign-ins from this network; see Retry-After
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceError'
      tags:
      - Device
    servers:
    - url: '{baseUrl}'
      variables:
        baseUrl:
          default: http://localhost:3000
  /api/v1/device/token:
    post:
      operationId: pollDeviceLogin
      summary: Poll a sign-in; returns a new API key, exactly once, after the person approves
      description: 'Poll every `interval` seconds. authorization_pending: keep waiting. slow_down: wait 5 seconds longer each time from now on. access_denied or expired_token: stop. The key appears on the dashboard API keys page under the name given, where it can be revoked.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - device_code
              properties:
                device_code:
                  type: string
      responses:
        '200':
          description: 'Approved: the new API key'
          content:
            application/json:
              schema:
                type: object
                required:
                - key
                properties:
                  key:
                    type: string
                    example: pc_live_...
                  token_type:
                    type: string
                    enum:
                    - api_key
        '400':
          description: 'Not (yet) approved: error is authorization_pending, slow_down, access_denied, expired_token, invalid_grant or invalid_request'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceError'
      tags:
      - Device
    servers:
    - url: '{baseUrl}'
      variables:
        baseUrl:
          default: http://localhost:3000
components:
  schemas:
    DeviceError:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - authorization_pending
          - slow_down
          - access_denied
          - expired_token
          - invalid_grant
          - invalid_request
        error_description:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: pc_live_...
      description: Ephemeris application API key
x-refined-from:
- cascade-industries-ephemeris-openapi-m1.json
- cascade-industries-openapi.yml