Skip to content

RevTurbineServerOptions

Options for initializing the RevTurbine server-side SDK.

apiKey: string

Server-side API key (should be a secret key, not a publishable key).


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.