Sanity Library Reference Docs
    Preparing search index...

    Variable ENGINE_API_VERSIONConst

    ENGINE_API_VERSION: "2026-04-29" = '2026-04-29'

    The API surface the engine's reads and writes assume. The engine owns this pin: every entry point — createEngine, each raw workflow.* verb, the housekeeping exports — derives its working client onto this version via WorkflowClient.withConfig, and resourceClients-resolved clients are rebound the same way. A caller's configured apiVersion therefore never reaches engine-owned traffic (the caller's own client instance is untouched). Effect handlers keep the caller's apiVersion; their derived clients change only the request-tag prefix. The other exception is a client that lacks withConfig and so cannot be rebound — it must be built to serve this version; see WorkflowClient.withConfig.