/v2/writer-detector/{scanId}/check
Use Copyleaks writer detector to differentiate between human texts and AI written texts.
This endpoint will receive submitted text to be checked. At the end of the processing stage, the result will be shown as classifications. Text classification is divided into sections. Each section may have a different classification.
properties.aiGeneratedText.detect
flag. Request
URL Parameters
scanId
REQUIREDWe 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.
Allowed characters are [a-z0-9]
and the following symbols: !@$^&-+%=_(){}<>';:/.",~`|
learn more about the criteria for creating a Scan ID .
Body Parameters
text
REQUIREDSupported Languages:
- English
- Spanish
- French
- Portuguese
- German
- Italian
- Russian
- Polish
- Romanian
- Dutch
- Swedish
- Czech
- Norwegian
- Korean
- Japanese
- Chinese
Max length: 25000 characters.
Min length: 255 characters.
sandbox
Submit content for an AI detection and get returned mock results, simulating Copyleaks's API functionality to ensure you have successfully integrated the API.
This feature is intended to be used for development purposes only.
false
Request Example
Response
Description
results
results.classification
Available Options: 1
- Human 2
- AI Generated Text
results.probability
results.matches
results.matches.text
results.matches.text.chars
results.matches.text.chars.starts
results.matches.text.chars.lengths
results.matches.text.words
results.matches.text.words.starts
results.matches.text.words.lengths
summary
summary.human
summary.ai
scannedDocument
scannedDocument.scanId
scannedDocument.totalWords
scannedDocument.totalExcluded
scannedDocument.actualCredits
scannedDocument.expectedCredits
scannedDocument.creationTime
Codes
200
{ "results": [ { "classification": 2, "probability": 1, "matches": [ { "text": { "chars": { "starts": [ 0 ], "lengths": [ 1509 ] }, "words": { "starts": [ 0 ], "lengths": [ 221 ] } } } ] } ], "summary": { "human": 0, "ai": 1 }, "scannedDocument": { "scanId": "check", "totalWords": 221, "totalExcluded": 0, "actualCredits": 1, "expectedCredits": 1, "creationTime": "2023-01-10T10:07:58.9459512Z" } }
400
{ "errorCode": "unsupported-lang", "errorMessage": "Unsupported language 'he' for AI text detection" }
401
Authorization has been denied for this request.
429
TIP: Reuse your key as much as possible.
Other resources:
- Performance Considerations Important! - How to improve your scan performance.
- Exponential Backoff - Algorithm that helps applications define a retry strategy for consuming a network service.

Do you have a technical question?
Use stackoverflow.com to get help from our development team and other Copyleaks users.