Favorite Template
Add a template to the current user’s favorites.
Favorites are per-user, not per-workspace — the same favorite list is visible regardless of which workspace the caller is currently acting in. Any template visible to the caller (own workspace, public, or starter) can be favorited.
Returns 404 when the template does not exist or is not visible to the caller.
Calling this endpoint on an already-favorited template is idempotent (returns
200 with the template). Use DELETE /templates/{id}/favorite to remove.
Does not require X-Workspace-Id.
Authentication
Path parameters
Case-sensitive 8-character base62 template identifier.
Response
Response shape. workspace_id is intentionally omitted so the gallery
endpoint (which returns rows from any workspace) does not leak tenant
ownership IDs across tenants. created_by is retained as author
provenance for public/starter rows.
definition is the serialized WorkflowDefinition JSONB (same shape as
Workflow.definition) — a template is a reusable workflow snapshot.

