PUT
Scan files to find where the content has been used elsewhere and check its originality. Using submit-file you can scan various file types for plagiarism and identify copied content. See supported formats.
Authentication Required. You need to login with a user and API key in order to access this method. Add this HTTP header to your request:Authorization: Bearer <Your-Login-Token>

Request

Path Parameters

scanId
string
required
A unique scan id provided by you. We recommend you use the same id in your database to represent the scan in the Copyleaks database. This will help you to debug incidents. Using the same ID for the same file will help you to avoid network problems that may lead to multiple scans for the same file. Learn more about the criteria for creating a Scan ID.>= 3 characters <= 36 charactersMatch pattern: [a-z0-9] !@$^&-+%=_(){}<>';:/.",~`|

Headers

Request Body

The request body is a JSON object containing the file to scan.
base64
string
required
A base64 data string of a file. If you would like to scan plain text, encode it as base64 and submit it.Example: aGVsbG8gd29ybGQ=
filename
string
required
The name of the file as it will appear in the Copyleaks scan report Make sure to include the right extension for your filetype. <= 255 characters Example: Myfile.pdf
properties
object
required
Configuration options for the scan.
For testing purposes, use sandbox mode, which does not consume credits.

Responses

201 Created - The scan was successfully created and is now processing.