Authentication Method
The Discord plugin uses API key authentication for the REST API. Internally, Corsair treats your bot token as theapi_key value and sends it as Authorization: Bot <token>.
api_key(default) — Bot token for Discord’s API
authType surface; you operate as a bot using the bot token.
Bot Token (API Key)
Step 1: Create a Discord Application
- Open the Discord Developer Portal.
- Click New Application, name it, and create it.
Step 2: Add a Bot and Copy the Token
- Open your application → Bot.
- Click Add Bot if you have not already.
- Under Token, click Reset Token or Copy to copy the bot token.
- Store it securely — anyone with the token can control the bot.
Step 3: Invite the Bot (Guilds)
In the Developer Portal, use OAuth2 → URL Generator (or Installation) to generate an invite URL with the bot scope and the permissions your integration needs. Open the URL in a browser and add the bot to the servers you manage.Interaction Public Key (Webhooks)
Discord Interaction payloads (slash commands, buttons, modals) are signed with Ed25519. Corsair verifies them using your application’s Public Key. In the key store, this value is stored as the webhook signing material (webhook_signature).
- In the Developer Portal, open your application → General Information.
- Find Public Key and copy it.
Required Credentials Summary
| Credential | Required for | Where to find |
|---|---|---|
| Bot token | api_key / REST API | Application → Bot → Token |
| Application public key | Interaction webhook verification | Application → General Information → Public Key |