Skip to content

FormsClientOptions

apiKey: string

An organization-scoped API key, created in Hub under Organizations → API Keys.

Server-side only. This key acts for the whole organization and is not scoped to one form. Anything you ship to a browser is readable by every visitor, so fetch form definitions from your own server or build step and pass the resulting object to the rendering components — which never receive the key. That split is why @ebitex/forms-sdk/react is a separate entry point.


optional baseUrl?: string

Defaults to ebitex’s production API. Override for a self-hosted or local deployment.


optional fetch?: (input, init?) => Promise<Response>

Injectable for testing or for a runtime with a non-global fetch.

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>


optional onSandbox?: (mode) => void

Called when the mode the API reports for this organization changes: development or cutover while it is a sandbox an agency is building for a client, null once it is an ordinary organization. Read off any response, including a refusal.

SandboxMode | null

void