Response structure and field definitions for the Copyleaks AI Text Detection API, including classification results and detailed explanations.
This is the response of the synchronous AI Text Detection endpoint; for AI Text Detection run as part of an Authenticity scan and retrieved with the export method, see the AI Text Detection Result.The Copyleaks AI Text Detection API returns a comprehensive response that includes classification results, per-section probability values, and detailed explanations of the AI detection analysis. This response structure provides both high-level insights and granular details about detected AI-generated content patterns.
Response Properties
string
The version of the AI detection model used (e.g., “v11.0”).
array[object]
An array of all the classifications. The sections contain their position, classification and the probability for that classification.
Show result item properties
integer
Indicates the text classification.Available Options:
1 - Human
2 - AI Generated Text
number<float>
The classification confidence. Deprecated - we plan to remove this value by July 2026.
array[object]
Provides information about the match objects that have been found in the text.
Show match properties
object
Describes the text positions for the result (textual version).
Show text properties
object
Positions of the characters in that specific result.
Show chars properties
array[integer]
Character match start positions.
array[integer]
Character match lengths.
object
Positions of the words in that specific result.
Show words properties
array[integer]
Words match start positions.
array[integer]
Words match lengths.
object
Describes the text positions for the result (html version). Default: null.
Show html properties
object
Show chars properties
array[integer]
Character match start positions.
array[integer]
Character match lengths.
array[integer]
Group identifiers associated with each word.
object
Show words properties
array[integer]
Words match start positions.
array[integer]
Words match lengths.
array[integer]
Group identifiers associated with each word.
object
Aggregated detection results.
Show summary properties
number<float>
The share of the text’s words classified as human-written, from 0 to 1.
number<float>
The AI score: the share of the text’s words classified as AI-generated, from 0 to 1.
object
Metadata about the scan.
Show scannedDocument properties
string
The unique scan id provided by you.
integer
Total number of words found in the scanned text.
integer
Number of excluded words in the submitted content.
integer
The number of credits consumed by the scan.
integer
The number of credits the scan was expected to cost: one credit for every 250 words of totalWords, or part of that. Outside sandbox mode it always equals actualCredits, because the credits are charged before detection runs. If the detection fails, they are refunded and the API returns an error instead of this response. Sandbox responses are free and leave out both credit fields.