# SQLGuard Prepaid Volume Credits (Micro)

> SQLGuard Prepaid Volume Credits (Micro) is a paid API for AI agents from sqlguard-io.fly.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Purchase prepaid micro-volume credits ($0.10 USDC each, up to 5) for use with SQLGuard's SQL validation and verification endpoints.

## Facts

- Endpoint: GET https://sqlguard-io.fly.dev/v1/credits/buy/micro
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-prepaid-volume-credits-micro-c4f2979e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__S5kQL0JbFjeb40HG8oSA

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 sqlguard-prepaid-volume-credits-micro-c4f2979e
```

Example prompt: Buy me a batch of prepaid SQLGuard micro-credits — I want to stock up so I can run SQL validation and verify calls without paying per-request each time.

## When to prefer this

Use this endpoint when you need to prepay for SQLGuard validate/verify calls in bulk rather than paying per-call via the Session or Instant paths. This is appropriate for agents or pipelines that will make repeated SQL validation calls and want to avoid per-request payment overhead. Do NOT use this as the primary authorize path for mutating SQL before execution — that requires the Session Cert endpoint.

## Known failure modes

- Payment failure if USDC balance is insufficient
- Exceeding the 5-credit cap per purchase attempt
- Invalid or missing agent_id causing probe/discovery issues
- Service unavailability on the fly.dev host
- Attempting to use this endpoint as the primary authorize path (not supported — use Session Cert for mutating SQL authorization)

## How this service works

Prepaid volume credits ($0.10 → 5) for SQLGuard validate/verify after Session or Instant. Not the primary authorize path — use Session Cert for authorize mutating SQL before execute.

## Output

A confirmation that prepaid credits have been purchased and are available for use with SQLGuard's validate and verify endpoints. The response likely includes credit balance, transaction confirmation, and possibly a credit token or session reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "agent_id": {
       "type": "string",
       "description": "Optional agent id query param for discovery probes"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sqlguard-prepaid-volume-credits-micro-c4f2979e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sqlguard-io.fly.dev](https://www.zero.xyz/host/sqlguard-io.fly.dev/llms.txt)
