# db.gedx402.com SQL Write Executor

> db.gedx402.com SQL Write Executor is a paid API for AI agents from db.gedx402.com, paid per call via x402, $0.017/call, status unknown (last checked 2026-09-15).

Executes a single SQL write statement (INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, REPLACE) against a Cloudflare D1 database, paid per-call via USDC on x402.

## Facts

- Endpoint: GET https://db.gedx402.com/v1/sql/exec
- Price: $0.017/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/db-gedx402-com-sql-write-executor-035d809e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NZl2XTFwVQj0bMzycgQd1

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 db-gedx402-com-sql-write-executor-035d809e
```

Example prompt: Insert a new user record into the 'users' table with name 'Alice', email 'alice@example.com', and age 30 — run the SQL write on the x402 D1 database, no API key needed, just pay per call.

## When to prefer this

Use this endpoint when you need to perform SQL write operations (INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, REPLACE) on a Cloudflare D1 database without managing API keys, paying micro-fees in USDC per call via the x402 protocol on Base, Polygon, Arbitrum, World, or Solana.

## Known failure modes

- Invalid or malformed SQL syntax returns an error response
- Attempting a SELECT or read statement is rejected (only write statements allowed)
- Incorrect number of bound parameters for ? placeholders causes a mismatch error
- Payment failure or insufficient USDC balance blocks execution with a 402 response
- Table or column does not exist results in a SQL execution error
- Network timeout on the Cloudflare D1 backend

## How this service works

Write SQL on shared agent memory database. POST INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, or REPLACE with optional params; UPDATE/DELETE require WHERE; changes capped at 100 rows. With valid session_token, no x402 until exec credits exhausted. Bundle: GET /v1/models?bundle=memory. Shard omitted from default OpenAPI discovery.

## Output

A JSON object with a 'meta' field containing: number of rows changed, execution duration in milliseconds, last inserted row ID, and rows written count; plus a 'success' boolean and the underlying service name ('cloudflare-d1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sql": {
   "type": "string"
  },
  "params": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "session_token": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/db-gedx402-com-sql-write-executor-035d809e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from db.gedx402.com](https://www.zero.xyz/host/db.gedx402.com/llms.txt)
