diff --git a/src/lib.ts b/src/lib.ts
index 5e336e9bb..e76d3fb2c 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -9,7 +9,7 @@ export {AsideNavigation} from './containers/AsideNavigation/AsideNavigation';
 export {configureStore, rootReducer} from './store';
 export {default as appRoutes} from './routes';
 
-export {createApi, YdbEmbeddedAPI} from './services/api';
+export {YdbEmbeddedAPI} from './services/api';
 export {settingsManager} from './services/settings';
 export {getUserSettings} from './containers/UserSettings/settings';
 export {setSettingValue, getSettingValue} from './store/reducers/settings/settings';
diff --git a/src/services/api/index.ts b/src/services/api/index.ts
index 10b14ac14..056af4788 100644
--- a/src/services/api/index.ts
+++ b/src/services/api/index.ts
@@ -25,7 +25,9 @@ export class YdbEmbeddedAPI {
     meta?: MetaAPI;
     codeAssist?: CodeAssistAPI;
 
-    constructor({config, webVersion}: {config: AxiosRequestConfig; webVersion?: boolean}) {
+    constructor({webVersion = false, withCredentials = false} = {}) {
+        const config: AxiosRequestConfig = {withCredentials};
+
         this.auth = new AuthAPI({config});
         if (webVersion) {
             this.meta = new MetaAPI({config});
@@ -41,9 +43,3 @@ export class YdbEmbeddedAPI {
         this.viewer = new ViewerAPI({config});
     }
 }
-
-export function createApi({webVersion = false, withCredentials = false} = {}) {
-    const config: AxiosRequestConfig = {withCredentials};
-    const api = new YdbEmbeddedAPI({config, webVersion});
-    return api;
-}
diff --git a/src/store/configureStore.ts b/src/store/configureStore.ts
index 1e3bff38c..1d9c46587 100644
--- a/src/store/configureStore.ts
+++ b/src/store/configureStore.ts
@@ -4,7 +4,7 @@ import type {History} from 'history';
 import {createBrowserHistory} from 'history';
 import {listenForHistoryChange} from 'redux-location-state';
 
-import {createApi} from '../services/api';
+import {YdbEmbeddedAPI} from '../services/api';
 
 import {getUrlData} from './getUrlData';
 import rootReducer from './reducers';
@@ -57,7 +57,7 @@ const isSingleClusterMode = `${metaBackend}` === 'undefined';
 export function configureStore({
     aRootReducer = rootReducer,
     singleClusterMode = isSingleClusterMode,
-    api = createApi({webVersion, withCredentials: !customBackend}),
+    api = new YdbEmbeddedAPI({webVersion, withCredentials: !customBackend}),
 } = {}) {
     ({backend, basename, clusterName} = getUrlData({
         href: window.location.href,