# Watermark API reference Look up each watermark field, its default, legal values and layer behavior. The customer backend supplies these fields when it creates a streaming session. DRM-X Player SDK renders the validated settings in the response. Omit optional fields to use their defaults. String enums are case-sensitive, ranges include both endpoints, and unknown watermark properties are rejected. [Run the example and see the playback screenshot](https://docs.drm-x.com/integrations/playback-watermark#watermark-request) ## `watermark`[#](#watermark-watermark) **JSON type** `object` · **Default** `omitted` Omit this object for playback without an overlay. Supply it on the trusted backend after authorizing the viewer. ## `platformCapabilities.watermarkVersion`[#](#watermark-watermarkversion) **JSON type** `integer` · **Default** `omitted` Required when requesting a watermark. The only supported value is 1. Set it only for a player that implements v1. ## `watermark.version`[#](#watermark-version) **JSON type** `integer` · **Default** `1` Protocol version. The only supported value is 1. ## `watermark.text`[#](#watermark-text) **JSON type** `string` · **Default** `required` Nonblank plain text, at most 512 UTF-8 bytes and three lines. Separate lines with LF (\n in JSON). Control characters other than LF and the bidirectional formatting characters U+202A–U+202E and U+2066–U+2069 are rejected. ## `watermark.layers`[#](#watermark-layers) **JSON type** `array` · **Default** `one diagonal layer` One to three layer objects. Omission creates one diagonal layer with its defaults. An empty array and repeated types are invalid. ## `watermark.layers[].type`[#](#watermark-type) **JSON type** `string` · **Default** `diagonal` Choose random-static (upright text changes position), diagonal (moving text), or full-screen (repeating grid). Each type can appear once. ## `watermark.layers[].fontSize`[#](#watermark-fontsize) **JSON type** `integer` · **Default** `24` 12–64 inclusive. Font size in pixels at a reference video height of 720 px. The Web SDK scales and fits the text to the displayed picture. Applies to all layers. ## `watermark.layers[].color`[#](#watermark-color) **JSON type** `string` · **Default** `#ffffff` All layers. Exactly # followed by six hexadecimal digits (0–9, A–F, a–f). The response returns lowercase digits. Example: #ffffff. ## `watermark.layers[].opacity`[#](#watermark-opacity) **JSON type** `number` · **Default** `0.25` All layers. Finite number from 0.01 to 1 inclusive. A value of 1 is fully opaque. For values below 0.05, use [Web Player SDK 1.2.0-beta.17 or later](https://drm-x6-cdn.1aicloud.com/drmx-universal-player-web-1.2.0-beta.17-bc9c5145e2dc.zip), or an updated native build. ## `watermark.layers[].intervalSeconds`[#](#watermark-intervalseconds) **JSON type** `integer` · **Default** `8` 2–60 seconds inclusive. Update interval for random-static position and randomized full-screen grid angles. ## `watermark.layers[].speed`[#](#watermark-speed) **JSON type** `string` · **Default** `slow` Speed controls the diagonal layer. The values are case-sensitive. Web Player SDK 1.2.0-beta.16 uses the following periods to calculate horizontal movement. | Accepted value | Horizontal movement period | | --- | --- | | `"slow"` | 28 seconds | | `"normal"` | 16 seconds | | `"fast"` | 9 seconds | Vertical movement uses 1.3 times the listed period. A complete horizontal round trip takes two periods. For example, `"medium"` returns HTTP 400. For the first layer, read `errors["watermark.layers[0].speed"]` in the validation response and replace the value with `"normal"`. ## `watermark.layers[].rows`[#](#watermark-rows) **JSON type** `integer` · **Default** `3` 1–6 inclusive. Number of rows in the full-screen grid. ## `watermark.layers[].columns`[#](#watermark-columns) **JSON type** `integer` · **Default** `3` 1–6 inclusive. Number of columns in the full-screen grid. ## `watermark.layers[].angle`[#](#watermark-angle) **JSON type** `integer` · **Default** `-25` −75 to 75 degrees inclusive. Sets text rotation for diagonal and for full-screen when randomAngle is false. random-static always displays upright text. ## `watermark.layers[].randomAngle`[#](#watermark-randomangle) **JSON type** `boolean` · **Default** `true` true or false (JSON booleans). On full-screen layers, true varies the angle of each grid label. Set false to use angle.