---
title: "Was this written by Gleap's AI?"
url: https://docs.gleap.ai/en/reference/rest-api/post-ai-provenance-verify
method: POST
path: "/ai-provenance/verify"
api: "API Reference"
tag: "AI provenance"
operationId: "Verify"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Was this written by Gleap's AI?

`POST https://api.gleap.io/v3/ai-provenance/verify`

Checks whether a message was written by Gleap's AI (Kai) for a workspace that enforces the EU AI Act. Answers only yes or no and the day; never the message, the workspace or the conversation. Texts under 20 characters always answer no.

## Request body (`application/json`, required)

- `text` (string, required): The message text as received (email body, chat or WhatsApp message).

## Example request

```bash
curl --request POST \
  --url https://api.gleap.io/v3/ai-provenance/verify \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<text>"
}'
```

## Responses

### 200 (`application/json`)

Ok

- `aiGenerated` (boolean, required)
- `generatedOn` (string | null, required): When the matching message was written (day precision); null when none matched.

```json
{
  "aiGenerated": true,
  "generatedOn": "string"
}
```
