Giter VIP home page Giter VIP logo

discord-api-endpoints's Introduction

Discord-Api-Endpoints

A list of useful Discord API endpoints

If you find any mistakes please create a Pull request.

X-Super-Properties Header

Discord now requires the X-Super-Properties HTTP header for some endpoints. Those endpoints are marked with an asterisk (*).

This header may be a new deterrent against bots. However, it does not provide personally-identifiable information. If you send a request to an endpoint, which requires the new header, it will return the following:

{
  "message": "Missing Access",
  "code": 50001
}

The new header is a Base64 string, which decodes to:

{
  "os": "Windows",
  "browser": "Discord Client",
  "release_channel": "canary",
  "client_version": "1.0.49",
  "os_version": "10.0.22621",
  "os_arch": "x64",
  "system_locale": "en-US",
  "client_build_number": "152450",
  "client_event_source": null
}

However, Discord only requires the following information in order to process the request:

{
  "os": "Windows",
  "client_build_number": 152450
}

This encodes to

ewogICJvcyI6ICJXaW5kb3dzIiwKICAiY2xpZW50X2J1aWxkX251bWJlciI6IDE1MjQ1MAp9

discord-api-endpoints's People

Contributors

2m4u avatar gregtcltk avatar pasindudushan avatar quadratickid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-api-endpoints's Issues

New api endpoints

I did some digging in the https://discord.com/assets/f9d8b450f4933d6100b3.js file and was able to get a lot of api endpoints. id1, 2 and 3 - values ​​that are passed to the functions to create api endpoints.
The file also contains lines like this:
PICK_GUILD_SETTINGS: '/guilds/settings/id1',
PICK_GUILD_SETTINGS1: '/guilds/settings/id1/id2',
PICK_GUILD_SETTINGS2: '/guilds/settings/id1/id2?feature=id3',
they were created because the functions for creating api endpoints can take on many values.

I hope this information is helpful...

api.txt

New superx value

gang yall only need this
headers = {
"authorization":token,
"x-super-properties":"ewogICJvcyI6ICJXaW5kb3dzIiwKICAiY2xpZW50X2J1aWxkX251bWJlciI6IDI3NTIwOAp9"
}

Add/Update a URI for authentication

Hello everyone.
I need to be able to Add/Update a URI for authentication.
I don't want to add it manually every time in: settings->OAuth2->Redirects.
is there an API endpoint to do this?

On Mac OS X different x-super-properties

I login on discord using mac only, so x-super-properties with windows not working

export default {
windows: 'eyJvcyI6IldpbmRvd3MiLCJjbGllbnRfYnVpbGRfbnVtYmVyIjoxNjgxNDd9',
macOSX: 'eyJvcyI6Ik1hYyBPUyBYIiwiY2xpZW50X2J1aWxkX251bWJlciI6MTY4MTQ3fQ==',
linux: 'eyJvcyI6IkxpbnV4IiwiY2xpZW50X2J1aWxkX251bWJlciI6MTY4MTQ3fQ==',
};

Registering Account

Hi Greg!

Ok so i have Successfully generated fingerprint putted that in the /auth/register
Solved captcha it gives a long ass string

P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQdQggsS8PKiBSFprBs52OJrIRX2dmNISLKkN_J4Ag45orIVFGUi_4EMf_3hxxNf4jGcvZydabqBG54VQJ8iVLl0qSL-a5ONPfVBGoI52WVdTUSqLTnVYDn860nsHC48ccxGER52IujCRzGpa__S-PkhiwSVil-H9eSjeWHfUhfYAeIFC7JRMk6mlDSK959bCTioMOt6Mogyix0hu9G7vSO-...About 1000 more Char

i putted that in the

{
"fingerprint": resp.data.fingerprint,
"email": email,
"username": username,
"password": password,
"invite": null,
"consent": true,
"date_of_birth": "2000-01-01",
"gift_code_sku_id": null,
"captcha_key": captchaToken
}

Still it says

{
captcha_key: [ 'invalid-response' ],
captcha_sitekey: '4c672d35-0701-42b2-88c3-78380b0db560',
captcha_service: 'hcaptcha'
}

Thanks!

Get the Bot name

Hi all.
I need to find to detect the BOT name using the bot token.

is this API endpint can do?

many POST request

POST:
/users/@me/invites -> create user invite

/users/@me/settings -> update custom status

/guilds/:guildId/members/@me -> change guild username

/channels/:channelId/typing -> typing in channel

/channels/:channelId/messages -> send message in channel

Finish it, please!

This has already been immensely useful, but if would be amazing if you could map everything else :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.