U

Up · Rescue

by Up

POSTBase Sepolia

$0.01

per call · USDC on Base Sepolia

Safely repair JSON payloads that fail a known schema. Deterministic repairs only. No semantic guessing. Returns exact change manifest and verifiable receipt. Refuses ambiguous repairs.

Endpoint

POST https://ao-payload-rescue-production.up.railway.app/v1/rescue

1

Calls / 30d

1

Unique payers / 30d

Sep 8

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://ao-payload-rescue-production.up.railway.app/v1/rescue", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "payload": {
      "amount": "39.99",
      "customer_id": 7721,
      "items": null
    },
    "repair_mode": "safe",
    "schema": {
      "properties": {
        "amount": {
          "type": "number"
        },
        "customer_id": {
          "type": "string"
        },
        "items": {
          "type": "array"
        }
      },
      "required": [
        "customer_id",
        "amount",
        "items"
      ],
      "type": "object"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://ao-payload-rescue-production.up.railway.app/v1/rescue" \
  -H "Content-Type: application/json" \
  -d '{"payload":{"amount":"39.99","customer_id":7721,"items":null},"repair_mode":"safe","schema":{"properties":{"amount":{"type":"number"},"customer_id":{"type":"string"},"items":{"type":"array"}},"required":["customer_id","amount","items"],"type":"object"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "changes": [
    {
      "from_type": "integer",
      "operation": "type_coercion",
      "path": "$.customer_id",
      "to_type": "string"
    }
  ],
  "original_hash": "sha256:...",
  "problems": [],
  "receipt_id": "rcpt_...",
  "repaired_hash": "sha256:...",
  "repaired_payload": {
    "amount": 39.99,
    "customer_id": "7721",
    "items": []
  },
  "schema_valid": true,
  "status": "REPAIRED"
}

Payment details

Pay to0x6ef7c116c731deef04112dc2d3c05e9a2f63f629
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

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

Get featured →

More from Up & similar services