RevTurbineServerOptions
Options for initializing the RevTurbine server-side SDK.
Properties
Section titled “Properties”apiKey
Section titled “apiKey”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.
defaultTtlSeconds?
Section titled “defaultTtlSeconds?”
optionaldefaultTtlSeconds?:number
Default TTL for evaluation payloads (seconds). Default: 60.
endpoint
Section titled “endpoint”endpoint:
string
Base URL of the RevTurbine API Edge.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Custom fetch implementation (e.g. for testing or non-standard runtimes).
Parameters
Section titled “Parameters”RequestInfo | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
tenantId
Section titled “tenantId”tenantId:
string
Your RevTurbine tenant identifier.