RevTurbineServerOptions
Options for initializing the RevTurbine server-side SDK.
Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey:
string
Server-side API key (should be a secret key, not a publishable key).
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.