New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/partner-sdk/token/bot \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "<string>",
"preferred_global_name": "<string>"
}
'{
"token_type": "<string>",
"access_token": "<string>",
"expires_in": 123,
"scope": "<string>",
"id_token": "<string>",
"refresh_token": "<string>",
"scopes": [
"<string>"
],
"expires_at_s": 123
}curl --request POST \
--url https://discord.com/api/v10/partner-sdk/token/bot \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "<string>",
"preferred_global_name": "<string>"
}
'{
"token_type": "<string>",
"access_token": "<string>",
"expires_in": 123,
"scope": "<string>",
"id_token": "<string>",
"refresh_token": "<string>",
"scopes": [
"<string>"
],
"expires_at_s": 123
}Discord bot token