Skip to content
Get Started

Quickstart

Welcome to the Copyleaks Quickstart! This guide will walk you through the essential steps to get you up and running with the Copyleaks API in just a few minutes. Let’s begin.

  1. Before you start, ensure you have the following:

  2. Choose your preferred method for making API calls.

    You can interact with the API using any standard HTTP client.

    For a quicker setup, we provide a Postman collection. See our Postman guide for instructions.

  3. 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.

    POST https://id.copyleaks.com/v3/account/login/api
    Headers
    Content-Type: application/json
    Body
    {
    "email": "[email protected]",
    "key": "00000000-0000-0000-0000-000000000000"
    }

    Response

    {
    "access_token": "<ACCESS_TOKEN>",
    ".issued": "2025-07-31T10:19:40.0690015Z",
    ".expires": "2025-08-02T10:19:40.0690016Z"
    }
  4. Now let’s test some text. We’ll start with a sample that’s clearly AI-generated:

    POST https://api.copyleaks.com/v2/writer-detector/my-first-scan/check
    Authorization: Bearer your-access-token-here
    Content-Type: application/json
    {
    "text": "Artificial intelligence has revolutionized numerous industries by automating complex tasks and providing data-driven insights. Machine learning algorithms can analyze vast datasets to identify patterns that humans might miss. In healthcare, AI assists with diagnosis and drug discovery.",
    "sandbox": true
    }

    Response

    AI Detection Results
    {
    "summary": {
    "ai": 0.95, // 95% likely to be AI-generated
    "human": 0.05 // 5% likely to be human-written
    },
    "results": [
    {
    "classification": 2, // 2 = AI-generated, 1 = human-written
    "probability": 0.95
    }
    ]
    }

You have just:

  • ✅ Authenticated with the Copyleaks API
  • ✅ Made your first AI detection request
  • ✅ Interpreted the results

Ready to scale beyond the basics?

Get a personalized demo and discover how to process thousands of documents seamlessly, integrate Copyleaks into your existing systems, and achieve enterprise-grade accuracy for your specific use case.