Skip to content
TurnitPass
DevelopersAPI v1Get an API key
Browse documentation

DevelopersDeveloper Docs

TurnitPass API documentation

Call the humanize, detect, and citation endpoints with an API key.

Quick example

Send text to /humanize with your API key. The response returns the rewritten text, words used, and remaining balance.

POST /api/v1/humanize
curl -X POST https://turnitpass.com/api/v1/humanize \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","mode":"reduce-aigc"}'
Response
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 },
  "metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}

Docs

Request lifecycle

  1. 1Authenticate the key
  2. 2Validate the input
  3. 3Run the tool
  4. 4Deduct words and respond

Production checklist

Server-side calls
Keep API keys out of client bundlesCall TurnitPass from your backend, worker, or server action.
Retries
Retry 429 and 5xx, not 4xxFix the payload before retrying a 4xx response.
Word balance
Check /status before large jobsQueue the job, ask the user to top up, or split the document.