New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/users/@me/channels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_id": "<unknown>",
"access_tokens": [
"<string>"
],
"nicks": {}
}
'{
"id": "<string>",
"type": 1,
"flags": 123,
"recipients": [
{
"id": "<string>",
"username": "<string>",
"avatar": "<string>",
"discriminator": "<string>",
"public_flags": 123,
"flags": 0,
"global_name": "<string>",
"primary_guild": "<unknown>",
"bot": true,
"system": true,
"banner": "<string>",
"accent_color": 123,
"avatar_decoration_data": "<unknown>",
"collectibles": "<unknown>"
}
],
"last_message_id": "<unknown>",
"last_pin_timestamp": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://discord.com/api/v10/users/@me/channels \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_id": "<unknown>",
"access_tokens": [
"<string>"
],
"nicks": {}
}
'{
"id": "<string>",
"type": 1,
"flags": 123,
"recipients": [
{
"id": "<string>",
"username": "<string>",
"avatar": "<string>",
"discriminator": "<string>",
"public_flags": 123,
"flags": 0,
"global_name": "<string>",
"primary_guild": "<unknown>",
"bot": true,
"system": true,
"banner": "<string>",
"accent_color": 123,
"avatar_decoration_data": "<unknown>",
"collectibles": "<unknown>"
}
],
"last_message_id": "<unknown>",
"last_pin_timestamp": "2023-11-07T05:31:56Z"
}Discord bot token
200 response for create_dm