@twilio/flex-sdk
    Preparing search index...

    Function getPublicConfig

    • Retrieves public configuration from the Flex Configuration Service.

      Parameters

      • option:
            | Partial<Record<"accountSid", never>> & RuntimeDomainOption
            | Partial<Record<"runtimeDomain", never>> & AccountSidOption

        Either an AccountSidOption or RuntimeDomainOption object

      Returns Promise<PublicConfig>

      A PublicConfig object with the public configuration

      • If the request to the Flex Configuration Service fails.
      • If the response from the Flex Configuration Service is invalid.
      import { getPublicConfig } from "@twilio/flex-sdk";

      const publicConfig = await getPublicConfig({ accountSid: "AC123456789009876543210" });