Storefront Portal APIs
These APIs require [_iamadt_client_portalId,_iambdt_client_portalId] tokens from cookies.
To retrieve your portal id, hit the api in your builder console.
$X.get({ url : app.data.api_url + "/portals/settings", headers : app.getHeaders() });
Portal id will be available in the response under portal_settings -> federated_signin -> redirect_uri.
Ref below image.
The highlighted string is the portal ID