Docs

Install the Client SDK

Load the Embedded SDK and set an end-user token before calling its methods.

Load the Embedded Client SDK on your integrations page. The SDK script creates window.MindCloud.

<script src="https://connect.mindcloud.co/assets/embedded/sdk.1.0.0.min.js"></script>

Create one SDK instance after the script loads:

const mindCloud = window.MindCloud();

Your backend must create an end user and get an end-user token. Give that token to the signed-in customer, then set it before calling SDK methods:

mindCloud.setToken(token);

Keep the MindCloud API key on your backend. The browser receives the end-user token, never the API key. The SDK uses that token for the customer's integrations and installations. Check mindCloud.getTokenExpiration() and get a new token before it expires.

Next, build the integrations page.