# SQLGuard Mandate Bind

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

Hashes an AP2-style Intent Mandate into an Ed25519 Execution Certificate, binding an agent or wallet identity prior to authorized SQL operations.

## Facts

- Endpoint: GET https://sqlguard.io/v1/bind?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sqlguard-mandate-bind-8556681c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vCNUP4ukKbNjWCNC99Tkv

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-mandate-bind-8556681c
```

Example prompt: Bind my agent ID 'agent-wallet-abc123' to a SQLGuard Execution Certificate so I can authorize SQL mutations in the next step.

## When to prefer this

Use this endpoint when your agent needs to perform authorized, mutating SQL operations via SQLGuard and must first obtain a cryptographically signed Ed25519 Execution Certificate. This is the required first step before calling POST /v1/gate. Choose this over SQLGuard Instant Cert when you need a reusable mandate binding rather than a single one-time SQL pass, or when your workflow requires AP2-style intent mandate hashing.

## Known failure modes

- Missing or invalid agent_id returns an error or empty receipt
- Payment not fulfilled (x402) results in a 402 Payment Required response
- Malformed agent_id format may cause binding rejection
- Duplicate bind attempts for the same agent_id may return a conflict or a fresh certificate depending on implementation
- Network timeout may leave binding state ambiguous

## How this service works

Mandate Bind (ABMP BIND) — Exact USDC once; returns Ed25519 PASS cert whose mandate_hash binds the human Intent Mandate to this SQL. Portable check: free POST /v1/gate.

## Output

Returns a bind receipt containing an Ed25519 Execution Certificate that encodes the hashed AP2-style Intent Mandate for the given agent or wallet ID. This certificate must be presented when calling POST /v1/gate to authorize subsequent SQL execution.

## 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 bind 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-mandate-bind-8556681c/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)
