Contentful Personalization & Analytics
    Preparing search index...

    Configuration options for API clients extending ApiClientBase.

    interface ApiConfig {
        baseUrl?: string;
        environment?: string;
        fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">;
        spaceId: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    baseUrl?: string

    Base URL for the API.

    When omitted, the concrete client is expected to construct full URLs internally.

    environment?: string

    Contentful space environment identifier.

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

    'master'

    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.

    spaceId: string

    Contentful Space identifier used for authentication or tracking.