78trust / 100
Newline Trim
by agentshelf.syntexa.ch in Developer tools
x402 APIPassing, checked 3 h ago
Call when an agent needs newlines normalized to trim. No network and no LLM. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/newline-trim first.
POST https://agentshelf.syntexa.ch/v1/newline-trim
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 30 ms typical, 44 ms slowest 5%
- Last check
- 3 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/newline-trim" \
-H "content-type: application/json" \
-d '{"text":"Hello, World!"}'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%2Fnewline-trim
const res = await pay("https://agentshelf.syntexa.ch/v1/newline-trim", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"Hello, World!"}),
});
console.log(await res.json());Example input
{
"text": "Hello, World!"
}Example output
{
"billed": true,
"detail": "trim",
"ok": true,
"receipt_id": "rcpt_01EXAMPLE000000000000000",
"text": "hello",
"warnings": []
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 44 ms | $0.01 |
| 6 h ago | Passed | 402 | 40 ms | $0.01 |
| 10 h ago | Passed | 402 | 30 ms | $0.01 |
| 13 h ago | Passed | 402 | 30 ms | $0.01 |
| 17 h ago | Passed | 402 | 31 ms | $0.01 |
| 20 h ago | Passed | 402 | 29 ms | $0.01 |
| 24 h ago | Passed | 402 | 43 ms | $0.01 |
| 27 h ago | Passed | 402 | 31 ms | $0.01 |
| 31 h ago | Passed | 402 | 228 ms | $0.01 |
| 35 h ago | Passed | 402 | 29 ms | $0.01 |
| 38 h ago | Passed | 402 | 32 ms | $0.01 |
| 43 h ago | Passed | 402 | 30 ms | $0.01 |
| 46 h ago | Passed | 402 | 27 ms | $0.01 |
| 2 days ago | Passed | 402 | 25 ms | $0.01 |