JavaScript / TypeScript
@deepaidetector/client Coming soon. Not published to npm yet.
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.
Authorization: Bearer dad_live_... on every request except /v1/health./v1/detect with a JSON body
containing text (min 80 words for a verdict, 150+ recommended for high confidence).score (0-1), band (categorical), and meta.reliability, which flags texts under 150 words as
low-confidence.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.
@deepaidetector/client Coming soon. Not published to npm yet.
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.
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.
Example: POST /v1/detect. The shape is identical for every other endpoint —
change the path + body.
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."
}'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>
}
} | Tier | Detections | Words / doc | API |
|---|---|---|---|
| Anonymous | 1 / mo / IP | 1,000 | No |
| Registered Free | 5 / mo | 1,000 | No |
| Starter ($14.99) | 200 / mo | 2,000 | No |
| Pro ($34.99) | 500 / mo | 3,500 | Coming soon — entry API tier |
| Studio ($99.99) | 1,200 / mo | 6,500 | Coming soon |
| Business ($179.99) | 1,800 / mo | About 8,000 (50,000 characters) | Coming soon |
| Scale ($499) | 3,000 / mo | About 8,000 (50,000 characters) | Coming soon |
| Premier ($749) | 4,000 / mo | About 8,000 (50,000 characters) | Coming soon |
| Enterprise ($999) | 5,000 / mo | About 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.
All errors return { "error": "<machine_code>", "message": "<human>", "request_id": "<uuid>" }. Switch on error, not message — only error is part of the
API contract.
| Status | Code | What it means |
|---|---|---|
400 | invalid_input | Body or query failed Zod validation. |
401 | unauthorized | Missing or invalid API key. |
402 | word_limit_exceeded | Text is longer than your plan's per-document word limit. |
402 | upgrade_required | Feature requires a higher plan (for example, Deep Scan on the free plan). |
413 | payload_too_large | Request body over 200KB. |
422 | insufficient_text | Text shorter than the 80-word verdict minimum. |
429 | rate_limit_exceeded | Quota exhausted. Retry after `resets_at`. |
500 | internal_error | Unexpected server failure. Retry with backoff. |
502 | deep_scan_failed | Deep Scan couldn't finish this time. No credits were used; retry with backoff. |
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.
Download the OpenAPI 3.1 spec or the Postman collection to explore every endpoint in the API tool you already use.
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.