Docs

Live in five minutes.

isonyma is one HTTP call at three moments in an account’s life. Your coding agent can add it for you.

Quickstart

  1. Get a key. We are in early access: ask for an API key and we send you a test key and a live key.
  2. Give your agent one line. In Claude Code, Cursor or any coding agent, paste:
    api.isonyma.com/agent.md
    The agent finds your signup, credit grant and LLM call sites, adds the snippet, runs doctor and shows you the first answer. It asks you for the key once, and for consent before it reads your users table.
  3. Read the result. doctor prints a line per check and the first isonyma answer. backfill prints where money already leaks to farms.

isonyma starts in shadow mode: it records every decision and blocks nothing.

Without an agent

Download the snippet into your server code. It hashes signals locally, times out after 300 ms and never throws.

curl -fsSL https://api.isonyma.com/isonyma.ts -o lib/isonyma.ts

Set ISONYMA_API_KEY in your environment, then call it after the response is sent:

import { after } from "next/server";
import { headers } from "next/headers";
import { isonymaEvent, isonymaRequestSignals } from "@/lib/isonyma";

const signals = { ...isonymaRequestSignals(await headers()), email: user.email };
after(() => isonymaEvent({ type: "signup", account_id: user.id, signals }));

Not on TypeScript? Any language works: send POST https://api.isonyma.com/v0/events with Authorization: Bearer $ISONYMA_API_KEY. Hash identifiers before you send them, as described in agent.md; the API rejects raw emails and phone numbers.

Events

typeWhenAdd
signupRight after a user record is createdsignals
credit_grantWhen free credits or a trial are assignedamount_usd, signals
llm_callEach LLM request in an account’s first 7 daysamount_usd, signals, llm

account_id is your internal user id, never an email. Signals are optional and hashed on your server: email, IP, user agent, device id, card fingerprint, phone, ASN and country. Pass every one you already have; do not collect new data for isonyma.

The answer

{
  "recommendation": "hold",
  "applied": false,
  "mode": "shadow",
  "summary": "47 accounts share one card and one script. $1,240.00 at risk. Shadow mode: nothing was blocked.",
  "reasons": [{ "code": "linked_accounts", "text": "47 accounts share one card and one script" }],
  "usd_at_risk": 1240,
  "cluster": { "id": "cls_9b2f…", "size": 47 }
}

recommendation is allow, review or hold. summary is one line for people; reasons[].code is stable for code. There is no numeric risk score. In shadow mode applied is always false.

Prompt DNA

For llm_call, pass the request object you send to the model as llm. The snippet turns it into keyed hashes of the prompt template, its shape and the request setup, then drops it. The prompt text never leaves your server. Accounts that share a script are linked even with different cards and IPs.

If your product sends prompts of its own, such as suggested prompts or templates, register them so they never link anyone:

npx -y isonyma presets isonyma-presets.txt

Bans

Where you ban a user for abuse or fraud, add one line. isonyma remembers the cluster and flags its members when they come back with new accounts.

after(() => isonymaLabel(user.id, "banned"));  // on ban
after(() => isonymaLabel(user.id, "normal"));  // on unban

Audit your history

Export your users table to CSV and load it. Values are hashed on your machine before anything is sent.

npx -y isonyma backfill users.csv --dry-run   # check the columns
npx -y isonyma backfill users.csv

Useful columns, by any common name: id (required), created_at, email, signup_ip, user_agent, device_id, card_fingerprint, phone, credits_usd, llm_cost_usd, banned. The report is also at GET /v0/report.

CLI

CommandWhat it does
npx -y isonyma doctorChecks the key, network, a test event, the snippet and the call sites
npx -y isonyma simulateSends synthetic farms and ordinary people as test data and shows what is flagged
npx -y isonyma backfill <file>Loads your history and prints where money leaks
npx -y isonyma presets <file>Registers your product’s own prompts
npx -y isonyma slackConnects the weekly Slack digest (webhook from ISONYMA_SLACK_WEBHOOK)

Reference

Errors are application/problem+json with code and detail. Send an Idempotency-Key header to make a retried call return the same decision.