Skip to main content
REST API · Preview

Deep AI Detector API reference

AI content detection over JSON, on the same detection model as the web app. Send text with a bearer token; get back an AI probability, a verdict band and a reliability flag.

Quickstart

  1. Get an API key. Once the API launches, keys come with Pro ($34.99/mo) and higher and live in your dashboard.
  2. Set the bearer header. Send Authorization: Bearer dad_live_... on every request except /v1/health.
  3. Make your first detection. POST to /v1/detect with a JSON body containing text (min 80 words for a verdict, 150+ recommended for high confidence).
  4. Read the verdict. Response includes score (0-1), band (categorical), and meta.reliability, which flags texts under 150 words as low-confidence.

Official SDKs (coming soon)

JavaScript / TypeScript and Python SDKs are coming soon. Both will wrap the same OpenAPI spec, ship type definitions, and handle retries + error mapping for you. Neither is published to npm or PyPI yet.

JavaScript / TypeScript

@deepaidetector/client

Coming soon. Not published to npm yet.

Python

deepaidetector

Coming soon. Not published to PyPI yet.

Once the API launches, any HTTP client will work without an SDK: see the curl / Go / Ruby / PHP / C# samples below — every endpoint is a plain JSON POST/GET.

Authentication

Every request needs a bearer token in the Authorization header.

Authorization: Bearer dad_live_xxxxxxxxxxxx

Live keys start with dad_live_; sandbox / test keys (no real billing, capped quota) start with dad_test_. Once the API launches, you'll issue, rotate, and revoke keys from your dashboard. Keys are shown in plaintext exactly once — at creation time. We only store a hash; if you lose a key you'll need to revoke and create a new one.

Code samples

Example: POST /v1/detect. The shape is identical for every other endpoint — change the path + body.

cURL

curl -X POST https://api.deepaidetector.com/v1/detect \
  -H "Authorization: Bearer $DEEPAIDETECTOR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Climate change is reshaping how coastal cities approach long-term planning. Rising sea levels and intensifying storms have moved infrastructure resilience from a niche topic to the top of every mayor agenda."
  }'

Rate limits

Allowances reset each calendar month (UTC). Every successful /v1/detect response includes a meta.rate_limit object:

"meta": {
  "rate_limit": {
    "used":      <number>,
    "limit":     <number>,
    "remaining": <number>,
    "resets_at": <unix ms>
  }
}
TierDetectionsWords / docAPI
Anonymous1 / mo / IP1,000No
Registered Free5 / mo1,000No
Starter ($14.99)200 / mo2,000No
Pro ($34.99)500 / mo3,500Coming soon — entry API tier
Studio ($99.99)1,200 / mo6,500Coming soon
Business ($179.99)1,800 / moAbout 8,000 (50,000 characters)Coming soon
Scale ($499)3,000 / moAbout 8,000 (50,000 characters)Coming soon
Premier ($749)4,000 / moAbout 8,000 (50,000 characters)Coming soon
Enterprise ($999)5,000 / moAbout 8,000 (50,000 characters)Coming soon + dedicated support

Every request is also capped at 50,000 characters (about 8,000 English words), whatever the plan. When rate-limited, the API returns 429 with a Retry-After header (seconds) and a resets_at field (unix ms). Recommended client strategy: exponential backoff with jitter, respect Retry-After, cap at 3 retries. The SDKs will do this automatically once they are published.

Errors

All errors return { "error": "<machine_code>", "message": "<human>", "request_id": "<uuid>" }. Switch on error, not message — only error is part of the API contract.

StatusCodeWhat it means
400invalid_inputBody or query failed Zod validation.
401unauthorizedMissing or invalid API key.
402word_limit_exceededText is longer than your plan's per-document word limit.
402upgrade_requiredFeature requires a higher plan (for example, Deep Scan on the free plan).
413payload_too_largeRequest body over 200KB.
422insufficient_textText shorter than the 80-word verdict minimum.
429rate_limit_exceededQuota exhausted. Retry after `resets_at`.
500internal_errorUnexpected server failure. Retry with backoff.
502deep_scan_failedDeep Scan couldn't finish this time. No credits were used; retry with backoff.

Full error reference →

Webhooks (coming soon)

Once webhooks ship, you'll configure a webhook URL in your dashboard to receive events when detections complete. Body is JSON; signature is HMAC-SHA256 over the body in the X-DAD-Signature header.

POST https://your-app.example.com/dad-webhook
X-DAD-Signature: a8f2e9...
X-DAD-Event:     detection.completed
X-DAD-Delivery:  0190b1f8-aae5-7e3a-9b1c-7f4ba2c0d3e1
Content-Type:    application/json

{
  "id": "evt_01J...",
  "type": "detection.completed",
  "created": 1717948800000,
  "data": { /* same shape as POST /v1/detect response */ }
}

Planned retry policy: 7 attempts with exponential backoff over 72h. Respond 2xx within 10s to ack.

Webhook signing + handler examples →

Full OpenAPI reference

Download the OpenAPI 3.1 spec or the Postman collection to explore every endpoint in the API tool you already use.

Coming soon

API is launching soon

We're putting the finishing touches on the public API surface. Sign up to be the first to know when keys go live.

In the meantime, every paid plan includes AI detection, Deep Scan and plagiarism scans in the web app today.