Contact - BluDood/BluDoodAPI GitHub Wiki

Setting up environment variables for the /contact endpoint

To enable the /contact endpoint, you'll need to register a Discord Webhook:

Steps

Go to the settings of any Discord channel you would like to receive messages in, and click "Integrations" > "Webhooks". Click "New Webhook", optionally give it a name, and click "Copy Webhook URL". Now paste it into your .env file as such:

DISCORD_WEBHOOK=webhook_url

Optional: Receive pings for new messages

  1. In your Discord client, head over to the Advanced tab in Settings, and enable "Developer Mode".
  2. Now, click on your profile in the lower left, and click "Copy User ID"
  3. Then, paste it into your .env file as follows:
DISCORD_USER_ID=your_user_id