Skip to content

AxiomClientOptions

Defined in: clients/axiom-client/dist/index.d.mts:4

Options for createAxiomClient.

optional baseUrl?: string

Defined in: clients/axiom-client/dist/index.d.mts:8

Override base URL for testing. Defaults to https://api.axiom.co.


optional errors?: ErrorSink

Defined in: clients/axiom-client/dist/index.d.mts:19

Reports transport failures and unexpected 5xx. Defaults to a no-op.


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

Defined in: clients/axiom-client/dist/index.d.mts:10

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: clients/axiom-client/dist/index.d.mts:17

Structured logger for request/response diagnostics. Defaults to a no-op.


optional orgId?: string

Defined in: clients/axiom-client/dist/index.d.mts:15

The organization id, sent as X-Axiom-Org-Id. A personal access token needs it; an API token does not (and when it is sent it must match the token’s organization).


token: string

Defined in: clients/axiom-client/dist/index.d.mts:6

Axiom API token.