API Acre · Developer SQL Change Review

by API Acre

POSTBaseSolana

$0.05

per call · USD Coin on Base

Statically parse caller-supplied SQL without a database connection or execution, inventory statements and tables, and flag destructive DDL, unfiltered writes, and migration atomicity concerns.

Endpoint

POST https://apiacre.com/v1/developer/sql-change-review

1

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/developer/sql-change-review", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "dialect": "postgres",
    "sql": "CREATE INDEX idx_accounts_status ON accounts (status);"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/developer/sql-change-review" \
  -H "Content-Type: application/json" \
  -d '{"dialect":"postgres","sql":"CREATE INDEX idx_accounts_status ON accounts (status);"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "attentionLevel": "clear",
    "attentionScore": 0,
    "dialect": "postgres",
    "documentSha256": "3e31b98c852573137d17dcb062b2a1571d63052f71abeeb8b62296f3d1066af4",
    "execution": {
      "databaseConnected": false,
      "sqlExecuted": false
    },
    "findings": [],
    "limitations": [
      "Static syntax review only; database schema, permissions, triggers, data volum...",
      "A low attention score does not prove a change is correct or safe to deploy."
    ],
    "parser": {
      "license": "MIT",
      "name": "SQLGlot",
      "version": "30.16.0"
    },
    "reviewDecision": "clear",
    "statementCount": 1,
    "statements": [
      {
        "category": "schema-change",
        "index": 1,
        "operation": "CREATE",
        "readOnly": false,
        "targetObjects": [
          "accounts"
        ]
      }
    ],
    "summary": {
      "dataChangeStatements": 0,
      "otherStatements": 0,
      "readStatements": 0,
      "schemaChangeStatements": 1,
      "transactionStatements": 0
    },
    "valid": true
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "developer.sql-change-review",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from API Acre & similar services