A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Retrieve the watermark for a file.
12345The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/files/123
the file_id is 123.
Returns an object containing information about the watermark associated for to this file.
Returns an error if the file does not have a watermark applied.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/files/12345/watermark" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.fileWatermarks.getFileWatermark(file.id);client.file_watermarks.get_file_watermark(file.id)await client.FileWatermarks.GetFileWatermarkAsync(fileId: file.Id);try await client.fileWatermarks.getFileWatermark(fileId: file.id)client.getFileWatermarks().getFileWatermark(file.getId())await client.FileWatermarks.GetFileWatermarkAsync(fileId: file.Id);await client.fileWatermarks.getFileWatermark(file.id);{
"watermark": {
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
}