Connect from Cube Cloud
Navigate to the Integrations page, click Connect to Cube, and choose Appsmith to get detailed instructions.Connect from Cube Core
You can connect a Cube deployment to Appsmith using the REST API. For a Cube instance publicly available at a specificHOST, the REST API URL
would be HOST/cubejs-api/v1. Please refer to the
REST API page for details.
You will also need to generate a JSON Web Token that would be used to
authenticate requests to Cube.
Please check the Security page
to learn how to generate a token. We suggest generating a long-lived JWT that
won’t expire soon.
Connecting from Appsmith
Create a new data source
Copy and paste the REST API URL and the Authorization token to create a new data source in Appsmith.Create a POST request
Get your Cube query in the JSON query format ready. You can copy it from Cube’s Playground or compose manually:query parameter for your JSON query.
Because you saved the data source as HOST/cubejs-api/v1, don’t forget to add a
/load endpoint to the end of the data source API.
Next, hit Run.