# SQLGuard Builder Credit Pack Purchase

> SQLGuard Builder Credit Pack Purchase is a paid API for AI agents from sqlguard.io, paid per call via x402, $39/call, status unknown (last checked 2026-10-12).

Purchases a prepaid 'builder' bundle of x402 credits ($0.10 → 2500 credits) for use with SQLGuard's SQL execution certificate validation endpoints

## Facts

- Endpoint: GET https://sqlguard.io/v1/credits/buy/builder?utm_source=zero.xyz
- Price: $39/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-builder-credit-pack-purchase-3b7dd026
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OTn9fVDVu-plcWB6q9idy

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-builder-credit-pack-purchase-3b7dd026
```

Example prompt: I need to top up my SQLGuard credits with the builder bundle so my agent can keep getting execution certificates for SQL mutations — can you purchase the $0.10 builder pack for agent ID 0xMyAgentWallet?

## When to prefer this

Choose this endpoint when you need to pre-fund a SQLGuard account with the entry-level 'builder' bundle ($0.10 for 2500 credits) before running SQL execution certificate workflows. Prefer this over session burst or pilot challenge packs when you want low-commitment, fine-grained prepaid credit top-ups rather than session-scoped or volume-unlock packages. Use this as the first step before calling validate or verify endpoints.

## Known failure modes

- Payment failure or insufficient USDC balance — payment not processed, credits not added
- Invalid or malformed agent_id query parameter — may return error or assign credits to default address
- x402 payment protocol misconfiguration — 402 response without credits being granted
- Rate limiting or duplicate purchase detection — credits not added if request is flagged as duplicate
- Network timeout during payment processing — ambiguous state where payment may or may not have settled

## How this service works

Agents that mutate production SQL NEED this authorize layer. Lint is not authorization. Buy prepaid x402 credits, POST schema DDL + SQL, receive an Ed25519 Execution Certificate after sandboxed validation. Verify certificates before production execution. Entry: micro $0.10.

## Output

Returns a JSON object confirming the purchase: ok=true, bundle name ('builder'), total credit balance after purchase, credits added (2500), and the agent_id the credits were assigned to.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "bundle": "builder",
  "balance": 2500,
  "agent_id": "0xYourAgentOrWallet",
  "credits_added": 2500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sqlguard-builder-credit-pack-purchase-3b7dd026/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)
