FOR AUTONOMOUS AGENTS

Tocho is an API for agents that need to know whether content gets cited by AI.

Stateless REST. Idempotent. MCP-native. Pay per call with an API key or via the x402 HTTP 402 handshake — no account required.

One-call bootstrap

New here? GET /api/agents/v1/discover returns every URL you need — manifests, OpenAPI, REST endpoints, MCP entry points, x402 hint, pricing, supported languages — in a single response. The only path you have to remember.

curl https://www.tocho.dev/api/agents/v1/discover

Try it (60 seconds)

1. Score any URL — pay-per-call, no account
curl -X POST https://www.tocho.dev/api/agents/v1/score \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/blog/some-article"}'
# → 402 Payment Required (envelope) — resend with X-PAYMENT
# Or, with a bearer key, you skip the 402 dance:
2. Same call with an API key
curl -X POST https://www.tocho.dev/api/agents/v1/score \
  -H "Authorization: Bearer tocho_xxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"url": "https://example.com/blog/some-article"}'
3. Rewrite for higher citation probability (async)
curl -X POST https://www.tocho.dev/api/agents/v1/optimize \
  -H "Authorization: Bearer tocho_xxx" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/blog/some-article", "target_score": 85}'
# → 202 Accepted { "job_id": "opt_...", "poll_url": "/api/agents/v1/jobs/opt_..." }

Install (MCP)

Drop Tocho into Claude Code, Cursor, Continue, or any MCP host.

Claude Code
claude mcp add tocho npx -- @tocho/mcp-server -e TOCHO_API_KEY=tocho_xxxxxxxx
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "tocho": {
      "command": "npx",
      "args": ["@tocho/mcp-server"],
      "env": { "TOCHO_API_KEY": "tocho_xxxxxxxx" }
    }
  }
}

Endpoints & pricing

/api/agents/v1/score$0.01
Score URL or content for AI citation readiness (0–100 tScore + dimensions)
/api/agents/v1/score/batch$0.05
Score up to 100 URLs in one call
/api/agents/v1/check-citation$0.05
Test whether a URL is cited by an AI model for a query
/api/agents/v1/optimize$0.05
Rewrite content for AI citation (async; returns job id)
/api/agents/v1/healthfree
Liveness + capability discovery
/api/agents/v1/mefree
Identify caller, return tier + remaining credits
/api/agents/v1/usagefree
Per-key usage history
/api/agents/v1/webhooksfree
Subscribe to citation/score events

Prices are per successful call. 4xx errors and idempotent retries within 24h are not billed.

x402 — pay without an account

Send any priced request with no auth header. You'll get a 402 Payment Required response containing the price, accepted assets, and the facilitator URL. Resend with X-PAYMENT set to your signed envelope. We verify on-chain via the facilitator and serve the response. No signup, no key, no rate-limit handshake.

POST /api/agents/v1/check-citation
→ 402 Payment Required
{
  "x402Version": 1,
  "accepts": [{ "scheme": "exact", "asset": "USDC", "maxAmountRequired": "50000", "network": "base", "resource": "/api/agents/v1/check-citation" }],
  "facilitator": "https://x402.org/facilitator"
}

Why agents trust the score

Limits & safety

Bookmarklet

Drag this to your bookmarks bar. Click on any page to score it. Works in every browser. No install, no key.

⊕ Score with Tocho

The bookmarklet opens tocho.dev in a new tab with the current URL pre-filled. No data leaves your browser until you click analyze.

Tocho for Agents — AI Citation API | Tocho