New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/partner-sdk/token \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"external_auth_token": "<string>",
"external_auth_type": "<string>",
"client_secret": "<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 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"external_auth_token": "<string>",
"external_auth_type": "<string>",
"client_secret": "<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
10240"OIDC"1024