Light Logo
JavaScript SDK (v0.34.0)Reference

WriftAIClientOptions

Documentation for WriftAIClientOptions in wriftai.

Interface: WriftAIClientOptions

Properties

accessToken?

optional accessToken: string

Optional bearer token for authorization.


apiBaseUrl?

optional apiBaseUrl: string

Optional base URL for the API. It must not contain a trailing slash.


fetch()?

optional fetch: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Optional custom fetch implementation.

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | URL | Request

init?

RequestInit

Returns

Promise<Response>


headers?

optional headers: Record<string, string>

Optional headers to inject in requests to WriftAI's API.