Skip to main content

Interface: NexatronConfig

Configuration for the Nexatron client.

Properties​

baseUrl​

baseUrl: string

Base URL of the Nexatron API (e.g. "https://api.nexatron.io").


retry?​

optional retry?: false | RetryConfig

Retry policy for transient failures. Set to false to disable retries.


signal?​

optional signal?: AbortSignal

Optional AbortSignal applied to every request issued by this client.


tenantId?​

optional tenantId?: string

Optional tenant ID for multi-tenant deployments.


timeoutMs?​

optional timeoutMs?: number

Per-request timeout in milliseconds. Default: 120000 (120s). Set 0 to disable.


token​

token: string

Authentication token. One of:

  • a JWT for a signed-in Nexatron user,
  • an nxa_… service API key (server-side only — never ship one to a browser),
  • an nxe_… embed token minted with a viewer_user_id and the query scope. This is the one to use in a customer-facing page: every call it authenticates runs as that named viewer, so row-level security, ABAC and column masking resolve for the person looking at the widget rather than for whoever minted the token.