Skip to main content
POST
/
partner-sdk
/
token
cURL
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
}

Authorizations

Authorization
string
header
required

Discord bot token

Body

application/json
client_id
string<snowflake>
required
external_auth_token
string
required
Maximum string length: 10240
external_auth_type
required
Allowed value: "OIDC"
client_secret
string | null
Maximum string length: 1024

Response

200 response for partner_sdk_token

token_type
string
required
access_token
string
required
expires_in
integer<int32>
required
scope
string
required
id_token
string
required
refresh_token
string | null
scopes
string[] | null
expires_at_s
integer<int32> | null