Four bounded, machine-discoverable utilities for software agents:
POST /v1/patch-guard — atomic RFC 6902 safety evaluation ($0.01)POST /v1/crypto-price-consensus — median across public price sources ($0.001)POST /v1/polymarket-odds — normalized odds and movers ($0.001)POST /v1/json-repair — repair, canonicalize, and hash JSON ($0.001)OpenAPI 3.1 · machine manifest · health
POST https://patch-guard-api.me-e51.workers.dev/v1/patch-guard
Content-Type: application/json
{
"document": {
"profile": {
"name": "Ada",
"role": "reader"
},
"revision": 7
},
"patch": [
{
"op": "test",
"path": "/revision",
"value": 7
},
{
"op": "replace",
"path": "/profile/role",
"value": "writer"
},
{
"op": "replace",
"path": "/revision",
"value": 8
}
],
"protectedPaths": [
"/profile/name"
],
"schema": {
"type": "object",
"required": [
"profile",
"revision"
],
"properties": {
"profile": {
"type": "object",
"required": [
"name",
"role"
],
"properties": {
"name": {
"type": "string"
},
"role": {
"enum": [
"reader",
"writer"
]
}
}
},
"revision": {
"type": "integer",
"minimum": 1
}
}
}
}
The endpoint uses the open x402 payment protocol. Send the request once, read the PAYMENT-REQUIRED response header, authorize the quoted USDC amount, and retry with PAYMENT-SIGNATURE.