Connect Discord
Use this guide when you want Alerta to deliver alerts into Discord.
What This Guide Covers
- connecting Discord in Alerta
- sending and replying through the public V2 API
- starting a Discord thread and posting into it with the public V2 API
Before You Begin
You will need:
- an active Alerta session
- the correct organization selected
- permission to manage integrations
- access to the Discord server you want to use
Where To Start In Alerta
Open the Integrations page and choose Discord.
Setup Flow
Discord is usually the most detailed provider setup because the right server, channel, and bot access all need to line up.
- Click Discord.
- Alerta shows the Discord servers available to your account.
- Choose a server.
- Alerta loads the available channels for that server.
- Choose the destination channel.
- If the bot is not installed in that guild, Discord will require bot installation before setup can finish.
- Complete the Discord connection flow with the selected context.
- Alerta verifies access and saves the guild and channel binding.
Public V2 Endpoints
Discord public endpoints are:
POST /v2/discord/sendPOST /v2/discord/replyPOST /v2/discord/start-threadPOST /v2/discord/send-thread-message
Read the current API guidance in Alerta API, or review the older provider-specific reference in Legacy APIs.
Discord-Specific Notes
- Discord
send,reply,start-thread, andsend-thread-messageall usechannelRef. channelRefis an internal Alerta binding reference likeC_ALT_....POST /v2/discord/sendreturnsthreadIdandchannelId, so you can reply immediately without a separate lookup.- Discord thread flows are separate from the main reply flow. Use
start-threadto create a thread andsend-thread-messageto post into that thread.