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>Without a logged-in user
Section titled “Without a logged-in user”Simply omit the customer field:
SupportDesk.init({ appId: 'your-app-id', apiKey: 'pk_live_xxxxxxxxxxxx',});