Circle V2 API Docs
    Preparing search index...
    • Loads a NoteTemplate by id from the DB by joining the template row with its sections. Throws the underlying DbNotFoundError (or any other repo error) so callers can decide how to surface it (e.g. tRPC mutations map to NOT_FOUND, jobs let it propagate to the queue retry handler).

      Intentionally not exported from the note-generation barrel — this is an internal cross-feature helper for @repo/services consumers (text-note jobbable, processTextNote service).

      Parameters

      Returns Promise<NoteTemplate>