POST
/
text
curl -X POST "https://api.antigenailabs.com/text" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "text": "<string>",
  "file": "<string>",
  "website": "<string>",
  "version": "<string>",
  "sentences": true,
  "language": "<string>"
}'
{
  "status": 200,
  "score": 0.9,
  "attack_detected": {
    "zero_width_space": true,
    "homoglyph_attack": false
  },
  "readability_score": 82,
  "sentences": [
    {
      "text": "This is a sample sentence.",
      "score": 0.95
    },
    {
      "text": "Another example sentence.",
      "score": 0.85
    }
  ],
  "input": "text"
}

Authorizations

x-api-key
string
header
required

A unique key used for authentication to access the API.

Body

application/json

Provide either text, file, or website. If multiple are provided, priority = website > file > text.

The body is of type object.

Response

200
application/json

AI-generated text analysis result.

The response is of type object.