Skip to content

Vanilla JS / HTML

For a static site or no framework. Two <script> tags are enough:

<script src="https://supportdesk-widget.vercel.app/v1/supportdesk-widget.js"></script>
<script>
SupportDesk.init({
appId: 'your-app-id',
apiKey: 'pk_live_xxxxxxxxxxxx',
customer: {
externalId: 'user-123',
email: 'user@example.com',
name: 'John Doe',
},
theme: {
primaryColor: '#2563eb',
position: 'bottom-right',
},
});
</script>

Simply omit the customer field:

SupportDesk.init({
appId: 'your-app-id',
apiKey: 'pk_live_xxxxxxxxxxxx',
});