Skip to content
Menu
Auto
English
GitHub
Auto
English

API reference

The API reference is generated from the public TypeScript declarations on every site build.

  • Marker.markText renders text-only layers.
  • Marker.markImage renders image-only layers.
  • Marker.mark renders ordered mixed layers.
  • Marker.createRecipe creates reusable batch workflows.
  • Marker.embedInvisible writes an authenticated short trace ID into image pixels.
  • Marker.detectInvisible recovers and verifies an invisible trace ID.
  • Marker.embedInvisibleMany and Marker.detectInvisibleMany run ordered, independently reported trace batches.
  • Marker.embedInvisibleWithCredentials and Marker.verifyContentCredentials compose the pixel locator with an application-supplied signing adapter.

Core 2 visible render and invisible embed methods resolve to MarkerResult. Use result.uri for the image and inspect jobId, operation, format, mimeType, durationMs, and metadata for diagnostics. Single operations accept MarkerJobOptions as their second argument; failures are ImageMarkerError instances with a stable code.

Recipe v2 serializes stable layers and nested output. Import old persisted documents with migrateWatermarkRecipe() before creating the runtime Recipe.

Use the generated API reference group in the sidebar to browse all enums, interfaces, and type aliases.