Sanity Library Reference Docs
    Preparing search index...
    • Mint the Sanity document _id for a workflow instance — a fresh random suffix, so every instance (root or spawned child) gets a unique doc id under its tag. Lives in the shell, not core/, because it draws randomness; the deterministic definitionDocId is the pure-core counterpart. Bare form — Sanity rejects : in document IDs, so this is never a GDR URI.

      Parameters

      • tag: string

      Returns string