Docs menuReferência de API
Referência de API
API REST do TurnitPass
Referência para endpoints autenticados de humanização, paráfrase, detecção, citação, bibliografia e status de chaves de API.
Reference console
Start with the route, payload, and response shape.
The full reference covers every endpoint below. The console shows the contract developers need first: Bearer auth, JSON input, metered output, and status checks.
fetch('/api/v1/humanize', {
method: 'POST',
headers: {
Authorization: 'Bearer tp_live_your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: 'Paste the draft here',
language: 'en',
mode: 'reduce-aigc'
})
}){
"output": "The revised text...",
"words_used": 142,
"words_remaining": 2858,
"status": "succeeded"
}/api/v1/humanize/api/v1/paraphrase/api/v1/rewrite/api/v1/detect/api/v1/citation/api/v1/humanizeDeixa o texto enviado mais natural e reduz sinais de escrita por IA. Modos: reduce-aigc, reduce-both, paraphrase, academic-polish.
/api/v1/paraphraseReescreve e refina o texto com os modos padrão, fluência, formal, acadêmico, simples, criativo, expandir ou encurtar.
/api/v1/rewriteEndpoint de polimento acadêmico para uma estrutura, tom e fluxo de frases mais limpos.
/api/v1/detectRetorna pontuação estimada, nível de risco, metadados e sinais de escrita para textos colados ou documentos extraídos.
/api/v1/citationFormata um DOI, URL ou citação manual em APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T, OSCOLA ou Bluebook. As respostas incluem HTML, texto, BibTeX e RIS.
/api/v1/bibliographyOrdena e formata uma lista de citações no estilo solicitado, com saída HTML/texto e exportações em BibTeX e RIS.
/api/v1/statusVerifica o nome da chave, saldo de palavras restante, limites de solicitação e último uso.
Parameters and options
Rate limits and request limits
Error handling
Error responses use JSON with error,code, and human-readable message fields where possible.
{
"error": "Text exceeds word limit. Maximum 1,000 words allowed.",
"code": "word_limit_exceeded",
"max_words": 1000,
"current_words": 1234
}Examples
POST /api/v1/humanize
{
"text": "Cole aqui o rascunho que deseja revisar",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["TurnitPass"]
}
200 OK
{
"output": "O texto humanizado...",
"words_used": 142,
"words_remaining": 2858
}POST /api/v1/paraphrase
{
"text": "Cole o rascunho que deseja reescrever",
"mode": "academic",
"synonyms_level": 60
}
POST /api/v1/detect
{
"text": "Cole o texto que deseja verificar",
"language": "en",
"source_kind": "paste"
}
POST /api/v1/citation
{
"input": "https://example.com/article",
"style": "apa"
}
200 OK
{
"text": "Citação formatada...",
"bibtex": "@article{...}",
"ris": "TY - JOUR..."
}