80trust / 100

Proxy Text Classify

by Text Classifier, Custom Labels in Email & messaging

x402 APIPassing, checked 3 h ago

Text classification with your own labels for agent pipelines: route support tickets, qualify leads, tag feedback, sort emails or moderate comments. Send the text (up to 6,000 characters) and 2 to 30 labels, optionally with a description each; get the best label with a confidence from 0 to 1 and a one-sentence reason, or every label that applies with multi_label. Labels are enforced by a JSON schema, so the answer is always one of yours. Any language. Instructions inside the text are ignored.

POST https://agentsvc.io/api/v1/proxy/text-classify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
39 ms typical, 114 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://agentsvc.io/api/v1/proxy/text-classify" \
  -H "content-type: application/json" \
  -d '{"labels":["bug report","feature request","billing question","praise","spam"],"multi_label":true,"text":"Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?"}'
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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Ftext-classify
const res = await pay("https://agentsvc.io/api/v1/proxy/text-classify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"labels":["bug report","feature request","billing question","praise","spam"],"multi_label":true,"text":"Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?"}),
});
console.log(await res.json());

Example input

{
  "labels": [
    "bug report",
    "feature request",
    "billing question",
    "praise",
    "spam"
  ],
  "multi_label": true,
  "text": "Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?"
}

Example output

{
  "data": {
    "chars_checked": 91,
    "confidence": 0.9,
    "label": "feature request",
    "labels": [
      {
        "confidence": 0.9,
        "label": "feature request"
      },
      {
        "confidence": 0.85,
        "label": "billing question"
      },
      {
        "confidence": 0.8,
        "label": "praise"
      }
    ],
    "model": "claude-haiku-5-5",
    "multi_label": true,
    "reason": "The text praises the app, requests dark mode, and asks about a double charge."
  },
  "success": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402114 ms$0.002
5 h agoPassed402110 ms$0.002
10 h agoPassed40239 ms$0.002
13 h agoPassed402281 ms$0.002
16 h agoPassed40229 ms$0.002
22 h agoPassed40232 ms$0.002