{
  "x402Version": 2,
  "id": 7288,
  "slug": "7288",
  "resource": "https://api.vrsai.tech/v1/capabilities/sql_preflight",
  "description": "Check PostgreSQL SQL immediately before execution to prevent destructive or unsafe database changes by AI agents and automated systems.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6746dFF7bDB1ED4940DBe50024795AD97CbA09Af",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EiJRESZjUCUufSjSb5iDmikXXeKa3C1gQwYCZR4xFocj",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "context": {
              "environment": "production",
              "protected_relations": [
                "customers"
              ]
            },
            "sql": "DELETE FROM customers;"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "checks": [
              {
                "id": "parse_validity",
                "status": "PASS"
              },
              {
                "evidence": {
                  "count": 1
                },
                "id": "statement_count",
                "status": "PASS"
              },
              {
                "id": "unbounded_delete",
                "reason_code": "DELETE_WITHOUT_WHERE",
                "statement_index": 0,
                "status": "BLOCK"
              },
              {
                "evidence": {
                  "relations": [
                    {
                      "name": "customers"
                    }
                  ]
                },
                "id": "protected_relation_mutation",
                "reason_code": "PROTECTED_RELATION_MUTATION",
                "statement_index": 0,
                "status": "BLOCK"
              },
              {
                "id": "expected_statement_kind",
                "statement_index": 0,
                "status": "PASS"
              }
            ],
            "coverage": {
              "assessment_scope": [
                "unbounded_delete",
                "unbounded_update",
                "truncate",
                "destructive_drop",
                "destructive_cascade",
                "alter_table_hazards",
                "nonconcurrent_index",
                "create_extension",
                "protected_relation_mutation",
                "dynamic_or_procedural_sql",
                "expected_statement_kind",
                "multi_statement_evaluation"
              ],
              "checks_not_performed": [
                "privilege_change",
                "explicit_locking",
                "alter_system",
                "availability_maintenance",
                "external_program_execution",
                "drop_schema_or_database",
                "read_cost_and_row_estimation",
                "sensitive_data_access_and_exfiltration",
                "tenant_isolation",
                "semantic_correctness"
              ],
              "checks_performed": [
                "unbounded_delete",
                "unbounded_update",
                "truncate",
                "destructive_drop",
                "destructive_cascade",
                "alter_table_hazards",
                "nonconcurrent_index",
                "create_extension",
                "protected_relation_mutation",
                "dynamic_or_procedural_sql",
                "expected_statement_kind",
                "multi_statement_evaluation"
              ],
              "complete_for_declared_scope": true,
              "dialect": "postgresql"
            },
            "decision": "BLOCK",
            "input_fingerprint": "v1:4634deedb0970b042098df09e6f8bf365f2ddb635a18742c5ffa676844e4fa62",
            "machine_action": "DO_NOT_EXECUTE",
            "reason_codes": [
              "DELETE_WITHOUT_WHERE",
              "PROTECTED_RELATION_MUTATION"
            ],
            "ruleset_version": "1.0.0",
            "statement_count": 1,
            "statements": [
              {
                "administrative": false,
                "changes_privileges": false,
                "changes_schema": false,
                "decision": "BLOCK",
                "index": 0,
                "kind": "DELETE",
                "mutates_data": true,
                "reason_codes": [
                  "DELETE_WITHOUT_WHERE",
                  "PROTECTED_RELATION_MUTATION"
                ],
                "relations": [
                  {
                    "name": "customers"
                  }
                ]
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "jws",
            "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweDY3NDZkRkY3YkRCMUVENDk0MERCZTUwMDI0Nzk1QUQ5N0NiQTA5QWYiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vYXBpLnZyc2FpLnRlY2gvdjEvY2FwYWJpbGl0aWVzL3NxbF9wcmVmbGlnaHQiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3ODg0NjE1MDksInZlcnNpb24iOjF9.OULopCAzxx_zajFG_rzWgWlYjHXVCKRslUhYCtwkHi9EZ1YND8U9bsjpc1IAfu3gtSySeJEoN6w8qwXixMw8Tg"
          },
          {
            "acceptIndex": 1,
            "format": "jws",
            "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiRVBqRldkZDVBdWZxU1NxZU0ycU4xeHp5YmFwQzhHNHdFR0drWnd5VER0MXYiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIiwicGF5VG8iOiJFaUpSRVNaalVDVXVmU2pTYjVpRG1pa1hYZUthM0MxZ1F3WUNaUjR4Rm9jaiIsInJlc291cmNlVXJsIjoiaHR0cHM6Ly9hcGkudnJzYWkudGVjaC92MS9jYXBhYmlsaXRpZXMvc3FsX3ByZWZsaWdodCIsInNjaGVtZSI6ImV4YWN0IiwidmFsaWRVbnRpbCI6MTc4ODQ2MTUwOSwidmVyc2lvbiI6MX0.h1Yfn3Tx0ASkB1iXf6g4kza9_LyfXC2pvyYFUtYFyzr-Lk6AFDvhAGxhWJtsnDqKjRMm9zOux0PYRBv8ZD1nnw"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "payload": {
                  "properties": {
                    "amount": {
                      "type": "string"
                    },
                    "asset": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "resourceUrl": {
                      "type": "string"
                    },
                    "scheme": {
                      "type": "string"
                    },
                    "validUntil": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "resourceUrl",
                    "scheme",
                    "network",
                    "asset",
                    "payTo",
                    "amount"
                  ],
                  "type": "object"
                },
                "signature": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "api.vrsai.tech",
  "lastUpdated": "2026-09-03T18:50:49.736Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-03T18:50:48.113Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vrsai.tech",
    "manifest_name": "api.vrsai.tech",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}