Skip to content

RevTurbineServerOptions

Options for initializing the RevTurbine server-side SDK.

apiKey: string

Your server key — the secret backend credential (rtk_…, type server, minted under Settings → API tokens → Server token).

Keep it in server-side configuration only. It is never the browser SDK’s publicKey, and the control plane refuses it on browser-like requests.


optional defaultTtlSeconds?: number

Default TTL for evaluation payloads (seconds). Default: 60.


endpoint: string

Base URL of the RevTurbine API Edge.


optional fetch?: (input, init?) => Promise<Response>

Custom fetch implementation (e.g. for testing or non-standard runtimes).

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>


tenantId: string

Your RevTurbine tenant identifier.