Deyta constructor accepts a single DeytaConfig object.
Options
Your Deyta API key. Sent as
Authorization: Bearer <apiKey> on every request.Override for staging, regional endpoints, or self-hosted gateways.
Per-request timeout in milliseconds. Combined with caller-supplied
AbortSignals — either can abort the request.Inject a
fetch implementation. Useful for tests, custom runtimes, or
polyfills. Defaults to globalThis.fetch.Hook that receives
request, response, retry, and error events. No-op
by default. Useful for wiring Pino, Winston, or console.Logger events
User-Agent
Every request carries aUser-Agent header of the form:
headers can add additional headers.
See Cancellation and per-call options.