We have a helpful SDK you can use to call your Summit models from JavaScript. You can find it on GitHub with extensive documentation or install it into your codebase from NPM: npm install @usesummit/sdk
.
Keeping your API Key Private
If you include your API key in front-end code, it is visible to anyone viewing your source code. To call the Summit API from a front-end client, we recommend using a backend proxy that keeps your keys hidden.
You may also restrict the domain that the API may be called from, but this method is not bulletproof and can be spoofed.