The easiest way to add MusicMate to your website.
<script>
window.MUSICMATE_API_KEY = 'your_api_key_here';
</script>
<script src="https://spotify-bot.azurewebsites.net/static/js/widget-loader.js"></script>
If you want to build your own UI, just use our API endpoint:
fetch('https://spotify-bot.azurewebsites.net/api/v1/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your_api_key_here'
},
body: JSON.stringify({
user_id: 'any_user_id',
message: 'your message',
mode: 'support' // or 'ai'
})
});
For development and testing purposes, you can use this API key:
mk_1WsqTJZes3mZpiFHHjFyqvWYDpsMu9fou5crpbkarQ4
⚠️ This key will only work on localhost:3000
That's it! The response will contain the chatbot's reply.
Error Code | Description |
---|---|
401 | Missing API key |
403 | Invalid API key |
500 | Server error |
Contact our admin team to request an API key for your website.
Yes! The widget includes a toggle to switch between Support and AI modes.
Currently no rate limits are implemented.