# SQLGuard Instant Cert

> SQLGuard Instant Cert is a paid API for AI agents from sqlguard.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Issues a one-time Ed25519 execution certificate authorizing a single mutating SQL statement, paid per-use via USDC with no prepaid credits required.

## Facts

- Endpoint: GET https://sqlguard.io/v1/cert
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-instant-cert-a4ce9010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hN8YfF2zKPawqycgPZ0Wc

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-instant-cert-a4ce9010
```

Example prompt: Before I run that DELETE statement on the orders table, get me an instant SQLGuard execution certificate for my agent wallet — I need the Ed25519 PASS/FAIL cert so I can safely proceed to the production write.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use SQL authorization gate with no subscription or prepaid credits — ideal for infrequent or audit-sensitive mutations where you want a cryptographic PASS/FAIL record. Prefer it over the SQLGuard prepaid-credits endpoint when you are running occasional one-off writes rather than high-volume operations. Use it when you need an Ed25519-signed certificate as an audit artifact before any destructive or mutating SQL is committed to production.

## Known failure modes

- FAIL certificate issued if the SQL statement violates sandbox policy — the write must not proceed
- Payment not accepted or USDC transfer fails — certificate not issued
- Invalid or missing agent_id — certificate cannot be tied to a receipt
- Rate limiting or service unavailability — endpoint returns error with no cert
- Expired or already-used certificate when later submitted to /v1/verify

## How this service works

Instant Cert — LEGACY TASTE ONLY Exact $0.05 for ONE mutating SQL PASS/FAIL. OFF TABLE as wealth. Prefer Authorize mutating SQL before execute via Pilot Challenge unlock POST /v1/challenge/unlock $100 (amount 100000000) or Gateway invoice $299/mo. Not a production authorize path.

## Output

Returns an Ed25519-signed execution certificate with a PASS or FAIL result reflecting whether the requested mutating SQL statement passes sandbox safety policy. The certificate serves as a cryptographic authorization token that must be submitted via POST /v1/verify before a production database write is allowed to proceed. Each certificate is single-use and scoped to one SQL statement.

## 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": "Agent or wallet id for the certificate receipt"
      }
     }
    }
   },
   "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-instant-cert-a4ce9010/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sqlguard.io](https://www.zero.xyz/host/sqlguard.io/llms.txt)
