Aggregated API client providing access to Experience and Insights APIs.
This client encapsulates shared configuration and exposes dedicated sub-clients for experience and insights use cases.
const client = new ApiClient({ clientId: 'org-id', environment: 'main', experience: { // experience-specific overrides }, insights: { // insights-specific overrides },})const profile = await client.experience.getProfile('profile-id')await client.insights.sendBatchEvents(batches) Copy
const client = new ApiClient({ clientId: 'org-id', environment: 'main', experience: { // experience-specific overrides }, insights: { // insights-specific overrides },})const profile = await client.experience.getProfile('profile-id')await client.insights.sendBatchEvents(batches)
Creates a new aggregated ApiClient instance.
Global API client configuration with optional per-client overrides.
Readonly
Shared configuration applied to both Experience and Insights clients.
ApiConfig
Client for experience-related operations.
ExperienceApiClient
Client for insights-related operations.
InsightsApiClient
Aggregated API client providing access to Experience and Insights APIs.
Remarks
This client encapsulates shared configuration and exposes dedicated sub-clients for experience and insights use cases.
Example
See