Docs menuएपीआई संदर्भ
एपीआई संदर्भ
TurnitPass REST एपीआई
प्रमाणित लेखन सुधार, पैराफ़्रेज़, AI जाँच, उद्धरण, संदर्भ सूची और 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/humanizeभेजे गए पाठ में AI-जैसे लेखन संकेत कम करता है। मोड: reduce-aigc, reduce-both, paraphrase, academic-polish।
/api/v1/paraphraseपाठ को मानक, प्रवाह, औपचारिक, शैक्षणिक, सरल, रचनात्मक, विस्तार या संक्षिप्त मोड से फिर से लिखता है।
/api/v1/rewriteस्पष्ट वाक्य संरचना, लहजा और संदर्भ प्रवाह के लिए शैक्षणिक संपादन फ़ंक्शन।
/api/v1/detectचिपकाए गए पाठ या दस्तावेज़ों से निकाले गए पाठ के लिए AI-जैसे लेखन संकेत अनुमान, मेटाडेटा और समीक्षा नोट देता है।
/api/v1/citationDOI, URL, या मैन्युअल संदर्भों को APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T, OSCOLA, या Bluebook प्रारूप में व्यवस्थित करता है। प्रतिक्रियाओं में HTML, सादा पाठ, BibTeX और RIS शामिल हैं।
/api/v1/bibliographyअनुरोधित शैली में संदर्भों की सूची को क्रमबद्ध और व्यवस्थित करता है; HTML/पाठ आउटपुट के साथ BibTeX और RIS फ़ाइल निर्यात का समर्थन करता है।
/api/v1/statusकुंजी लेबल, शेष शब्द और अनुरोध सीमा की जाँच करें।
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": "Paste the AI-assisted draft you want to revise",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["विशेष नाम"]
}
200 OK
{
"output": "सुधरा हुआ परिणाम...",
"words_used": 142,
"words_remaining": 2858
}POST /api/v1/paraphrase
{
"text": "जिस मसौदे को फिर से लिखना है उसे चिपकाएँ",
"mode": "academic",
"synonyms_level": 60
}
POST /api/v1/detect
{
"text": "Paste the text you want to check",
"language": "en",
"source_kind": "paste"
}
POST /api/v1/citation
{
"input": "https://example.com/article",
"style": "apa"
}
200 OK
{
"text": "फ़ॉर्मैट किया हुआ उद्धरण...",
"bibtex": "@article{...}",
"ris": "TY - JOUR..."
}