- An active Copyleaks account. If you don’t have one, sign up for free.
- You can find your API key on the API Dashboard.
Get Started
Quick Example: Scan Text
The following example shows how to authenticate and submit a simple string of text for a plagiarism scan using the SDK’s data models.
Understanding the Code
- Login: We authenticate with your email and API key to get a secure login token.
- Prepare Submission: We encode a string to Base64 and create a new
CopyleaksFileSubmissionModel. This model is the recommended way to structure your submission data. - Configure & Submit: We pass the submission model to
submitFileAsync. The model itself contains the sandbox settings and the webhook URL where Copyleaks will send a notification when the scan is complete.
Next Steps
GitHub Repository
Check the official Copyleaks NodeJS SDK repository on GitHub for installation and usage details.
NPM Package
Install the official Copyleaks NodeJS package from NPM for easy integration.
Check for Plagiarism
Detect plagiarism in text documents using the Copyleaks API. Search billions of sources to find unoriginal content.
Detect AI-Generated Content
Detect AI-generated text via sync or async API calls. This guide covers sync detection, see the Authenticity API Guide for async.
Assess Grammar and Writing Quality
Get writing and grammar suggestions via API. Authenticate, submit text, and access full details in the docs.
Moderate Text
Scan and moderate text content for unsafe or policy-relevant material across 10+ categories.

