MainBook Device Authorization API

The device-authorization API from MainBook — 1 operation(s) for device-authorization.

GitHub OpenAPI

Operations 2

GET /api/v1/developer/key Developer key retrieve #
DELETE /api/v1/developer/key Developer key destroy #

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/mainbook-ai:mainbook-ai-device-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. 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

mainbook-ai-device-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MainBook Developer Device Authorization API
  version: 1.0.0
  description: 'Public API for creating MainBook conversion jobs, uploading statements, polling status, and downloading structured results.


    **Call this API from your server, not from a browser.** Requests from web pages are refused: the allowed-origin list does not include third-party sites, so a browser call fails as an opaque network error while the same call from a server succeeds. That is deliberate — an API key placed in browser JavaScript is readable by every visitor of your site. Keep the key on your backend and have it talk to us.


    The presigned upload URL returned by `POST /jobs` is the one exception in spirit: it carries its own signature and no MainBook key. Send the returned `upload.headers` back verbatim — the signature covers them.'
servers:
- url: https://api.mainbook.ai
tags:
- name: device-authorization
paths:
  /api/v1/developer/key:
    get:
      operationId: developer_key_retrieve
      description: Let one Bearer credential check and revoke only itself.
      tags:
      - device-authorization
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: The presented API key is active
        '401':
          description: The presented API key is invalid or revoked
      summary: Developer key retrieve
      x-summary-source: derived
    delete:
      operationId: developer_key_destroy
      description: Let one Bearer credential check and revoke only itself.
      tags:
      - device-authorization
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: The presented API key was revoked
        '401':
          description: The presented API key is invalid or revoked
      summary: Developer key destroy
      x-summary-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'API key `mb_live_…` in the Authorization header: `Authorization: Bearer mb_live_…`. Created in Settings → API.'