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.
openapi: 3.2.0
info:
title: Nanotoll Operational API
description: 'Single public REST API for nanotoll.dev: account registration and key issuance, trial keys, credit balance, payment history. One API key, one balance, billed in USDC on Base L2. The compress endpoint is served under /v1 on this host and as a tool on the MCP server. Revenue metrics are internal (dashboard only) and not part of the public API.'
version: 1.0.0
contact:
name: Nanotoll
url: https://nanotoll.dev
servers:
- url: https://api.nanotoll.dev
tags:
- name: operational
paths:
/health/live:
get:
tags:
- operational
summary: Service liveness
responses:
'200':
description: Service is alive
content:
application/json:
schema:
$ref: '#/components/schemas/LivenessResponse'
description: Returns 200 with {"status":"ok"} while the process is alive.
operationId: getHealthLive
x-operation-id-source: derived
/health/ready:
get:
tags:
- operational
summary: Service readiness
description: Checks DB connectivity, migrations, and RPC reachability. Returns 503 if not ready.
responses:
'200':
description: Service is ready
content:
application/json:
schema:
$ref: '#/components/schemas/ReadinessResponse'
'503':
description: Service not ready
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
operationId: getHealthReady
x-operation-id-source: derived
components:
schemas:
LivenessResponse:
type: object
required:
- status
properties:
status:
type: string
example: ok
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
example: BAD_REQUEST
message:
type: string
example: Validation failure
details:
type: object
additionalProperties: true
ReadinessResponse:
type: object
required:
- status
properties:
status:
type: string
example: ready
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key issued by TOLL POST /api/v1/register (e.g. macs_<32hex>). Sent as `Authorization: Bearer ***`'