OptionalapiOptionalapiProject API key. Falls back to VIDEOSDK_API_KEY. Required unless a static VideoSDKClientOptions.token is given.
OptionalfetchCustom fetch implementation (defaults to global fetch, Node 18+).
OptionalheadersExtra headers added to every request.
OptionalmaxMax retries for network errors / 429 / 5xx. Defaults to 2.
OptionalsecretProject secret. Falls back to VIDEOSDK_SECRET. Required unless a static token is given.
OptionaltimeoutPer-request timeout in milliseconds. Defaults to 30000.
OptionaltokenA pre-generated token used verbatim. When set, the client won't (and can't)
auto-refresh; supply apiKey/secret instead for long-lived use.
OptionaltokenClaims/expiry for auto-generated tokens (permissions, roles, version, expiresIn).
OptionalwebhookPin the RSA public key (PEM) used by webhooks.verify (skips the network fetch).
API endpoint. Defaults to
https://api.videosdk.live(falls back toVIDEOSDK_API_ENDPOINT).