RTSDK
    Preparing search index...

    Class Topia

    Main Topia SDK client for configuring API access and authentication.

    This class should be instantiated ONCE per application at initialization time. The instance configures the Axios HTTP client with proper authentication headers and base URL, and is passed to all factory classes to create controllers.

    Configuration options:

    • apiKey: Your Topia API key for server-side authentication
    • interactiveKey/interactiveSecret: For interactive iframe applications
    • apiDomain: API endpoint domain (defaults to "api.topia.io")
    • apiProtocol: HTTP protocol (defaults to "https")

    topia, client, sdk, initialization, config, setup, api

    import { Topia } from "@rtsdk/topia";

    const topia = new Topia({
    apiKey: "your-api-key",
    apiDomain: "api.topia.io",
    interactiveKey: "your-public-key",
    interactiveSecret: "your-secret-key",
    });

    Implements

    Index

    Constructors

    • Parameters

      • __namedParameters: {
            apiDomain?: string;
            apiKey?: string;
            apiProtocol?: string;
            interactiveKey?: string;
            interactiveSecret?: Secret;
            mcAuthorizationKey?: string;
        }

      Returns Topia

    Properties

    apiDomain?: string
    apiKey?: string
    apiProtocol?: string
    axios: AxiosInstance
    interactiveKey?: string
    interactiveSecret?: Secret
    mcAuthorizationKey?: string