Red Paper™ Plagiarism Checker & AI Detector Tool Logo - Online Plagiarism Detection
Menu

Red Paper Dashboard

Comprehensive Document Analysis & Plagiarism Detection

API Documentation

Integrate RedPaper plagiarism checking and AI detection into your application.

Authentication

All API requests require an API key. Generate one from API Key Management.

Send your key via the Authorization header:

Authorization: Api-Key YOUR_API_KEY

You can also use the Bearer prefix (Authorization: Bearer YOUR_API_KEY), or pass api_key as a POST field or query parameter. A missing or wrong key returns 401.

Requests are limited to 200 per minute per IP address; above that you get 429.

Base URL

https://www.checkplagiarism.ai/api/plagcheck/

Endpoints

Submit Scan — Upload a document for plagiarism checking POST /api/plagcheck/scan
Submit a document for plagiarism scanning. Send as multipart/form-data.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Request Body  multipart/form-data
Core
scan_id string Required
Unique identifier for this scan (e.g. UUID). Letters, digits, - and _ only, max 100 characters. Must be unique per request — reusing a scan_id returns HTTP 409.
file file Required
Document file to scan. Supported formats: .pdf .docx .doc .txt .rtf
filename string Optional
Custom filename for the scan. Used in reports and responses.
default: uploaded file name
action integer Optional
0 = auto scan — calculates credit cost, deducts credits, and starts scanning immediately. 1 = manual — calculates and reports cost via the credit_calculation webhook, then waits for you to call /scan/{scan_id}/start. Use action=1 when you want to confirm cost before charging. Any other value returns 400 and nothing is charged.
default: 0 0 or 1
webhook_url string Required
HTTPS URL for receiving scan results and status updates via webhook. The host must resolve to a public internet address (private, loopback and link-local addresses are rejected with 400). Redirects are not followed. Every webhook is signed — see Verifying webhooks.
Scan Options
include_ai boolean Optional
Enable AI content detection. Detects AI-generated text and returns AI percentage. With include_ai=false no AI score, AI PDF or ai_report_ready webhook is produced.
default: false
References & quotes fixed
Whether the bibliography/references and quoted text count towards the similarity score is set for all scans on our side and cannot be changed per request. The scan_options object in the Report Detail response shows what was applied to your scan.
language string Optional
Document language. Non-English languages automatically route to our script-aware engine — using the default English path on these returns NA similarity. Case-insensitive.
Supported — English (default): English.
Auto-detect: auto — we detect the language from the document text. The detected language is returned in the language field of the response.
Indian regional languages (18):
AssameseBanglaBengaliGujaratiHindiKannadaMalayalamManipuriMarathiOriyaPunjabiSanskritSanthaliSindhiSinhalaTamilTeluguUrdu
Foreign languages (177):
AbkhazianAdygheAfrikaansAlbanianAlemannischAmharicArabicAragoneseAramaicArmenianAromanianAsturianuAzerbaijaniBasa BanjarBasaAcehBasaBaliBashkirBasqueBavarianBelarusianBishnupriyaBosnianBulgarianCantoneseCatalanCebuanoCentral KurdishChechenChichewaChinese (Simplified)Chinese (Traditional)ChuvashColognianCornishCorsicanCroatianCzechDanishDivehiDoteliDutchDzongkhaEgyptian ArabicErzyaEsperantoEstonianEweExtremaduranFaroeseFilipinoFinnishFrenchGalicianGauraniGeorgianGermanGilakiGreekHaitian CreoleHausaHawaiianHebrewHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKabardianKabiyeKarachay-BalkarKarakalpakKashubianKazakhKhmerKinyarwandaKomi-PermyakKoreanKurdishKyrgyzLadinoLaoLatinLatvianLingalaLithuanianLower SorbianLuxembourgishMacedonianMalagasyMalayMalteseMandarinManxMaoriMinangMirandeseMokshaMonMongolianMyanmarNauruanNepaliNorthern LuriNorthern SamiNorthern SothoNorwegianNovialNynorskOccitanOromoOssetianPaliPangasinanPapiamentoPashtoPennsylvania GermanPolishPortugueseQuechuaRomanianRomanshRussia BuriatRussianSakhaSamoanSangoScots GaelicSerbianSesothoShanShonaSilesianSlovakSlovenianSomaliSouth AzerbaijaniSpanishSundaneseSwahiliSwedishTagalogTajikTalianTatarThaiTigrinyaTok PisinTongaTsongaTswanaTurkishTurkmenTuvanTwiTwi-AkanUdmurtUkrainianUpper SorbianUyghurUzbekVendaVenetianVietnameseWalloonWarayWelshWest FrisianWolofXhosaYiddishYorubaZeelandicZulu
Pass the name exactly as listed (case does not matter), e.g. language=Chinese (Simplified).
⚠ AI detection is not supported for non-English languages. If you pass any non-English language (regional or foreign) with include_ai=true, AI detection is silently disabled — only the plagiarism similarity score and PDF are produced. No ai_report_ready webhook will fire.
default: English
Branding
custom_logo file Optional
Custom logo image for the PDF report header. Supported: .png .jpg .jpeg .svg .webp
title_color string Optional
Hex color for report title text (e.g. #2563eb).
default: #991b1b hex format
report_title string Optional
Custom title for the PDF report header.
default: Red Paper Plagiarism Report
report_subtitle string Optional
Custom subtitle for the PDF report header.
default: Official Red Paper Evaluation
submitted_by string Optional
Custom name for the "Submitted By" field on reports.
default: account name
Other
qr_code_url string Optional
Custom URL for the QR code on reports and certificates.
default: RedPaper verification link
Response:
{ "success": true, "message": "Document submitted for scanning", "data": { "scan_id": "a1b2c3d4-...", "filename": "document.pdf", "status": "pending", "expected_credits": 5, "total_words": 1180, "language": "English", "is_ai_enabled": true, "credits_used": 5, "credits_remaining": 95 } }
HTTP 202. With action=1 the response carries "status": "cost_checked" and no credits_used / credits_remaining — nothing is charged until you call /scan/{scan_id}/start. The word count and credit cost are computed on our side at upload time: 1 credit = 250 words, minimum 4 credits per document; AI detection is included in the same credits.
Errors: 400 invalid parameters, unsupported language, or a file we can read fewer than 50 words from (nothing is charged); 402 no credits / expired subscription; 409 the scan_id was already used; 503 the scanning engine could not accept the document right now (credits refunded, the upload is kept — call /scan/{scan_id}/start to retry).
Start Scan — Begin scanning after credit check (action=1 only) POST /api/plagcheck/scan/{scan_id}/start
Manually start a scan after credit-check. Used with the action=1 workflow — deducts credits, submits the staged file to the scanning engine, and begins scanning. Not needed for action=0 (which auto-starts). Also use it to run a scan that stopped with insufficient_credits after topping up, or to retry one the engine rejected. Calling it again for a scan that is already running returns "status": "already_submitted" and charges nothing.
Path Parameters
scan_id string Required
The scan ID returned from the Submit Scan endpoint.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response:
{ "success": true, "message": "Scan started successfully", "data": { "scan_id": "a1b2c3d4-...", "status": "pending", "credits_used": 5, "credits_remaining": 95 } }
Errors: 400 if the scan is not in cost_checked / insufficient_credits state. 402 if subscription expired or credits insufficient. 410 if the staged upload is gone (uploads not started within 7 days are deleted — submit again). 503 if the scanning engine could not accept the document right now (credits refunded; you can call /start again).
Check Status — Get current scan status and cost info POST /api/plagcheck/status/{scan_id}
Check the current status of a scan. Returns report summary if completed, or cost info if still processing.
Path Parameters
scan_id string Required
The scan ID to check status for.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response (completed scan):
{ "success": true, "data": { "scan_id": "a1b2c3d4-...", "status": "completed", "similarity_percentage": 25.5, "is_ai_enabled": true, "percentage_of_ai_words": 12.3, "plagiarism_report_ready": true, "ai_report_ready": false, "checked_at": "2026-02-12T11:45:03.483081+00:00" } }
Note: plagiarism_report_ready and ai_report_ready indicate whether each PDF is downloadable yet. The plagiarism PDF lands first; the AI PDF typically follows minutes to a few hours later. Poll this endpoint or wait for the report_ready webhook to know when each becomes available.
Response (pending / cost checked):
{ "success": true, "data": { "scan_id": "a1b2c3d4-...", "status": "cost_checked", "expected_credits": 5, "total_words": 5000 } }
Report Detail — Get full plagiarism report with AI detection data POST /api/plagcheck/reports/{scan_id}
Get detailed report for a completed scan. Includes similarity breakdown, AI detection, word counts, and certificate info. Only relevant fields are returned — null/unused fields are omitted.
Path Parameters
scan_id string Required
The scan ID to retrieve the report for.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response:
{ "success": true, "data": { "scan_id": "a1b2c3d4-...", "filename": "document.docx", "status": "completed", "checked_at": "2026-02-12T11:45:03.483081+00:00", "has_report_file": true, "similarity_percentage": 34.9, "total_words": 5000, "is_ai_detected": true, "ai_percentage": 12.3, "human_percentage": 87.7, "has_ai_report_file": false, "scan_options": { "include_paraphrasing": false, "exclude_references": true, "exclude_quotes": false, "include_ai": true } } }
Note: is_ai_detected means AI detection was enabled for the scan (not that AI text was found). ai_percentage, human_percentage only appear when it is enabled. scan_options shows the reference/quote exclusion that was actually applied (it is the same for all scans and is not set per request). The passage-level breakdown (every matched source, highlighted text) lives in the PDF reports — download them with the endpoints below.
Download Report — Download plagiarism report as PDF POST /api/plagcheck/reports/{scan_id}/download
Download the plagiarism report as a PDF file. Returns the PDF binary directly with Content-Type: application/pdf.
Path Parameters
scan_id string Required
The scan ID to download the report for.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response: PDF file download (Content-Disposition: attachment)
Error Response:
{ "success": false, "error": "Report not found" }
Note: 404 until the PDF is ready (check plagiarism_report_ready in /status). Report PDFs are kept on our servers for a limited time only — download and store them on your side as soon as they are ready; after that the download returns 404 "Report file is no longer available".
Download AI Report — Download AI detection report as PDF POST /api/plagcheck/reports/{scan_id}/ai-download
Download the AI detection report as a PDF file (separate from the plagiarism PDF). Only available for scans submitted with include_ai=true, and only once the AI PDF has landed — check ai_report_ready in /status or wait for the ai_report_ready webhook. GET also works.
Path Parameters
scan_id string Required
The scan ID to download the AI report for.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response: PDF file download (Content-Disposition: attachment)
Error Response:
{ "success": false, "error": "AI report not available for this scan" }
List Reports — Your scans, newest first GET /api/plagcheck/reports
Paginated list of scans that were sent to the engine (scans still in cost_checked / insufficient_credits are not listed — use /status for those). POST also works.
Query Parameters
page integer Optional
Page number.
default: 1
page_size integer Optional
Results per page.
default: 20 max 100
status string Optional
Filter: pending, completed or failed.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response:
{ "success": true, "data": { "reports": [ { "scan_id": "a1b2c3d4-...", "filename": "document.docx", "status": "completed", "checked_at": "2026-02-12T11:45:03.483081+00:00", "has_report_file": true, "has_ai_report_file": false, "similarity_percentage": 34.9, "total_words": 5000, "is_ai_detected": false } ], "pagination": { "current_page": 1, "total_pages": 3, "page_size": 20, "total_count": 47, "has_next": true, "has_previous": false } } }
Download Certificate — Generate plagiarism certificate PDF GET /api/plagcheck/reports/{scan_id}/certificate
Generate and download a plagiarism certificate PDF for a completed scan. No authentication required — accessible via scan ID.
Path Parameters
scan_id string Required
The scan ID to generate the certificate for.
Response: PDF file download (Content-Disposition: attachment)
Error Response:
{ "success": false, "error": "Certificate available only for completed reports" }
Subscription Info — Check credits and subscription status POST /api/plagcheck/subscription
Get your subscription and credit information.
Headers
Authorization string Required
API key in format: Api-Key YOUR_API_KEY
Response:
{ "success": true, "data": { "has_subscription": true, "credits_alloted": 100, "credits_available": 85, "expires_at": "2026-12-31T23:59:59", "is_expired": false } }

Webhooks

Pass a webhook_url when submitting a scan to receive real-time notifications.

Two-phase report delivery
The plagiarism PDF and the AI detection PDF are generated independently. The plagiarism report is typically ready within 5–10 minutes; the AI report can take an additional few minutes to a few hours. Your webhook_url may receive up to two completion events for one scan:
  • report_ready — fires as soon as the plagiarism PDF is ready. ai_report_url in this payload may be empty.
  • ai_report_ready — fires later when the AI PDF lands. Only sent when include_ai=true.
Both events share the same scan_id so you can correlate them. Alternatively, poll /status for plagiarism_report_ready / ai_report_ready flags.

credit_calculation

Sent immediately after submission with the calculated credit cost. For action=0 (auto), credits are deducted and the scan starts right away — no further action needed. For action=1 (manual), the scan waits for your /scan/{scan_id}/start call before deducting credits.

{ "event": "credit_calculation", "scan_id": "a1b2c3d4-...", "status": "cost_checked", "filename": "document.pdf", "expected_credits": 5, "total_words": 5000, "is_ai_enabled": true }

insufficient_credits

Sent when the scan cannot start due to insufficient credits or an expired subscription. Nothing is charged and the upload is kept — top up credits and call /scan/{scan_id}/start to run it (no need to re-upload).

{ "event": "insufficient_credits", "scan_id": "a1b2c3d4-...", "status": "insufficient_credits", "filename": "document.pdf", "expected_credits": 5 }

scan_completed

Sent when scan completes successfully:

{ "event": "scan_completed", "scan_id": "a1b2c3d4-...", "status": "completed", "filename": "document.pdf", "similarity_percentage": 25.5, "total_words": 5000, "is_ai_enabled": true, "percentage_of_ai_words": 12.3 }

percentage_of_ai_words is present only when is_ai_enabled is true. It can be null here if the AI score is not ready yet — the final value arrives with ai_report_ready.

scan_error

Sent when scan fails:

{ "event": "scan_error", "scan_id": "a1b2c3d4-...", "status": "failed", "filename": "document.pdf" }

report_ready

Sent when the plagiarism PDF report has been generated and is ready for download. If include_ai=true AND the AI PDF happens to be ready at the same time, ai_report_url is also populated. More commonly, the AI PDF lands later — in that case ai_report_url is empty and you'll receive a separate ai_report_ready event when it becomes available. percentage_of_ai_words and ai_report_url are only included when AI detection was enabled.

{ "event": "report_ready", "scan_id": "a1b2c3d4-...", "status": "completed", "filename": "document.pdf", "report_url": "https://example.com/media/api_reports/report.pdf", "similarity_percentage": 25.5, "is_ai_enabled": true, "percentage_of_ai_words": 12.3, "ai_report_url": "" }

ai_report_ready

Sent when the AI detection PDF report becomes available. This event fires separately from report_ready because AI report generation can lag the plagiarism one by several minutes to a few hours. Only fired when include_ai=true was passed at submission. Idempotent — delivered exactly once per scan (use the existing scan_id to match against your records).

{ "event": "ai_report_ready", "scan_id": "a1b2c3d4-...", "status": "completed", "filename": "document.pdf", "ai_report_url": "https://example.com/media/api_ai_reports/report_ai.pdf", "percentage_of_ai_words": 12.3 }

Verifying webhooks

Every webhook is a POST with a JSON body and two headers:

  • X-RedPaper-Timestamp — Unix time (seconds) when the webhook was sent.
  • X-RedPaper-Signature — sha256= followed by the hex HMAC-SHA256 of {timestamp}.{raw request body}, keyed with your API key.

Compute the HMAC over the raw body bytes (before parsing the JSON), compare in constant time, and reject timestamps older than a few minutes to stop replays. If you regenerate your API key, webhooks sent after that are signed with the new key. Reply with any 2xx status; we do not follow redirects.

import hmac, hashlib, time def verify(raw_body: bytes, timestamp: str, signature: str, api_key: str) -> bool: if abs(time.time() - int(timestamp)) > 300: return False expected = "sha256=" + hmac.new( api_key.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected, signature)

Error Codes

StatusMeaning
400Bad request — missing or invalid parameters
401Unauthorized — invalid or missing API key
402Payment required — insufficient credits or expired subscription
403Forbidden — an OAuth (connected-app) token was used on an endpoint that needs an API key
404Not found — scan or report doesn't exist, or the PDF is not ready / no longer available
405Method not allowed — wrong HTTP method (empty body, not JSON)
409Conflict — the scan_id was already used
410Gone — the staged upload expired before /start was called; submit again
429Too many requests — more than 200 requests per minute from your IP
500Server error — something went wrong on our end
503Scanning engine unavailable — credits refunded; retry with /scan/{scan_id}/start

All errors except 405 return:

{ "success": false, "error": "Error message here" }

Quick Start — Submit a Scan

curl -X POST https://www.checkplagiarism.ai/api/plagcheck/scan \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -F "scan_id=your-unique-scan-id" \
  -F "file=@document.pdf" \
  -F "webhook_url=https://yoursite.com/webhook" \
  -F "action=0" \
  -F "include_ai=true" \
  # Optional parameters
  -F "filename=my-report.pdf" \
  -F "language=Hindi" \    # English (default), Indian regional, or foreign (Arabic, Chinese, French, German, Japanese, Spanish, ...)
  # Branding (optional)
  -F "custom_logo=@logo.png" \
  -F "title_color=#2563eb" \
  -F "report_title=My Company Report" \
  -F "report_subtitle=Plagiarism Analysis" \
  -F "submitted_by=John Doe"
import requests

url = "https://www.checkplagiarism.ai/api/plagcheck/scan"
headers = {"Authorization": "Api-Key YOUR_API_KEY"}

with open("document.pdf", "rb") as f:
    response = requests.post(
        url,
        headers=headers,
        files={
            "file": f,
            # "custom_logo": open("logo.png", "rb"),  # optional
        },
        data={
            "scan_id": "your-unique-scan-id",
            "webhook_url": "https://yoursite.com/webhook",
            "include_ai": "true",
            # Optional parameters
            # "filename": "my-report.pdf",
            # Branding
            # "title_color": "#2563eb",
            # "report_title": "My Company Report",
            # "report_subtitle": "Plagiarism Analysis",
            # "submitted_by": "John Doe",
        }
    )

print(response.json())
const fs = require("fs");

const form = new FormData();
form.append("scan_id", "your-unique-scan-id");
form.append("file", fs.createReadStream("document.pdf"));
form.append("webhook_url", "https://yoursite.com/webhook");
form.append("include_ai", "true");

// Optional parameters
// form.append("filename", "my-report.pdf");
// Branding
// form.append("custom_logo", fs.createReadStream("logo.png"));
// form.append("title_color", "#2563eb");
// form.append("report_title", "My Company Report");
// form.append("report_subtitle", "Plagiarism Analysis");
// form.append("submitted_by", "John Doe");

const res = await fetch("https://www.checkplagiarism.ai/api/plagcheck/scan", {
  method: "POST",
  headers: { "Authorization": "Api-Key YOUR_API_KEY" },
  body: form,
});

const data = await res.json();
console.log(data);
<?php
$url = "https://www.checkplagiarism.ai/api/plagcheck/scan";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Api-Key YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    "scan_id"     => "your-unique-scan-id",
    "file"        => new CURLFile("document.pdf"),
    "webhook_url" => "https://yoursite.com/webhook",
    "include_ai"  => "true",
    // Optional parameters
    // "filename"        => "my-report.pdf",
    // Branding
    // "custom_logo"     => new CURLFile("logo.png"),
    // "title_color"     => "#2563eb",
    // "report_title"    => "My Company Report",
    // "report_subtitle" => "Plagiarism Analysis",
    // "submitted_by"    => "John Doe",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
import java.io.*;
import java.net.http.*;
import java.nio.file.*;

var boundary = "----FormBoundary" + System.currentTimeMillis();
var filePath = Path.of("document.pdf");
var fileBytes = Files.readAllBytes(filePath);

var body = new StringBuilder();
body.append("--" + boundary + "\r\n");
body.append("Content-Disposition: form-data; name=\"file\"; filename=\"document.pdf\"\r\n");
body.append("Content-Type: application/pdf\r\n\r\n");
// append file bytes, then add text fields:
// scan_id, webhook_url, include_ai
// Optional: filename
// Branding: title_color, report_title, report_subtitle,
//   submitted_by, custom_logo (file)

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.checkplagiarism.ai/api/plagcheck/scan"))
    .header("Authorization", "Api-Key YOUR_API_KEY")
    .header("Content-Type", "multipart/form-data; boundary=" + boundary)
    .POST(HttpRequest.BodyPublishers.ofByteArray(bodyBytes))
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
package main

import (
    "bytes"
    "fmt"
    "io"
    "mime/multipart"
    "net/http"
    "os"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)

    file, _ := os.Open("document.pdf")
    part, _ := writer.CreateFormFile("file", "document.pdf")
    io.Copy(part, file)
    writer.WriteField("scan_id", "your-unique-scan-id")
    writer.WriteField("webhook_url", "https://yoursite.com/webhook")
    writer.WriteField("include_ai", "true")

    // Optional parameters
    // writer.WriteField("filename", "my-report.pdf")
    // Branding
    // writer.WriteField("title_color", "#2563eb")
    // writer.WriteField("report_title", "My Company Report")
    // writer.WriteField("report_subtitle", "Plagiarism Analysis")
    // writer.WriteField("submitted_by", "John Doe")

    writer.Close()

    req, _ := http.NewRequest("POST",
        "https://www.checkplagiarism.ai/api/plagcheck/scan", body)
    req.Header.Set("Authorization", "Api-Key YOUR_API_KEY")
    req.Header.Set("Content-Type", writer.FormDataContentType())

    resp, _ := http.DefaultClient.Do(req)
    respBody, _ := io.ReadAll(resp.Body)
    fmt.Println(string(respBody))
}

Check Status

curl -X POST https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID \
  -H "Authorization: Api-Key YOUR_API_KEY"
response = requests.post(
    "https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID",
    headers={"Authorization": "Api-Key YOUR_API_KEY"}
)
print(response.json())
POST /api/plagcheck/status/SCAN_ID HTTP/1.1
Host: www.checkplagiarism.ai
Authorization: Api-Key YOUR_API_KEY
const res = await fetch("https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID", {
  method: "POST",
  headers: { "Authorization": "Api-Key YOUR_API_KEY" },
});
console.log(await res.json());
$ch = curl_init("https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Api-Key YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID"))
    .header("Authorization", "Api-Key YOUR_API_KEY")
    .POST(HttpRequest.BodyPublishers.noBody())
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require "net/http"
require "json"

uri = URI("https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Api-Key YOUR_API_KEY"

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts JSON.parse(res.body)
req, _ := http.NewRequest("POST",
    "https://www.checkplagiarism.ai/api/plagcheck/status/SCAN_ID", nil)
req.Header.Set("Authorization", "Api-Key YOUR_API_KEY")

resp, _ := http.DefaultClient.Do(req)
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))

Get Report

curl -X POST https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID \
  -H "Authorization: Api-Key YOUR_API_KEY"
response = requests.post(
    "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID",
    headers={"Authorization": "Api-Key YOUR_API_KEY"}
)
print(response.json())
POST /api/plagcheck/reports/SCAN_ID HTTP/1.1
Host: www.checkplagiarism.ai
Authorization: Api-Key YOUR_API_KEY
const res = await fetch("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID", {
  method: "POST",
  headers: { "Authorization": "Api-Key YOUR_API_KEY" },
});
console.log(await res.json());
$ch = curl_init("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Api-Key YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID"))
    .header("Authorization", "Api-Key YOUR_API_KEY")
    .POST(HttpRequest.BodyPublishers.noBody())
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require "net/http"
require "json"

uri = URI("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Api-Key YOUR_API_KEY"

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts JSON.parse(res.body)
req, _ := http.NewRequest("POST",
    "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID", nil)
req.Header.Set("Authorization", "Api-Key YOUR_API_KEY")

resp, _ := http.DefaultClient.Do(req)
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))

Download Certificate

curl -X GET "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate" \
  -o certificate.pdf
response = requests.get(
    "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate"
)
with open("certificate.pdf", "wb") as f:
    f.write(response.content)
GET /api/plagcheck/reports/SCAN_ID/certificate HTTP/1.1
Host: www.checkplagiarism.ai
const res = await fetch("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate");
const blob = await res.blob();
// Save blob as file
$ch = curl_init("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
file_put_contents("certificate.pdf", curl_exec($ch));
import java.net.http.*;
import java.nio.file.*;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate"))
    .GET()
    .build();

HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
Files.write(Path.of("certificate.pdf"), response.body());
require 'net/http'

uri = URI("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate")
response = Net::HTTP.get_response(uri)

File.open("certificate.pdf", "wb") { |f| f.write(response.body) }
resp, err := http.Get("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/certificate")
if err != nil {
    log.Fatal(err)
}
defer resp.Body.Close()

body, _ := io.ReadAll(resp.Body)
os.WriteFile("certificate.pdf", body, 0644)

Download Report PDF

curl -X POST https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -o report.pdf
response = requests.post(
    "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download",
    headers={"Authorization": "Api-Key YOUR_API_KEY"}
)
with open("report.pdf", "wb") as f:
    f.write(response.content)
POST /api/plagcheck/reports/SCAN_ID/download HTTP/1.1
Host: www.checkplagiarism.ai
Authorization: Api-Key YOUR_API_KEY
const res = await fetch("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download", {
  method: "POST",
  headers: { "Authorization": "Api-Key YOUR_API_KEY" },
});
const blob = await res.blob();
// Save blob as file
$ch = curl_init("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Api-Key YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
file_put_contents("report.pdf", curl_exec($ch));
import java.net.http.*;
import java.nio.file.*;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download"))
    .header("Authorization", "Api-Key YOUR_API_KEY")
    .POST(HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
Files.write(Path.of("report.pdf"), response.body());
require 'net/http'

uri = URI("https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Api-Key YOUR_API_KEY"

response = http.request(request)
File.open("report.pdf", "wb") { |f| f.write(response.body) }
req, _ := http.NewRequest("POST", "https://www.checkplagiarism.ai/api/plagcheck/reports/SCAN_ID/download", nil)
req.Header.Set("Authorization", "Api-Key YOUR_API_KEY")

resp, err := http.DefaultClient.Do(req)
if err != nil {
    log.Fatal(err)
}
defer resp.Body.Close()

body, _ := io.ReadAll(resp.Body)
os.WriteFile("report.pdf", body, 0644)