Be first in. Get early access

Tenhatch Checks

All documentation

API keys

An API key lets a script, a CI job or an AI agent run the checks without a browser, through the REST API or the MCP server. Keys are created and revoked on Account → API keys. The free tier allows 1 active key, the Checks plan 5.

Creating a key

  1. Open Account → API keys and press Create key.
  2. Give it a name you will recognise later, such as "CI" or "Claude Desktop".
  3. Copy the key now. It is shown once; afterwards only its first characters (tenhatchchecks_live_3f9c…) are visible.

Keys starting with tenhatchchecks_test_ come from a test deployment and only work there.

Using a key

Send it as a bearer token:

curl https://checks.tenhatch.com/api/v1/checks/sms-opt-out \
  -H "Authorization: Bearer tenhatchchecks_live_…" \
  -H "Content-Type: application/json" \
  -d '{"text": "STOP"}'

X-API-Key: <key> works as well. Every check that answers uses its credits (1 or 2) from the account's monthly credits, the same credits the web app uses. The response's usage object tells you how many remain. For the MCP server, send the key as a header in your client's server settings (agent access).

Rate limits

60 requests per minute per key by default. The X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers are on every response; a 429 includes Retry-After in seconds.

Revoking a key

Press Revoke next to the key. Requests with a revoked key get HTTP 401 immediately. Revoke and recreate a key if it was ever pasted somewhere public.

Errors

Every error is JSON: {"error": {"code": "...", "message": "..."}}. Codes: unauthorized (401), invalid_input (400), payment_required (402, this month's credits used up), rate_limited (429), unavailable (503, the check cannot answer right now; not charged), internal (500, retry with backoff).