Changelog

Stay up-to-date with the latest changes, improvements, and new features for the TextWatermark API.

Version 2.1.1 — 2026-10-30

Changed

  • Rate limits per API token: watermark calls get 600 requests per 15 minutes for each token instead of sharing 100 per IP address, so agents on a shared IP (cloud hosts, offices, the remote MCP endpoint) no longer limit each other. Other endpoints keep 100 per IP address.
  • API token checks are faster.
  • tokens returns one run of invisible characters to insert once, unsplit, after any visible character, read back with decode (secrets up to 256 bytes; not for keyed tokens). Its earlier per-bit output could not be decoded.
  • JSON bodies are limited to 1 MB everywhere; over the limit returns 413, invalid JSON returns 400 (both returned 500 before).
  • A credit is taken only when a watermark call succeeds. A call refused with 400 (missing field, carrier too short, secret too long) or 422 now costs nothing; before, every call cost a credit, so an agent retrying a short carrier paid for each attempt.
  • X-Credits-Remaining is sent on every successful watermark call (it was sometimes missing).
  • encode-robust ignores distribution and stealth_level (deprecated) and no longer echoes them in stats: they were never applied. Bits are always placed one per character from the start of the text. Requests that still send them keep working.

Version 2.1.0 — 2026-10-28

Robust decode integrity, credit expiry rules, token regeneration and Sign in with Google.

Added

  • Token regeneration — POST /api/v2/users/tokens/:id/regenerate gives a token a new secret; the old secret stops working at once.
  • Credit expiry in the balance — GET /api/v2/users/credits returns expiring: upcoming expiry dates with the credits still unspent.
  • Robust integrity — decode-robust reports integrity.verified; robust payloads carry their length and a CRC-8.
  • Sign in with Google (POST /api/auth/google), subscription resume (POST /api/payments/subscription/resume), remote MCP endpoint at https://textwatermarking.com/mcp.

Changed

  • Credit packs are valid for 6 months from purchase (packs bought before keep no expiry). Credits that expire soonest are spent first.
  • Robust secrets are stored as UTF-8 (non-ASCII characters were cut to one byte before), and carrier length is counted in characters as displayed (an emoji is one).
  • Keyed payloads need 30 bytes of overhead (length, IV and tag), not 28.

Fixed

  • decode-robust always returned "decoded": null: its confidence was the share of 1-bits, not of the payload recovered.
  • When subscription credits expired, credits already spent from them were subtracted a second time.

Version 2.0.0 — 2026-03-31

Full platform rewrite. New authentication system, billing integration, signing channels, credits, and a published MCP server.

Added

  • Custom JWT authentication — stateless access tokens (2h TTL) with httpOnly refresh cookies (30d TTL). No third-party auth dependency.
  • API tokens (64-char hex, prefixed mcp_ internally) for server-to-server watermark operations. Scoped per token, revocable at any time.
  • Signing channels — a server-held key per channel; tokens bound to it encrypt the watermark with AES-256-GCM so only the same channel can decode it, and changes are detected.
  • Credit system — each encode/decode consumes credits. Subscription plans include a monthly allocation; top-up packs available. Subscription credits expire with their billing period (packs: see 2.1.0).
  • Subscription billing via LemonSqueezy — monthly and annual plans. Webhooks maintain subscription state in real time (active, past_due, paused, cancelled).
  • Robust mode for watermark encoding — spreads the payload one bit per character with a checksum, so a decode reports whether the text was cut short or changed (corrected 2026-11: it detects edits rather than surviving them).
  • MCP server (@textwatermarking/mcp-server on npm) — use TextWatermark directly from Claude, Cursor, or any MCP-compatible AI tool without writing code.
  • Email verification flow — accounts require email verification before watermark operations are allowed.
  • Credit balance endpoint — GET /api/v2/users/credits returns current balance and subscription tier.
  • Fast encoding option — reduced latency encode path for latency-sensitive workloads.

Changed

  • Base URL consolidated to https://textwatermarking.com — no separate API subdomain.
  • Account management endpoints now use /api/v2/ prefix. Watermarking remains at /api/watermark/.
  • Auth endpoints moved to /api/auth/ (register, login, verify, refresh, logout, password reset).
  • Encode request body changed: payload → secret; original_text → text.
  • Encode response changed: watermarked_text → encoded.
  • Watermark API authentication changed to Authorization: Bearer <api-token>. JWT is no longer accepted on watermark endpoints.
  • Rust/WASM watermarking core updated to rustc 1.86, wasm-pack 0.13.
  • Node.js runtime upgraded to v24.

Removed

  • Supabase authentication — replaced with custom JWT.
  • Polar.sh billing — replaced with LemonSqueezy.
  • Outgoing account webhooks (events sent to your own URL).
  • /api/v1/ prefix — all endpoints are now /api/v2/ or unversioned.

Version 1.x — 2024

Original release. Supabase authentication, Polar.sh billing, /api/v1/ endpoints. Superseded by v2.0.0.