Authentication
Every request carries a live or test key in the Authorization header.
Send your key in the Authorization header on every request:
Authorization: Bearer wm_live_…
- Live keys (
wm_live_…) run on your account's credit. - Test keys (
wm_test_…) are free and process files for real, with a "TEST KEY" stamp tiled across every result. They cover images and documents, not video, and are limited to 10 requests a minute, 10 MB sources and 100 requests a day for all of an account's test keys together. Use them while you build.
The two modes are kept apart: a test key lists and reads only test requests, their files and events, and a live key only live ones.
A key can be limited to some of what the API does, with scopes: process (start and abort requests), read (read requests and events), files (files and uploads), storage (storage connections) and account (the account and its usage). A key made without scopes has all of them. A key without the scope a call needs gets 403 scope_missing. Give a CI job that only reads results a read key, for example.
Keys belong to an account. Create, name and revoke them at watermark.ws/developers; a key is shown in full only when it is created. A revoked key stops working at once.
Keep keys on your server. Anyone with a live key can spend your credit.
GET /v1/account shows the account behind a key: its balance, tier, and the key's limits.