Contentful Personalization & Analytics
    Preparing search index...

    Configuration for the high-level ApiClient.

    interface ApiClientConfig {
        environment?: string;
        experience?: Omit<ExperienceApiClientConfig, GlobalApiConfigProperties>;
        fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">;
        insights?: Omit<InsightsApiClientConfig, GlobalApiConfigProperties>;
        spaceId: string;
    }

    Hierarchy

    Index

    Properties

    environment?: string

    Contentful space environment identifier.

    Used by the Experience API v3 and Insights API v2 /environments/{environment}/ path segment.

    'master'

    Configuration for the Experience API client.

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

    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 Insights API client.

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

    spaceId: string

    Contentful Space identifier used for authentication or tracking.