/Integrations (capital I) and has two tabs: Discord and Developer API.
Discord
Connect SunPaste to a Discord bot. Controls:Discord TokenAdmin RoleCommands Alert ChannelNotifications Alert ChannelSave Discord SettingsStart Discord BotDiscord Developer Portal
1
Enter a bot token
Enter your Discord bot token. See Create a Discord bot token.
2
Start the bot
Click
Start Discord Bot. Once it’s running, the role and channel dropdowns become usable.3
Choose role and channels
Choose the Discord role and channels.
4
Save
Click
Save Discord Settings.Discord commands
Discord-created pastes are public, and linked to the Discord user ID for listing and delete checks.
Developer API
Generate API keys for the REST API. The tab includes acurl example, an Open API Documentation button, a form to create a labeled API key, a list of active keys, and Revoke buttons.
1
Label the key
Enter a label, or leave it blank.
2
Generate
Click
Generate API Key.3
Copy it
Copy the key immediately. The plain-text key is shown only once; only its hash is stored.
4
Use it
Send it in the
X-API-Key header.The
Open API Documentation button points to a hard-coded external Swagger URL. For your own instance, use /api/docs, /swagger-ui.html, or /redoc.html instead. See API & Sharing.