78trust / 100

Yaml To Json

by agentshelf.syntexa.ch in Security & trust

x402 APIPassing, checked 2 h ago

Call when an agent needs YAML converted to JSON. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/yaml-to-json first.

POST https://agentshelf.syntexa.ch/v1/yaml-to-json

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
29 ms typical, 44 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentshelf.syntexa.ch/v1/yaml-to-json" \
  -H "content-type: application/json" \
  -d '{"yaml":"name: Ada\nrole: eng\n"}'
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%2Fagentshelf.syntexa.ch%2Fv1%2Fyaml-to-json
const res = await pay("https://agentshelf.syntexa.ch/v1/yaml-to-json", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"yaml":"name: Ada\nrole: eng\n"}),
});
console.log(await res.json());

Example input

{
  "yaml": "name: Ada\nrole: eng\n"
}

Example output

{
  "billed": true,
  "json": {
    "name": "Ada",
    "role": "eng"
  },
  "ok": true,
  "receipt_id": "rcpt_01EXAMPLE000000000000000",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402167 ms$0.001
5 h agoPassed40228 ms$0.001
9 h agoPassed40227 ms$0.001
13 h agoPassed40229 ms$0.001
16 h agoPassed40227 ms$0.001
19 h agoPassed40230 ms$0.001
23 h agoPassed40244 ms$0.001
27 h agoPassed40228 ms$0.001
31 h agoPassed40228 ms$0.001
34 h agoPassed40230 ms$0.001
38 h agoPassed40229 ms$0.001
41 h agoPassed40230 ms$0.001
47 h agoPassed40226 ms$0.001