# Lazaretto Scan Credits Top-Up

> Lazaretto Scan Credits Top-Up is a paid API for AI agents from lazaretto.dev, paid per call via x402, $3/call, status unknown (last checked 2026-11-23).

Purchase a prepaid bundle of Lazaretto supply-chain scan credits and receive an API key for running scans.

## Facts

- Endpoint: POST https://lazaretto.dev/v1/credits/topup?utm_source=zero.xyz
- Price: $3/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lazaretto-scan-credits-top-up-2abcbbc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NKBvSbT0mhkN8dTDFqvN4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lazaretto-scan-credits-top-up-2abcbbc7 -d '<json body>'
```

Example prompt: Buy me a Lazaretto starter bundle so I can start scanning npm packages — I need the API key it returns.

## When to prefer this

Use this endpoint when you need to acquire scan credits and an API key before running Lazaretto supply-chain security scans. This is the required prerequisite step for any agent that needs to call POST /v1/scan. Choose the starter bundle for light or trial usage, pro for regular team usage, and scale for high-volume automated pipelines.

## Known failure modes

- Payment failure — USDC balance insufficient or x402 settlement rejected, returns payment error
- Invalid bundle value — submitting a bundle name outside the enum returns a 400 validation error
- Duplicate purchase race condition — concurrent top-ups may issue multiple keys
- Service unavailable — lazaretto.dev infrastructure down, returns 5xx

## How this service works

Prepaid bundle of Lazaretto scan credits. Returns an API key for POST /v1/scan. The request body selects the bundle: {"bundle":"starter"|"pro"|"scale"}.

## Output

Returns a JSON object containing the bundle name purchased (e.g. 'starter'), a fresh Lazaretto API key (prefixed 'lz_...') for use with POST /v1/scan, and the number of scan credits included in the bundle (e.g. 150 for starter).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bundle": {
   "enum": [
    "starter",
    "pro",
    "scale"
   ],
   "type": "string",
   "description": "Which prepaid pack to buy. Each is one settlement that buys many scans."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bundle": "starter",
  "api_key": "lz_...",
  "credits": 150
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lazaretto-scan-credits-top-up-2abcbbc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lazaretto.dev](https://www.zero.xyz/host/lazaretto.dev/llms.txt)
