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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/pdf2md-dev:pdf2md-dev-settings-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
openapi: 3.2.0
info:
title: PDF to Markdown API Facade Settings API
version: 2.1.1
description: 'API facade for the PDF → Markdown Chrome extension. Core logic for the queue and result delivery,
device identification via a WebCrypto keypair + device_token, signed requests (see docs/security.md).
v2.0.0 (EP-023): additively introduced `/api/v2/*` endpoints for accounts, API keys, hosted MCP, and
paid tiers. Authentication for `/api/v2/*` — `Authorization: Bearer p2m_...` (API key, over TLS, without
an ES256 signature) OR an OAuth session (extension/web). See docs/v2.0.0-roadmap.md §6-7, docs/security.md.
BACKWARD COMPATIBILITY (hard invariant): all v1 paths (`/register`, `/jobs`, `/jobs/{id}`,
`/jobs/{id}/download`, `/settings`) and their schemas do NOT change — the old and new extensions work
simultaneously against backend 2.0.0 without errors (docs/v2.0.0-roadmap.md §6.9).'
servers:
- url: https://pdf2md.dev
description: 'Production — PRIMARY origin (EP-024, promoted). v1 at root (/register, /jobs, …); v2 under /api/v2/*. The API is served identically on both production domains; OAuth redirect_uri and billing return URLs follow the request origin (allow-list PUBLIC_ORIGINS), so the OAuth callback host matches whichever domain you start on.
'
- url: https://pdf2md.huskyhaul.online
description: Production — alternative origin (kept for the v1 extension). Same API surface.
- url: http://localhost:8080
description: Local docker nginx (same routing — v1 root + /api/v2/*)
security:
- DeviceToken: []
tags:
- name: Settings
description: Device conversion settings
paths:
/settings:
get:
tags:
- Settings
summary: Get device settings
description: 'Returns the device''s current conversion settings. For settings that are not present,
default values are returned.'
parameters:
- $ref: '#/components/parameters/Timestamp'
- $ref: '#/components/parameters/Nonce'
- $ref: '#/components/parameters/BodySHA256'
- $ref: '#/components/parameters/Signature'
responses:
'200':
description: Device settings
content:
application/json:
schema:
$ref: '#/components/schemas/SettingsResponse'
'401':
description: Invalid or expired device_token / request signature
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Device blocked
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Replay detected (nonce already used)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getSettings
x-operation-id-source: derived
put:
tags:
- Settings
summary: Update device settings
description: 'Partial update of the device''s conversion settings. Only the
fields being changed are sent. Returns the full settings object after the update.'
parameters:
- $ref: '#/components/parameters/Timestamp'
- $ref: '#/components/parameters/Nonce'
- $ref: '#/components/parameters/BodySHA256'
- $ref: '#/components/parameters/Signature'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SettingsRequest'
responses:
'200':
description: Settings updated
content:
application/json:
schema:
$ref: '#/components/schemas/SettingsResponse'
'400':
description: Invalid data (incorrect setting value)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or expired device_token / request signature
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Device blocked
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Replay detected (nonce already used)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: putSettings
x-operation-id-source: derived
components:
parameters:
Timestamp:
name: X-Timestamp
in: header
required: true
description: Unix time (sec) for the request signature (±300s window, see docs/security.md)
schema:
type: integer
format: int64
example: 1700000000
BodySHA256:
name: X-Body-SHA256
in: header
required: true
description: hex sha256 of the request body (for GET/DELETE — sha256 of an empty body)
schema:
type: string
pattern: ^[A-Fa-f0-9]{64}$
example: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Signature:
name: X-Signature
in: header
required: true
description: Signature of the canonical string (ES256), see docs/security.md
schema:
type: string
maxLength: 512
example: MEYCIQCZqlk3E1p5k2y1hZ0ykjW9tzjO4GDBWJ3QYw9UWF2gtwIhAKuQKk8NfZp7uA9u6YzKxHnD7bHkHHRp2tkMZ0QYpQMb
Nonce:
name: X-Nonce
in: header
required: true
description: Random string (base64url), unique per request (TTL 5 minutes, anti-replay)
schema:
type: string
maxLength: 128
example: bXlfbm9uY2UtdjE
schemas:
SettingsRequest:
type: object
description: 'Partial settings update (only the fields being changed are sent).
The `engine`/`conversion_mode` fields are optional and additive — old clients
do not send them, and their absence does not affect already saved values.
'
properties:
image_mode:
$ref: '#/components/schemas/ImageMode'
ocr_enabled:
type: boolean
description: Enable OCR for text recognition on scans (default false)
engine:
$ref: '#/components/schemas/Engine'
conversion_mode:
$ref: '#/components/schemas/ConversionMode'
SettingsResponse:
type: object
description: 'The full set of settings. `engine`/`conversion_mode` were added additively —
old clients unaware of these fields ignore them (backward compatibility).
'
required:
- image_mode
- ocr_enabled
properties:
image_mode:
$ref: '#/components/schemas/ImageMode'
ocr_enabled:
type: boolean
description: Enable OCR for text recognition on scans
default: false
engine:
$ref: '#/components/schemas/Engine'
conversion_mode:
$ref: '#/components/schemas/ConversionMode'
Engine:
type: string
description: 'Conversion engine (EP-015). Both engine containers are running; at most one is
resident (single-resident, EP-016). The old extension does not send this field →
the backend uses the default. EP-016: default `mineru` (reliable on scans/Cyrillic);
changed via env DEFAULT_ENGINE. `docling` — optional for simple PDFs.
'
enum:
- docling
- mineru
default: mineru
ErrorResponse:
type: object
required:
- code
- message
properties:
code:
type: string
description: Short error code
enum:
- validation_error
- token_invalid_or_expired
- signature_invalid
- replay_detected
- rate_limited
- device_blocked
- not_ready
- gone
example: signature_invalid
message:
type: string
example: Invalid request signature
ConversionMode:
type: string
description: 'Conversion mode / fast-path (EP-014). `simple` — the lightweight docling pipeline,
`auto` — autodetect + fallback to full, `full` — the full pipeline.
Backward compatibility: when the field is absent the backend uses `full`
(behavior identical to before). The new extension''s UI defaults to `auto`.
'
enum:
- simple
- auto
- full
default: full
ImageMode:
type: string
description: Image handling mode in Markdown
enum:
- embedded
- placeholder
default: embedded
securitySchemes:
AdminSecret:
type: http
scheme: bearer
description: 'v2 (EP-023-T9): support read-view secret (ADMIN_SECRET). Server-only; empty → /api/v2/admin/* 404.'
DeviceToken:
type: http
scheme: bearer
bearerFormat: JWT
description: 'device_token, issued at `/register`. All protected requests are also signed (timestamp, nonce, body hash, signature) —
see docs/security.md (canonical string `METHOD\nPATH\nTIMESTAMP\nNONCE\nBODY_SHA256`, ±300s window, nonce TTL 5 min).
'
ApiKey:
type: http
scheme: bearer
bearerFormat: opaque
description: 'v2 (EP-023): API key `Authorization: Bearer p2m_...` over TLS. WITHOUT an ES256 body signature and anti-replay
(unlike DeviceToken) — this is a deliberate perimeter shift (docs/security.md §0-2). Scopes/limits/ownership
are checked by the server; the tier is not stored on the key (entitlements are resolved live).
'
Session:
type: apiKey
in: cookie
name: p2m_session
description: 'v2 (EP-023): the extension/web OAuth session (Google login). Used by the UI for /api/v2/me, /api/v2/limits, /api/v2/api-keys.'
UploadTicket:
type: apiKey
in: header
name: Upload-Ticket
description: 'v2 (EP-048): a one-time, short-TTL ticket from POST /api/v2/jobs/upload-ticket, bound
server-side to {device, account, tier, byte cap}. Authenticates the streamed
POST /api/v2/jobs/upload WITHOUT a per-body ES256 signature (so the body can stream).
Single-use (consumed on arrival) and short-lived, which bounds theft/replay.
'