This method can be used to validate calls made from the Datacloud.sh server to the API. To use this, download this package and import validateCredential then use it as a middleware in api.
npm install @exponential/developer-utils
const { validateCredential } = require('@exponential/developer-utils');
app.get("/path-to-be-authenticated-1", validateCredential.bind(null, process.env.API_SECRET), async (req, res) => {
})
app.post("/path-to-be-authenticated-2", validateCredential.bind(null, process.env.API_SECRET), async (req, res) => {
})