MusivaDocs
Gateway as a Service

Patreon Integration & Credential Provisioning

Automated membership synchronization, instant API key generation, and tier management via Patreon webhooks.

Musiva's Gateway integrates directly with the Patreon Webhooks API to provide friction-free, instantaneous access provisioning for bot developers.


Provisioning Workflow

Rendering diagram...

Generated Credential Format

Once the Patreon webhook verifies the member's active pledge, the user dashboard generates standard Lavalink v4 connection details:

{
  "host": "gateway.musiva.app",
  "port": 443,
  "secure": true,
  "authorization": "lm_ba9a6cd840d03760f0631c5211c77afbf4a72b38e6c698d5",
  "id": "lavamusiva"
}

Key Security Practices:

  • One API Key per Discord ID: Prevents key sharing and simplifies revocations.
  • Instant Revocation on Cancellation: If a Patreon pledge declines or is cancelled, the webhook immediately reduces the client's limits or deactivates the key.
  • Zero Client Redeployment on Upgrades: When a subscriber upgrades their tier, player limits update instantly inside the Gateway without requiring the developer to regenerate their API key or restart their bot.