CopySeal
API Documentation

CopySeal API Reference

Integrate invisible watermarking into your applications

POST/embedAuthentication

All API requests require authentication via an API key or session cookie. Include your API key in the request header:

Example

curl -X POST https://www.copyseal.online/api/embed \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "file=@example.png" \
  -F "watermarkText=hello"

API keys are available on Business and Enterprise plans. Free, Starter and Creator users can use the web dashboard or session-based authentication.

Loading…

POST/embedEmbed Watermark

Hide invisible watermark text inside an image or PDF. The unified endpoint accepts both formats via Content-Type dispatch.

Request

Content-Type: multipart/form-data

{
  "file":           <binary>,   // Image (PNG/JPG/WebP) or PDF
  "watermarkText":  "string",   // Text to hide
}

Response

{
  "id":               "uuid",
  "file_type":        "image" | "pdf",
  "wm_shape":         42,
  "watermark_content": "hello",
  "download_url":     "/api/download/{id}",
  "expires_at":       "2024-01-02T00:00:00Z"
}

Example (cURL)

curl -X POST https://www.copyseal.online/api/embed \
  -H "X-Api-Key: YOUR_API_KEY" \
  -F "file=@example.png" \
  -F "watermarkText=hello"

POST /embed dispatches on the uploaded file's Content-Type: image/* runs the image branch (watermarkText required) and application/pdf runs the PDF branch (watermarkText optional, tracer-only). The response shape is always the same — image fields (wm_shape, watermark_content) or PDF fields (key_id, pages_marked, page_count, frame) are populated based on the upload, and the other set is null.

POST/extractExtract Watermark

Reveal the hidden watermark from a previously embedded image.

Request

Content-Type: multipart/form-data

{
  "file":        <binary>,
  "wmShape":     42,
}

Response

{
  "watermark_content": "Copyright 2024"
}

Example (cURL)

curl -X POST https://www.copyseal.online/api/extract \
  -H "X-Api-Key: wsk_your_api_key" \
  -F "file=@watermarked_photo.png" \
  -F "wmShape=42"

POST/extract/pdfExtract PDF Watermark

Extract the key_id from a watermarked PDF. Use the key_id to trace which user/account embedded the file.

Request

curl -X POST https://www.copyseal.online/api/extract/pdf \
  -H "X-Api-Key: wsk_your_api_key" \
  -F "file=@watermarked_contract.pdf;type=application/pdf"

Response

{
  "key_id":    "8f3a2b1c4d5e6f70",
  "frame":     "F3",
  "page_index": 3,
  "plaintext": "optional-payload"
}

`page_index` is zero-based: the first page of the document is 0, the second is 1. Add 1 for the page number a reader would use.

Returns 404 if no watermark is found or the key_id doesn't belong to the authenticated user.

Rate Limits

API rate limits depend on your subscription tier.

TierMonthly FilesMax image sizeMax PDF sizeMax image resolutionPDF Page Size (Rendered)Largest PDF pageLargest PDF page (full-page photo)API Calls/DayBatch Limit
Free55 MB5 MB1024 px1800 pxB5A5—Not available
Starter2510 MB10 MB2048 px2850 pxLegalLegal—Not available
Creator10010 MB50 MB3000 px3500 pxTabloidTabloid—10 files
Business50010 MB50 MB3000 px4400 pxA2Tabloid100 calls/day50 files
Enterprise2,00010 MB50 MB3000 px6100 pxANSI DANSI D1,000 calls/day500 files

Images and PDFs share the same monthly allowance: every file you watermark counts once, whether it is an image or a PDF.

Webhooks

Register an endpoint with POST /webhooks and CopySeal POSTs to it when something finishes. Every delivery is signed, so your endpoint can check that the request really came from CopySeal.

Webhooks are an Enterprise feature. The endpoint's signing secret is returned once, when the endpoint is created, and cannot be retrieved later.

Events

An endpoint subscribes to one or more of these events. A name outside this list is rejected with a 422 that lists the allowed ones.

embed.completed

Fires when a watermark has been embedded. Carries the new asset's id, its type, the original file name and when the asset expires.

{
  "image_id": "0d4f8a2c",
  "file_type": "image",
  "original_filename": "photo.jpg",
  "expires_at": "2026-01-08T12:00:00Z"
}
extract.completed

Fires when a watermark has been read back. Carries the asset id, the WM Shape key used and the original file name. The recovered watermark text is never sent.

{
  "image_id": "0d4f8a2c",
  "file_type": "image",
  "wm_shape": 42,
  "original_filename": "photo.jpg"
}
batch.completed

Fires when a batch finishes. Carries the batch id, the operation that ran and the file counts. The per-file results stay in CopySeal.

{
  "batch_id": "b91c40ae",
  "job_id": "b91c40ae",
  "operation": "embed",
  "total": 12,
  "completed": 11,
  "failed": 1
}
share.created

Fires when a share link is created. Carries the share id, the asset it was derived from and the recipient. The share token is never sent.

{
  "share_id": "c07d2f18",
  "parent_image_id": "0d4f8a2c",
  "recipient_id": "5a90b3c7"
}

Payload

Every delivery is the same envelope: the delivery id, the event name, when it was created, and the event's own data. The sample below is indented for readability — the body on the wire is compact JSON.

{
  "id": "7f3c1d9e2b4a6058",
  "event": "embed.completed",
  "created_at": "2026-01-01T12:00:00Z",
  "data": {
    "image_id": "0d4f8a2c",
    "file_type": "image",
    "original_filename": "photo.jpg",
    "expires_at": "2026-01-08T12:00:00Z"
  }
}

Verifying the signature

Each delivery carries three headers: X-CopySeal-Event repeats the event name, X-CopySeal-Delivery is the delivery id, and X-CopySeal-Signature is the signature. The signature is HMAC-SHA256 over the raw request body bytes, keyed with the endpoint's signing secret, hex-encoded and prefixed with sha256=.

import hashlib
import hmac


def verify(secret: str, raw_body: bytes, header: str) -> bool:
    """Check the X-CopySeal-Signature header against the raw body."""
    expected = hmac.new(secret.encode("utf-8"), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(header, "sha256=" + expected)

Verify the bytes you actually received. Re-serialising the parsed JSON before hashing it produces different bytes and the check will fail.

Worked example

With the secret 3f9a2c7e5b1d8f406a2c9e7b3d5f1a08, the body below produces the signature in the headers above.

X-CopySeal-Event: embed.completed
X-CopySeal-Delivery: 7f3c1d9e2b4a6058
X-CopySeal-Signature: sha256=4817dd115249c788e98b2c47b7e4416c2e0df1594fd29f78545dc5ea5dd2a200

{"id":"7f3c1d9e2b4a6058","event":"embed.completed","created_at":"2026-01-01T12:00:00Z","data":{"image_id":"0d4f8a2c","file_type":"image","original_filename":"photo.jpg","expires_at":"2026-01-08T12:00:00Z"}}

Delivery and retries

A delivery is attempted up to 3 times, with a 10-second timeout per attempt. It is retried after a transport failure, a 429 or a 5xx response, and never after another 4xx. The delivery id stays the same across the retries, so your endpoint can recognise a repeat and ignore it. A webhook that keeps failing never fails the operation that triggered it.

Error Codes

400Bad RequestShow details

Bad Request - The file is too large, invalid, or exceeds your plan's image resolution or PDF page-size limit

401UnauthorizedShow details

Unauthorized - Invalid or missing API key

403ForbiddenShow details

Forbidden - Feature not available on your plan

413Payload Too LargeShow details

Payload Too Large - The watermarked PDF exceeds the maximum output size. Split it into smaller files and try again.

429Too Many RequestsShow details

Too Many Requests - Monthly file limit reached

500Internal Server ErrorShow details

Internal Server Error - Processing failed

References

The papers, standards and institutions behind the claims on this page. Every link was checked and opens without a paywall or a login.

  1. A Wavelet-Based Watermarking Algorithm for Ownership Verification of Digital Images — IEEE Transactions on Image Processing — record at NIST, 2002

    The 2002 paper on ownership verification in the wavelet domain — the family of methods CopySeal's embedding comes from, and a clear statement of what such a watermark can and cannot prove.

  2. DWT-SVD and DCT based robust and blind watermarking scheme for copyright protection — Multimedia Tools and Applications (Springer), 2016

    A 2016 comparison of DWT-SVD and DCT embedding schemes for copyright protection, with the robustness trade-offs that CopySeal's own measurements echo.

  3. C2PA Technical Specification, Version 2.1 — Coalition for Content Provenance and Authenticity, 2024

    The specification behind content credentials: signed records of where a file came from, which travel with the file.

  4. PROV-O: The PROV Ontology — W3C, 2013

    The W3C vocabulary for recording who did what to a file — the grammar behind content provenance.

  5. ITU-T Recommendation T.81 — Digital compression and coding of continuous-tone still images — International Telecommunication Union, 1992

    The JPEG standard itself: the compression that CopySeal's watermark is measured against.

Ready to get started?

Create a free account and start protecting your images.