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: 'Lazaretto: skill & tool verification Credits API'
version: 2026.11.13a
summary: 'Deterministic verification of agent skills/tools: known-bad matching + behavioral signals.'
contact:
name: Lazaretto
email: contact@lazaretto.dev
url: https://lazaretto.dev
license:
name: Proprietary
servers:
- url: https://lazaretto.dev
tags:
- name: Credits
paths:
/v1/credits/topup:
post:
x-payment-info:
protocols:
- x402
price:
mode: dynamic
currency: USD
min: '3'
max: '25'
summary: Buy a prepaid credit bundle over x402 (one settlement = many scans)
description: Body {bundle:"starter"|"pro"|"scale"}. Pay the bundle price via x402; returns a new X-API-Key with credits (or tops up a presented key). One credit = one full scan.
responses:
'200':
description: Key + credit balance.
'400':
description: Unknown bundle (body lists bundles with prices).
'402':
description: 'Payment required: same dual-stack x402 challenge as /v1/scan (v2 header + v1 body), priced per bundle. x402-fetch v1 clients must raise maxValue above its $0.10 default.'
'409':
description: 'payment_in_use: this x402 payment is already in use by another request, or was used for one within the last few minutes. Nothing was settled or issued for this request. Sign a new payment.'
'500':
description: 'paid_not_fulfilled: the payment settled but the credits could not be issued. Do not pay again. Email contact@lazaretto.dev with the tx_hash from the body if it is present, otherwise with the paying wallet address and the time of payment, and the credits are issued by hand.'
'502':
description: 'settlement_outcome_unknown: the payment facilitator did not answer clearly (an error, a timeout, a dropped connection, or a failure reported after a transfer may have gone out), so whether the payment moved is unknown. No credits are issued. Do not pay again. The body carries `tx_hash` when the facilitator named a transaction. Email contact@lazaretto.dev with the paying wallet address and the `time` from the body; if the payment did settle, the credits are issued by hand.'
tags:
- Credits
operationId: postV1CreditsTopup
x-operation-id-source: derived
components:
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-API-Key
x402:
type: http
scheme: x402
description: Pay-per-call via the x402 protocol (USDC on Base).
watchToken:
type: apiKey
in: header
name: x-watch-token
description: The watch token returned once by POST /v1/watch.