75trust / 100

Json Pointer Redact Execute

by tradepilotusa.com in Other

x402 APIPassing, checked 5 min ago

Remove explicitly named RFC 6901-style JSON object paths; replace targeted array elements with null to preserve indices. Handles escaped slashes/tilde, reports missing paths, and rejects duplicate keys or lossy numbers. Does not automatically detect sensitive information.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/json_pointer_redact/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
757 ms typical, 1.1 s slowest 5%
Last check
5 min ago
Next check
in 26 min

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://www.tradepilotusa.com/api/agent-commerce/v1/services/json_pointer_redact/execute' \
  -H 'content-type: application/json' \
  --data-raw '{"json":"{\"name\":\"Example\",\"contact\":{\"email\":\"[email protected]\"}}","pointers":["/contact/email"]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Fjson_pointer_redact%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/json_pointer_redact/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"json\":\"{\\\"name\\\":\\\"Example\\\",\\\"contact\\\":{\\\"email\\\":\\\"[email protected]\\\"}}\",\"pointers\":[\"/contact/email\"]}",
});
console.log(await res.json());

Example input

{
  "json": "{\"name\":\"Example\",\"contact\":{\"email\":\"[email protected]\"}}",
  "pointers": [
    "/contact/email"
  ]
}

Example output

{
  "provenance": {
    "execution": "deterministic_local",
    "model_used": false,
    "network_request_performed": false
  },
  "request_id": "example_json_pointer_redact",
  "result": {
    "array_policy": "Targeted array elements become null to preserve indices",
    "json": "{\n  \"name\": \"Example\",\n  \"contact\": {}\n}",
    "missing_pointers": [],
    "removed_count": 1,
    "scope": "Only explicitly supplied paths; no automatic sensitive-data detection"
  },
  "utility": "json_pointer_redact"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 min agoPassed402782 ms$0.01
4 h agoPassed4021.0 s$0.01
8 h agoPassed402994 ms$0.01
12 h agoPassed402757 ms$0.01
16 h agoPassed402715 ms$0.01
19 h agoPassed402640 ms$0.01
23 h agoPassed402667 ms$0.01
26 h agoPassed4021.0 s$0.01
30 h agoPassed4021.1 s$0.01
33 h agoPassed402694 ms$0.01
37 h agoPassed402830 ms$0.01
40 h agoPassed4021.0 s$0.01
45 h agoPassed402656 ms$0.01
2 days agoPassed402701 ms$0.01
2 days agoPassed4021.1 s$0.01