Contentful Personalization & Analytics
    Preparing search index...

    Configuration for the high-level ApiClient.

    interface ApiClientConfig {
        analytics?: Omit<InsightsApiClientConfig, GlobalApiConfigProperties>;
        clientId: string;
        environment?: string;
        fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">;
        personalization?: Omit<
            ExperienceApiClientConfig,
            GlobalApiConfigProperties,
        >;
    }

    Hierarchy

    Index

    Properties

    Configuration for the analytics (Insights) API client.

    Shared fields (clientId, environment, fetchOptions) are inherited from top-level config; this object is for Insights-specific options.

    clientId: string

    Client identifier used for authentication or tracking.

    environment?: string

    Contentful environment identifier.

    'main'

    fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">

    Options used to configure the underlying protected fetch method.

    apiName is derived from the client name and must not be provided here.

    Configuration for the personalization (Experience) API client.

    Shared fields (clientId, environment, fetchOptions) are inherited from top-level config; this object is for Experience-specific options.