Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Use Discord credentials to make authenticated API calls through Alter Vault without exposing your API keys in code.
PropertyValue
Provider IDdiscord
CategoryCommunication
Credential TypeBearer Token

Step 1: Get Your Credentials

1

Log in to the Discord Developer Portal

2

Select your application

Select your application (or create a new one).
3

Go to the Bot section

Go to the Bot section in the left sidebar.
4

Reset Token

Click ‘Reset Token’ to generate a new bot token (this will invalidate any previously issued token).
5

Copy the bot token

Copy the bot token.
Never share your credentials publicly. Store them securely and only enter them in the Alter Vault Developer Portal.

Step 2: Add to Alter Vault

1

Open the Developer Portal

Go to portal.alterauth.com and navigate to your app.
2

Add Discord

Go to Managed Secrets > Add Provider > Discord.
3

Enter your credentials

Paste your Bot Token into the credential field.
4

Save

Click Save. You’ll receive a grant_id to use with the SDK.

Using in Code

response = await vault.request(
    HttpMethod.POST,
    "https://discord.com/api/v10/channels/YOUR_CHANNEL_ID/messages",
    grant_id="YOUR_GRANT_ID",
)