Developers

API documentation

One endpoint, plain HTTP, JSON in and out. Every API key draws from its owner's monthly plan quota — the Free plan alone includes 100 requests every month, great for testing or light non-commercial use. Upgrade for a higher limit.

🔑

Get your API key

Create a free account then generate a key from your account page.

Authentication

Pass your key as a bearer token. If your HTTP client can't send custom headers, an X-API-Key header or an api_key form field both work too.

header
Authorization: Bearer tp_live_xxxxxxxxxxxxxxxxxxxxxxxx

Endpoint

MethodURL
POSThttps://textperfector.com/api/v1/correct

Parameters

NameTypeRequiredDescription
textstringYesText to correct, up to 50,000 characters.
correction_levelstringNoconservative, standard (default) or reformulate.
translate_optionboolNoSet to 1 to also translate the corrected text.
target_languagestringIf translating2-letter language code, e.g. fr, es, de.

Example request

curl
curl -X POST https://textperfector.com/api/v1/correct \
  -H "Authorization: Bearer tp_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -d text="I has went to the store yesterday." \
  -d correction_level=standard

Example response

200 OK
{
  "success": true,
  "corrected_text": "I went to the store yesterday.",
  "language_code": "en",
  "language_name": "English",
  "translated_text": null,
  "plan_requests_remaining": 99
}

Errors

StatuserrorMeaning
401missing_api_key / invalid_api_keyNo key provided, or the key is invalid/revoked.
400missing_text / text_too_longRequest body is invalid.
402insufficient_quotaMonthly plan quota used — upgrade your plan.
500server_errorSomething went wrong on our end — please retry.

Privacy

Requests made through the API are tied to your account (that's how quota and billing work), but your text itself is 100% confidential and never stored in the cloud, exactly like the website — never shared, sold, or used to train AI models. See our privacy policy for details.

Get your API key