Developer API
Embed and detect AquaNota watermarks from your own code. The API is part of the Enterprise plan.
Authentication
Create a key under Settings → API keys. You see the full key once, so store it somewhere safe. Send it as a bearer token on every request:
Authorization: Bearer aq_live_…Keep keys on your server, never in a browser or app. Revoke a key in Settings at any time; it stops working within a minute. Each account can hold up to 5 keys.
How it works
Every call is a job. Upload an image as the multipart field image and get a jobId back straight away. Poll the job until it is complete, then download the result. A job and its download link are removed after the first download.
# 1. Submit
curl -X POST https://api.aquanota.ai/api/jobs/image/detect \
-H "Authorization: Bearer $AQUANOTA_API_KEY" \
-F "image=@photo.jpg"
# → 202 {"jobId": "…", "status": "queued"}
# 2. Poll until "complete" (every 2–5 seconds)
curl https://api.aquanota.ai/api/jobs/$JOB_ID \
-H "Authorization: Bearer $AQUANOTA_API_KEY"
# 3. Fetch the result
curl https://api.aquanota.ai/api/jobs/$JOB_ID/download \
-H "Authorization: Bearer $AQUANOTA_API_KEY"
# → {"downloadUrl": "https://…"} (GET it within an hour)Python
import os, time, requests
BASE = "https://api.aquanota.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['AQUANOTA_API_KEY']}"}
with open("photo.jpg", "rb") as f:
job = requests.post(f"{BASE}/api/jobs/image/detect", headers=HEADERS,
files={"image": ("photo.jpg", f, "image/jpeg")}).json()
while (status := requests.get(f"{BASE}/api/jobs/{job['jobId']}", headers=HEADERS).json())["status"] in ("queued", "processing"):
time.sleep(3)
if status["status"] == "complete":
url = requests.get(f"{BASE}/api/jobs/{job['jobId']}/download", headers=HEADERS).json()["downloadUrl"]
print(requests.get(url).json())Endpoints
Base URL https://api.aquanota.ai
| Request | What it does |
|---|---|
POST /api/jobs/image/embed | Watermark an image with your account's ID. Uses one AquaMark. |
POST /api/jobs/image/detect | Check an image for any AquaNota watermark. |
POST /api/jobs/image/verify | Check whether an image carries your watermark. |
GET /api/jobs/{jobId} | Job status: queued, processing, complete or failed. |
GET /api/jobs/{jobId}/download | Short-lived URL for the result (complete jobs only). |
GET /api/jobs/me | Your recent jobs, newest first. |
Results
- embed:
The watermarked image (PNG). - detect:
{ "jobId", "watermarkDetected": true, "confidence": 0.97 } - verify:
{ "jobId", "verified": true, "confidence": 0.97 }
Limits and errors
Images up to 20 MB, as PNG, JPEG or WebP. Detect and verify are free; each embed uses one AquaMark. Each key can submit 60 jobs a minute and make 600 other requests (status, download, list) a minute. Errors share one shape:
{ "detail": { "error": { "code": "RATE_LIMITED", "message": "…", "details": [] } } }| Status | Code | Meaning |
|---|---|---|
| 401 | INVALID_API_KEY | Key is wrong or revoked. |
| 401 | API_KEY_REQUIRED | No API key sent. The API host accepts only API keys. |
| 402 | QUOTA_EXCEEDED | No AquaMarks left for an embed. |
| 403 | API_ACCESS_NOT_ENTITLED | The key's account is no longer on Enterprise. |
| 409 | JOB_NOT_COMPLETE | Download asked for before the job finished. |
| 413 | IMAGE_TOO_LARGE | Image is over 20 MB. |
| 413 | REQUEST_TOO_LARGE | Request body is over 21 MB. |
| 415 | UNSUPPORTED_MEDIA_TYPE | Not a PNG, JPEG or WebP. |
| 429 | RATE_LIMITED | Over 60 job submissions or 600 other requests a minute for this key. Wait for Retry-After. |
| 429 | TOO_MANY_JOBS | 20 jobs already queued or processing. Poll and retry. |
Questions or higher limits: outreach@aquanota.ai