The Copyleaks AI Text Detection API is a powerful tool to assess whether a given text was written by a human or generated by an AI. The API is synchronous, meaning you get the results in the same API call. This guide will walk you through the process of submitting text for AI detection and understanding 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 analysis

Use the AI Text Detection Endpoint to send text for analysis. We suggest you provide a unique scanId for each submission.
5

Interpreting the response

For a complete breakdown of the response structure, see the AI Text Detection Response documentation.
6

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

Next steps

API Reference

Explore the full API reference for the AI Detection endpoint.

AI Logic

Learn how 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.