The Copyleaks Authenticity API is the most powerful way to analyze your content for plagiarism. This API is asynchronous - you submit a scan, and Copyleaks notifies your server via webhooks when the results are ready to be retrieved. This guide will walk you through the process of submitting a scan, enabling plagiarism detection, and exporting the results.

Get started

1

Before you begin

Before you start, ensure you have the following:
2

Installation

Choose your preferred method for making API calls.
3

Login

To perform a scan, we first need to generate an access token. For that, we will use the login endpoint. The API key can be found on the Copyleaks API Dashboard.Upon successful authentication, you will receive a token that must be attached to subsequent API calls via the Authorization: Bearer <TOKEN> header. This token remains valid for 48 hours.
Response
4

Submit for scanning

Use the Submit File Endpoint to send content for analysis. We suggest you provide a unique scanId for each submission.
5

Wait for the completed webhook

The scan can take some time. Once it’s complete, Copyleaks will send a completed webhook to the status URL you provided. This webhook contains a summary of the scan results, including any result IDs for found plagiarism matches.
6

Export detailed results

After the completed webhook arrives, use the export endpoint to retrieve the detailed plagiarism results using the result IDs you received in the completed webhook.We will also export the Crawled Version. The crawledVersion webhook contains the text and html version of the document. This can later be used in order to display the report.In addition, you should also specify a completionWebhook to receive notifications when the export is ready.
7

Summary

You have successfully submitted a scan for plagiarism detection and exported the results. You can now handle the results in your application, display them to users, or take further actions based on the findings.

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.