# SQLGuard Starter Credits Purchase

> SQLGuard Starter Credits Purchase is a paid API for AI agents from sqlguard.io, paid per call via x402, $10/call, status unknown (last checked 2026-10-11).

Purchases a prepaid starter bundle of 500 SQLGuard execution-certificate credits for $10 USDC via x402 payment

## Facts

- Endpoint: GET https://sqlguard.io/v1/credits/buy/starter?utm_source=zero.xyz
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-starter-credits-purchase-6469b020
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KXGKGfchKJp4nacfqY5OW

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-starter-credits-purchase-6469b020
```

Example prompt: Buy the SQLGuard starter credit bundle for my agent so I have enough prepaid balance to authorize SQL mutations — use agent ID 0xMyAgentWallet.

## When to prefer this

Use this endpoint when an agent needs to initialize or replenish its SQLGuard prepaid credit balance for the first time or after depletion, and the starter tier (500 credits for $10) is sufficient for the expected workload. Prefer this over session or instant-cert endpoints when the agent will be running many SQL validation jobs over time and needs a persistent credit pool rather than a one-off authorization.

## Known failure modes

- Payment declined or insufficient USDC balance — x402 payment failure, credits not added
- Invalid or missing agent_id — credits may not be attributed correctly
- Network timeout before payment confirmation — uncertain credit state, avoid retry without checking balance
- Service unavailable — credits endpoint returns non-200, no bundle activated

## 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 with ok:true, the bundle name ('starter'), the agent_id credited, the number of credits_added (500), and the new total balance.

## 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": "starter",
  "balance": 500,
  "agent_id": "0xYourAgentOrWallet",
  "credits_added": 500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sqlguard-starter-credits-purchase-6469b020/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)
