KeepFlash Agent authorization API

Device-code authorization for Agent Access tokens.

GitHub OpenAPI

Operations 3

POST /api/agent-access/device/code Start device authorization #
POST /api/agent-access/device/token Poll for an approved Agent Access token #
DELETE /api/agent-access/current Revoke the current Agent Access token #

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/keepflash-com:keepflash-com-agent-authorization-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

keepflash-com-agent-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KeepFlash Agent Agent authorization API
  version: 1.0.0
  summary: Authorize agents and connect them to KeepFlash over MCP.
  description: The public bootstrap API issues scoped Agent Access tokens through a device authorization flow. Use the resulting Bearer token with the MCP transport at /api/mcp. Product-internal browser APIs are intentionally not part of this public contract.
  contact:
    url: https://keepflash.com/en
  license:
    name: Proprietary
    url: https://keepflash.com/en/policies/terms-of-use
servers:
- url: https://keepflash.com
  description: Production
tags:
- name: Agent authorization
  description: Device-code authorization for Agent Access tokens.
paths:
  /api/agent-access/device/code:
    post:
      operationId: createAgentDeviceCode
      summary: Start device authorization
      tags:
      - Agent authorization
      security: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceCodeRequest'
      responses:
        '200':
          description: Device authorization created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceCodeResponse'
        '400':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/agent-access/device/token:
    post:
      operationId: pollAgentDeviceToken
      summary: Poll for an approved Agent Access token
      description: Poll no faster than the interval returned by the device-code operation. The authorization_pending and slow_down states are structured error responses.
      tags:
      - Agent authorization
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceTokenRequest'
      responses:
        '200':
          description: Agent Access token issued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTokenResponse'
        '400':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/agent-access/current:
    delete:
      operationId: revokeCurrentAgentToken
      summary: Revoke the current Agent Access token
      tags:
      - Agent authorization
      security:
      - bearerAuth: []
      responses:
        '204':
          description: Token revoked or already inactive
        '401':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Structured error with a recovery hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    DeviceTokenResponse:
      type: object
      additionalProperties: false
      required:
      - access_token
      - token_type
      - scope
      properties:
        access_token:
          type: string
        token_type:
          type: string
          const: Bearer
        scope:
          type: string
    ApiError:
      type: object
      additionalProperties: true
      required:
      - error
      - code
      - message
      - resolution
      properties:
        error:
          type: string
          description: Stable error identifier retained for OAuth-style client compatibility.
        code:
          type: string
          description: Stable machine error code.
        message:
          type: string
          description: Human-readable description of the failure.
        resolution:
          type: string
          description: Concrete next step that may resolve the failure.
    DeviceCodeResponse:
      type: object
      additionalProperties: false
      required:
      - device_code
      - user_code
      - verification_uri
      - verification_uri_complete
      - expires_in
      - interval
      properties:
        device_code:
          type: string
        user_code:
          type: string
        verification_uri:
          type: string
          format: uri
        verification_uri_complete:
          type: string
          format: uri
        expires_in:
          type: integer
          minimum: 1
        interval:
          type: integer
          minimum: 1
    DeviceCodeRequest:
      type: object
      additionalProperties: false
      properties:
        client_name:
          type: string
          minLength: 1
          maxLength: 80
          description: Name shown to the user during authorization.
    DeviceTokenRequest:
      type: object
      additionalProperties: false
      required:
      - device_code
      properties:
        device_code:
          type: string
          minLength: 1
          maxLength: 256
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: KeepFlash Agent Access token
      description: Token returned by the device-token operation.