Skip to main content

JavaScript Web SDK

For non-React apps, we have a set of custom elements that you can embed in your web app.


If you have all the neccessary information to initialize the SDK when the page renders (clientKey, userId, etc) you can initialize the SDK like this:

<h1>Hello World</h1>
<script type="text/javascript">
window.courierConfig = {
clientKey: "{{CLIENT_KEY}}",
userId: "{{USER_ID}}",
<!-- Be sure to use the appropriate version -->
<script src="{{CURRENT_VERSION}}.js"></script>

Github Docs: Courier Inbox JS SDK