Skip to content
Fourohtwo

agent402.tools/api/redact-chat

Mask personal details in a text on this server, then send only the masked text to a chat model, in one paid call. Email addresses, card-like runs of 13 to 16 digits, US SSNs written 123-45-6789, US-style phone numbers (ten digits, with an optional short country prefix) and IPv4 addresses are.

BasePolygonArbitrumMonadAvalancheSei+5Answering
POSThttps://agent402.tools/api/redact-chat

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/redact-chat", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"instruction":"Write a short, polite reply confirming the new meeting time.","restoreInAnswer":true,"text":"Hi, this is ada@example.com (555-123-4567). Can we move our call to Friday at 2pm?"}),
});
console.log(await res.json());

Example input

{
  "instruction": "Write a short, polite reply confirming the new meeting time.",
  "restoreInAnswer": true,
  "text": "Hi, this is ada@example.com (555-123-4567). Can we move our call to Friday at 2pm?"
}