Docs menuRiferimento API
Riferimento API
API REST TurnitPass
Riferimento per gli endpoint autenticati di umanizzazione, parafrasi, rilevamento, citazione, bibliografia e stato delle chiavi 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/humanizeRende più naturale il testo inviato e riduce i segnali IA. Modalità: reduce-aigc, reduce-both, paraphrase, academic-polish.
/api/v1/paraphraseRiscrivi e perfeziona il testo con modalità standard, fluidità, formale, accademico, semplice, creativo, espandi o accorcia.
/api/v1/rewriteEndpoint di pulizia accademica per una migliore struttura, tono e flusso delle frasi.
/api/v1/detectRestituisce punteggio stimato, livello di rischio, metadati e segnali di scrittura per testo incollato o documenti estratti.
/api/v1/citationFormatta DOI, URL o citazione manuale in APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T, OSCOLA o Bluebook. Le risposte includono HTML, testo semplice, BibTeX e RIS.
/api/v1/bibliographyOrdina e formatta un elenco di citazioni nello stile richiesto, con output HTML/testo ed esportazioni BibTeX e RIS.
/api/v1/statusControlla il nome della chiave, il saldo parole rimanente, i limiti di richiesta e l’ultimo utilizzo.
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": "Incolla qui la bozza da rivedere",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["TurnitPass"]
}
200 OK
{
"output": "Il testo umanizzato...",
"words_used": 142,
"words_remaining": 2858
}POST /api/v1/paraphrase
{
"text": "Incolla la bozza che desideri riscrivere",
"mode": "academic",
"synonyms_level": 60
}
POST /api/v1/detect
{
"text": "Incolla il testo da controllare",
"language": "en",
"source_kind": "paste"
}
POST /api/v1/citation
{
"input": "https://example.com/article",
"style": "apa"
}
200 OK
{
"text": "Citazione formattata...",
"bibtex": "@article{...}",
"ris": "TY - JOUR..."
}