Docs menuReferência de API
Referência de API
API REST do TurnitPass
Referência para rotas autenticadas de revisão, paráfrase, deteção, citação, bibliografia e estado 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/humanizeRevê o texto enviado e reduz sinais de escrita tipo IA. Modos: reduce-aigc, reduce-both, paraphrase, academic-polish.
/api/v1/paraphraseReescreve e aprimora o texto com os modos padrão, fluência, formal, académico, simples, criativo, expandir ou encurtar.
/api/v1/rewriteRota de polimento académico para uma estrutura, tom e fluxo de frases mais limpos.
/api/v1/detectDevolve estimativas de sinais de IA, metadados e notas de revisão 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 a etiqueta da chave, o saldo de palavras e os limites do pedido.
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 o rascunho assistido por IA que pretende rever",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["Nome próprio"]
}
200 OK
{
"output": "O texto revisto...",
"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 rascunho que pretende 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..."
}