x402 · $0.001–$0.01 USDC · Base

Patch Guard Utility Portfolio

Four bounded, machine-discoverable utilities for software agents:

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.