Get started
Before you begin
Before you start, ensure you have the following:- An active Copyleaks account. If you don’t have one, sign up for free.
- You can find your API key on the API Dashboard.
Installation
Choose your preferred method for making API calls.HTTP needs no installation - call the API with any standard HTTP client, or import our Postman collection for a quicker start.
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 theAuthorization: Bearer <TOKEN> header.
This token remains valid for 48 hours.Response
Save this token. It is valid for 48 hours and can be reused for subsequent API calls.
Submit for analysis
Use the AI Text Detection Endpoint to send text for analysis. We suggest you provide a uniquescanId for each submission.Interpreting the response
For a complete breakdown of the response structure, see the AI Detection Response documentation.Summary
You have successfully submitted text for AI detection. You can now use the JSON response in your application to take further action based on the findings.Frequently asked questions
Is the AI text detection API synchronous?
Is the AI text detection API synchronous?
Yes. You send text to the check endpoint and receive the detection results in the same API call, with no webhook required.
Which endpoint detects AI-generated text?
Which endpoint detects AI-generated text?
POST https://api.copyleaks.com/v2/writer-detector/{scanId}/check, with the text to analyze in the request body.Can I test it for free?
Can I test it for free?
Yes. Set
"sandbox": true in the request. Sandbox mode is free and returns mock results so you can build the integration before going live.What does the response contain?
What does the response contain?
A per-section classification (human or AI) and an overall human-versus-AI summary. See the AI Detection Response reference for the full structure.
How is this different from detecting AI in documents?
How is this different from detecting AI in documents?
This endpoint analyzes raw text synchronously. To scan files such as PDF or DOCX, use the asynchronous authenticity flow in Detect AI-Generated Content in Documents.
Next steps
API Reference
Explore the full API reference for the AI Detection endpoint.
AI Logic
Learn how to use AI logic can help you interpret the results of AI text detection.
Accuracy & 3rd Party Evaluations
Discover how Copyleaks AI Detector maintains top accuracy in third-party evaluations.

