AquaNota

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

RequestWhat it does
POST /api/jobs/image/embedWatermark an image with your account's ID. Uses one AquaMark.
POST /api/jobs/image/detectCheck an image for any AquaNota watermark.
POST /api/jobs/image/verifyCheck whether an image carries your watermark.
GET /api/jobs/{jobId}Job status: queued, processing, complete or failed.
GET /api/jobs/{jobId}/downloadShort-lived URL for the result (complete jobs only).
GET /api/jobs/meYour recent jobs, newest first.

Results

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": [] } } }
StatusCodeMeaning
401INVALID_API_KEYKey is wrong or revoked.
401API_KEY_REQUIREDNo API key sent. The API host accepts only API keys.
402QUOTA_EXCEEDEDNo AquaMarks left for an embed.
403API_ACCESS_NOT_ENTITLEDThe key's account is no longer on Enterprise.
409JOB_NOT_COMPLETEDownload asked for before the job finished.
413IMAGE_TOO_LARGEImage is over 20 MB.
413REQUEST_TOO_LARGERequest body is over 21 MB.
415UNSUPPORTED_MEDIA_TYPENot a PNG, JPEG or WebP.
429RATE_LIMITEDOver 60 job submissions or 600 other requests a minute for this key. Wait for Retry-After.
429TOO_MANY_JOBS20 jobs already queued or processing. Poll and retry.

Questions or higher limits: outreach@aquanota.ai