Features
Excluding and Preventing Indexing of Content
You have granular control over what content is scanned and what data is stored when you submit a document to Copyleaks. This guide covers two distinct types of exclusion:
- Excluding Parts of a Document from Scan Analysis: This allows you to refine the plagiarism scan by ignoring specific elements like quotes or code blocks.
- Preventing a Document from Being Indexed: This allows you to control whether the entire document is added to the Copyleaks Internal Database for future comparisons.
Exclude Options
Section titled “Exclude Options”The exclude
object can contain the following boolean properties:
quotes
: If set totrue
, all text within quotation marks will be ignored.citations
: If set totrue
, citations and references will be ignored.references
: If set totrue
, the bibliography or reference list will be ignored.tableOfContents
: If set totrue
, the table of contents will be ignored.titles
: If set totrue
, titles and headings will be ignored.code
: If set totrue
, code blocks will be ignored.
Request Example
Section titled “Request Example”PUT https://api.copyleaks.com/v3/scans/submit/file/my-scan-exclude-exampleContent-Type: application/jsonAuthorization: Bearer YOUR_LOGIN_TOKEN
{ "base64": "VGhpcyBpcyBhIHRlc3QgZmlsZS4gIkhlbGxvLCB3b3JsZCEiIGlzIGEgcXVvdGUuIChTbWl0aCwgMjAyMyk=", "filename": "document-with-exclusions.txt", "properties": { "webhooks": { "status": "https://my-server.com/webhook/{STATUS}" }, "exclude": { "quotes": true, "citations": true }, "sandbox": true }}
curl --request PUT \ --url https://api.copyleaks.com/v3/scans/submit/file/my-scan-exclude-example \ --header 'Authorization: Bearer YOUR_LOGIN_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "base64": "VGhpcyBpcyBhIHRlc3QgZmlsZS4gIkhlbGxvLCB3b3JsZCEiIGlzIGEgcXVvdGUuIChTbWl0aCwgMjAyMyk=", "filename": "document-with-exclusions.txt", "properties": { "webhooks": { "status": "https://my-server.com/webhook/{STATUS}" }, "exclude": { "quotes": true, "citations": true }, "sandbox": true } }'
Response Example
Section titled “Response Example”When the scan is processed, the scannedDocument
object in the response will reflect the number of words that were excluded.
201 Created
The scan was successfully created and is now processing. The excluded word count is reflected in the response.
Example Response
A typical response from this endpoint:
{ "scannedDocument": { "scanId": "my-scan-exclude-example", "totalWords": 8, "totalExcluded": 4, "credits": 0, "expectedCredits": 1, "creationTime": "2025-08-10T10:00:00.000000Z", "metadata": { "filename": "document-with-exclusions.txt" }, "enabled": { "plagiarismDetection": true, "aiDetection": false, "explainableAi": false,// ... truncated
🗺️ Next Steps
Section titled “🗺️ Next Steps” Webhooks Overview Learn how to securely receive and process notifications from Copyleaks.
Viewing Scan Results Understand the scan result format and how to display it to your users.