Integrate invisible watermarking into your applications
/embedAuthenticationAll API requests require authentication via an API key or session cookie. Include your API key in the request header:
curl -X POST https://www.copyseal.online/api/embed \
-H "X-Api-Key: YOUR_API_KEY" \
-F "file=@example.png" \
-F "watermarkText=hello"// Browser / Deno / Node 18+
const form = new FormData();
form.append("file", fileInput.files[0]);
form.append("watermarkText", "hello");
const res = await fetch("https://www.copyseal.online/api/embed", {
method: "POST",
headers: { "X-Api-Key": "YOUR_API_KEY" },
body: form,
});
const data = await res.json();import requests
res = requests.post(
"https://www.copyseal.online/api/embed",
headers={"X-Api-Key": "YOUR_API_KEY"},
files={"file": open("example.png", "rb")},
data={"watermarkText": "hello"},
)
print(res.json())import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;
HttpRequest req = HttpRequest.newBuilder(URI.create("https://www.copyseal.online/api/embed"))
.header("X-Api-Key", "YOUR_API_KEY")
.header("Content-Type", "multipart/form-data; boundary=---xyz")
.POST(HttpRequest.BodyPublishers.ofFile(Path.of("example.png")))
.build();
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());API keys are available on Business and Enterprise plans. Free, Starter and Creator users can use the web dashboard or session-based authentication.
/embedEmbed WatermarkHide invisible watermark text inside an image or PDF. The unified endpoint accepts both formats via Content-Type dispatch.
Content-Type: multipart/form-data
{
"file": <binary>, // Image (PNG/JPG/WebP) or PDF
"watermarkText": "string", // Text to hide
}{
"id": "uuid",
"file_type": "image" | "pdf",
"wm_shape": 42,
"watermark_content": "hello",
"download_url": "/api/download/{id}",
"expires_at": "2024-01-02T00:00:00Z"
}curl -X POST https://www.copyseal.online/api/embed \
-H "X-Api-Key: YOUR_API_KEY" \
-F "file=@example.png" \
-F "watermarkText=hello"const form = new FormData();
form.append("file", fileInput.files[0]);
form.append("watermarkText", "hello");
const res = await fetch("https://www.copyseal.online/api/embed", {
method: "POST",
headers: { "X-Api-Key": "YOUR_API_KEY" },
body: form,
});
const { id, download_url, watermark_content } = await res.json();import requests
res = requests.post(
"https://www.copyseal.online/api/embed",
headers={"X-Api-Key": "YOUR_API_KEY"},
files={"file": open("example.png", "rb")},
data={"watermarkText": "hello"},
)
data = res.json()
print(data["id"], data["download_url"], data["watermark_content"])import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;
HttpRequest req = HttpRequest.newBuilder(URI.create("https://www.copyseal.online/api/embed"))
.header("X-Api-Key", "YOUR_API_KEY")
.header("Content-Type", "multipart/form-data; boundary=---xyz")
.POST(HttpRequest.BodyPublishers.ofFile(Path.of("example.png")))
.build();
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());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.
/extractExtract WatermarkReveal the hidden watermark from a previously embedded image.
Content-Type: multipart/form-data
{
"file": <binary>,
"wmShape": 42,
}{
"watermark_content": "Copyright 2024"
}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"const form = new FormData();
form.append("file", fileInput.files[0]);
form.append("wmShape", "42");
const res = await fetch("https://www.copyseal.online/api/extract", {
method: "POST",
headers: { "X-Api-Key": "YOUR_API_KEY" },
body: form,
});
const { watermark_content } = await res.json();import requests
res = requests.post(
"https://www.copyseal.online/api/extract",
headers={"X-Api-Key": "YOUR_API_KEY"},
files={"file": open("watermarked_photo.png", "rb")},
data={"wmShape": 42},
)
print(res.json()["watermark_content"])import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;
HttpRequest req = HttpRequest.newBuilder(URI.create("https://www.copyseal.online/api/extract"))
.header("X-Api-Key", "YOUR_API_KEY")
.header("Content-Type", "multipart/form-data; boundary=---xyz")
.POST(HttpRequest.BodyPublishers.ofFile(Path.of("watermarked_photo.png")))
.build();
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());/extract/pdfExtract PDF WatermarkExtract the key_id from a watermarked PDF. Use the key_id to trace which user/account embedded the file.
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"const form = new FormData();
form.append("file", fileInput.files[0]);
const res = await fetch("https://www.copyseal.online/api/extract/pdf", {
method: "POST",
headers: { "X-Api-Key": "YOUR_API_KEY" },
body: form,
});
const { key_id, frame, page_index, plaintext } = await res.json();import requests
with open("watermarked_contract.pdf", "rb") as f:
res = requests.post(
"https://www.copyseal.online/api/extract/pdf",
headers={"X-Api-Key": "YOUR_API_KEY"},
files={"file": ("watermarked_contract.pdf", f, "application/pdf")},
)
data = res.json()
print(data["key_id"], data["page_index"], data["plaintext"])import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Path;
HttpRequest req = HttpRequest.newBuilder(URI.create("https://www.copyseal.online/api/extract/pdf"))
.header("X-Api-Key", "YOUR_API_KEY")
.header("Content-Type", "multipart/form-data; boundary=---xyz")
.POST(HttpRequest.BodyPublishers.ofFile(Path.of("watermarked_contract.pdf")))
.build();
HttpResponse<String> res = HttpClient.newHttpClient()
.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());{
"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.
API rate limits depend on your subscription tier.
| Tier | Monthly Files | Max image size | Max PDF size | Max image resolution | PDF Page Size (Rendered) | Largest PDF page | Largest PDF page (full-page photo) | API Calls/Day | Batch Limit |
|---|---|---|---|---|---|---|---|---|---|
| Free | 5 | 5 MB | 5 MB | 1024 px | 1800 px | B5 | A5 | — | Not available |
| Starter | 25 | 10 MB | 10 MB | 2048 px | 2850 px | Legal | Legal | — | Not available |
| Creator | 100 | 10 MB | 50 MB | 3000 px | 3500 px | Tabloid | Tabloid | — | 10 files |
| Business | 500 | 10 MB | 50 MB | 3000 px | 4400 px | A2 | Tabloid | 100 calls/day | 50 files |
| Enterprise | 2,000 | 10 MB | 50 MB | 3000 px | 6100 px | ANSI D | ANSI D | 1,000 calls/day | 500 files |
Images and PDFs share the same monthly allowance: every file you watermark counts once, whether it is an image or a PDF.
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.
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.completedFires 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.completedFires 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.completedFires 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.createdFires 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"
}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"
}
}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)import { createHmac, timingSafeEqual } from "node:crypto";
function verify(secret: string, rawBody: Buffer, header: string): boolean {
const expected =
"sha256=" + createHmac("sha256", secret).update(rawBody).digest("hex");
// timingSafeEqual throws when the lengths differ, so check first.
return (
expected.length === header.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(header))
);
}Verify the bytes you actually received. Re-serialising the parsed JSON before hashing it produces different bytes and the check will fail.
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"}}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.
Bad Request - The file is too large, invalid, or exceeds your plan's image resolution or PDF page-size limit
Unauthorized - Invalid or missing API key
Forbidden - Feature not available on your plan
Payload Too Large - The watermarked PDF exceeds the maximum output size. Split it into smaller files and try again.
Too Many Requests - Monthly file limit reached
Internal Server Error - Processing failed
The papers, standards and institutions behind the claims on this page. Every link was checked and opens without a paywall or a login.
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.
A 2016 comparison of DWT-SVD and DCT embedding schemes for copyright protection, with the robustness trade-offs that CopySeal's own measurements echo.
The specification behind content credentials: signed records of where a file came from, which travel with the file.
The W3C vocabulary for recording who did what to a file — the grammar behind content provenance.
The JPEG standard itself: the compression that CopySeal's watermark is measured against.
Create a free account and start protecting your images.