# SQLGuard Team Credits Purchase

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

Buy a prepaid team-tier block of SQLGuard execution credits ($149 USDC) to fund SQL validation and Ed25519 certificate issuance for production mutation workflows.

## Facts

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

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-team-credits-purchase-414b4413
```

Example prompt: Purchase a team-tier prepaid credit bundle on SQLGuard for my agent wallet 0xABC123 so we have enough credits to keep validating and certifying production SQL mutations.

## When to prefer this

Choose this endpoint when your team needs a high-volume shared credit pool for ongoing production SQL certificate workflows. Prefer the team bundle over individual or micro credits when multiple agents or engineers are regularly submitting SQL for validation. Use this before credit balance is exhausted to avoid blocking production deployments.

## Known failure modes

- Payment not received or insufficient USDC — purchase not processed, credits not added
- Invalid or missing agent_id — credits may be unlinked from intended account
- Duplicate purchase attempt — idempotency not guaranteed, may result in double charge
- Network or gateway error — 402 or 5xx response, credits not credited
- Account or team already at credit cap — purchase rejected

## 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 tier ('team'), the total new credit balance, the agent or wallet ID associated with the credits, and the number of credits added in this transaction.

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

## More

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