Inkspan › Guides › Watermark PDF API
Stamp DRAFT, CONFIDENTIAL, or any text across every page of a PDF in one call — for document control and review workflows.
Treat it as a label rather than a security control: the stamp is a normal content object and can be removed with an editor.
import requests
files = {'file': open('input.pdf', 'rb')}
data = {'text': "CONFIDENTIAL"}
r = requests.post(
'https://api.inkspan.dev/v1/pdf/watermark',
headers={'X-API-Key': 'ink_live_...'},
files=files, data=data,
)
r.raise_for_status()
with open('watermarked.pdf', 'wb') as f:
f.write(r.content)
| Name | Type | Required | Description |
|---|---|---|---|
file | file | yes | The PDF to watermark. |
text | string | no | Watermark text. Defaults to CONFIDENTIAL. |
Returns a PDF as a binary stream with Content-Type: application/pdf and Content-Disposition: attachment; filename=watermarked.pdf. Write the response body straight to disk — do not parse it as JSON.
| Status | Meaning | Fix |
|---|---|---|
401 | Invalid or missing API key | Send your key in the X-API-Key header. |
402 | Monthly quota exceeded | The response reports used/quota. Upgrade at inkspan.dev/#pricing. |
422 | Missing or invalid parameter | Check required fields in the table above — the body names the offending field. |
Failed requests do not count against your quota; only successful ones are metered.
Yes — 100 documents a month, no card required. Usage-based plans start at $19/month when you outgrow it.
Send your key in the X-API-Key header on every request.
No. Only successful requests are metered.
Get a free API key →Full guides for /v1/pdf/watermark: cURL · Python · Node.js · all guides