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 Watch 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: Watch
paths:
/v1/watch:
post:
summary: Register a dependency set to re-check later (one credit to create)
description: 'Requires an X-API-Key. Creating a watch spends one credit, taken only after the baseline is recorded, so a feed outage costs nothing. Send a lockfile (raw or as {"lockfile":""}) or {"packages":[{"name","version"}]}: exactly pinned versions only, at most 2000. We store package identities and what we knew at that moment, never lockfile contents or code. Returns a `watch_id` and a `watch_token` shown once. A watch is re-checked when you read it with GET /v1/watch/{id}: nothing runs on a schedule and nothing is pushed to you, so poll it.'
security:
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
lockfile:
type: string
packages:
type: array
items:
type: object
properties:
name:
type: string
version:
type: string
webhook_url:
type: string
description: Optional https URL. Accepted and stored, but no deliveries are sent yet, so do not rely on it for alerts.
responses:
'201':
description: The watch, its one-time token, and the baseline taken at registration.
'400':
description: No exactly-pinned versions, too many packages, or a webhook_url that is not https.
'401':
description: Invalid API key.
'402':
description: No key, or no credits left. Body carries `ways_to_pay`.
'404':
description: Watches are not enabled on this deployment.
'429':
description: Rate limited.
'503':
description: The key could not be checked (`key_check_unavailable`, with Retry-After; the key was not rejected), or the baseline could not be taken, or the watch could not be saved. No watch was created; `detail` says whether a spent credit was returned.
tags:
- Watch
operationId: postV1Watch
x-operation-id-source: derived
/v1/watch/{id}:
get:
security:
- watchToken: []
summary: Re-check a watch now (free)
description: Evaluates the watched identities against the current advisory feed at the time of the request. `newly_malicious` lists packages that were clean when you registered and are listed now; `still_malicious` were already listed then. Reading acknowledges an alert, so it is not reported as new again. An unknown id and a wrong token get the same 404.
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: x-watch-token
in: header
required: true
schema:
type: string
responses:
'200':
description: The re-check result.
'404':
description: No such watch, or the wrong token.
'429':
description: Rate limited.
'503':
description: '`degraded: true`: the feed could not be consulted. Not an all-clear, and nothing is acknowledged.'
tags:
- Watch
operationId: getV1WatchById
x-operation-id-source: derived
delete:
security:
- watchToken: []
summary: Stop a watch and delete its dependency list
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: x-watch-token
in: header
required: true
schema:
type: string
responses:
'200':
description: Stopped; the dependency list is deleted.
'404':
description: No such watch, or the wrong token.
'429':
description: Rate limited.
tags:
- Watch
operationId: deleteV1WatchById
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.