Docs

Quickstart

curl -X POST https://api.plainfork.com/v1/check \
  -H "Authorization: Bearer tg_live_..." \
  -H "content-type: application/json" \
  -d '{"text":"The system usually caches a copy for the next request."}'

Auth

Every check and MCP call needs a key of the form tg_live_....

Authorization: Bearer tg_live_...

Routes

RouteMethodAuth
/healthGETnone
/v1/ticsGETnone
/v1/checkPOSTkey
/mcpPOSTkey

Check

POST /v1/check
{"text": "..."}

The reply has flag, tics, names, evidence, fix, message, reading, source, guide, and ms.

Quotas

PlanPriceCalls a month
Starter$1950,000
Team$99500,000

Responses carry x-quota-limit and x-quota-remaining. A used-up month returns 429 with Retry-After.

MCP

claude mcp add --transport http essay-guard https://api.plainfork.com/mcp \
  -H "Authorization: Bearer tg_live_..."

Tools: check_prose, get_style_contract, get_essay_brief, list_tics.

Errors

StatusCode
400invalid_json, invalid_text, invalid_request
401missing_key, invalid_key
413text_too_large, body_too_large
415unsupported_media_type
429quota_exceeded

Limits

Text up to 20,000 characters. Body up to 1 MB. Checks use deterministic rules only; no model runs on the server.