Developer documentation
Integrate aiCAPTCHAs in minutes. Create a key, generate a challenge, verify the answer.
Quick start
Four steps from zero to verified requests.
API base URL
https://api.aicaptchas.comAll examples below use this base URL. Replace aic_sk_your_key_here with a key from your dashboard.
- Create an API key
Sign in to the dashboard and create an API key with your desired difficulty level. Keys are prefixed aic_sk_.
- Create a challenge
curl -X POST https://api.aicaptchas.com/api/v2/challenges \ -H "X-API-Key: aic_sk_your_key_here" Response: { "token": "uuid", "challenge": { "text": "K_5M@3H2", "digits": [5, 3, 2], "instruction": "Sum all digits except the largest" }, "expiresIn": 320 } - Verify the answer
curl -X POST https://api.aicaptchas.com/api/v2/challenges/verify \ -H "X-API-Key: aic_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"token": "uuid-from-step-2", "answer": 5}' Response: { "success": true, "allowed": true, "score": 85.5, "solveTimeMs": 523, "verificationToken": "uuid" } - Server-side validation (optional)
curl -X POST https://api.aicaptchas.com/api/v2/challenges/siteverify \ -H "X-API-Key: aic_sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"token": "verification-token-from-step-3"}' Response: { "success": true, "score": 85.5, "solveTimeMs": 523, "challengeTs": 1776079724267, "operationId": "SUM_EXCLUDING_VALUE" }
API reference
Prepend https://api.aicaptchas.com to every path below.
| Method | Path | Auth | Description |
|---|---|---|---|
POST | /api/v2/challenges | X-API-Key | Create challenge (NLU-based) |
POST | /api/v2/challenges/verify | X-API-Key | Verify answer |
POST | /api/v2/challenges/siteverify | X-API-Key | Server-side token validation |
POST | /api/v1/auth/register | Public | Create account |
POST | /api/v1/auth/login | Public | Sign in |
GET | /api/v1/auth/me | JWT | Current profile |
GET | /api/v1/api-keys | JWT | List API keys |
POST | /api/v1/api-keys | JWT | Create API key |
PATCH | /api/v1/api-keys/:id | JWT | Update API key |
DELETE | /api/v1/api-keys/:id | JWT | Revoke API key |
GET | /api/v1/analytics/overview | JWT | Usage overview |
GET | /api/v1/analytics/timeseries | JWT | Time-series data |
Ready to ship? Grab a key and wire up the widget.
Get an API key