Rows or a write result from agent memory
db.gedx402.com/v1/sql/exec
Rows or a write result from agent memory. 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.
POST
https://db.gedx402.com/v1/sql/execUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://db.gedx402.com/v1/sql/exec", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"sql":"CREATE TABLE IF NOT EXISTS listing_example (id TEXT PRIMARY KEY, body TEXT)"}),
});
console.log(await res.json());Example input
{
"sql": "CREATE TABLE IF NOT EXISTS listing_example (id TEXT PRIMARY KEY, body TEXT)"
}