-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord API Account Creation Endpoint #4
Comments
Hello, You have to send a POST request with the following payload:
If the request is successful, a status code 201 is returned along with a JSON body containing a token value. |
Thank you for the reply! What is the fingerprint in this case? The captcha key is the sitekey of the hcaptcha, right? Do the values of fingerprint and captcha change? |
You can get the value for the fingerprint by sending a POST request to |
Thank you so much for the help. I will let you know when I made a call that worked. |
Looks like there is not api for the fingerprint... any idea how to get this? |
Did you try this? |
Yes. https://discord.com/api/auth/fingerprint retuns me a |
Use https://discord.com/api/v9/auth/fingerprint instead. You forgot to specify an API version. |
Oh, yes. xD Is there anything i need to specify in the headers? |
No. |
Okay, because i still get a |
Did you send a POST request? And you may have to specify a "Host" value as a header. |
Oh i got it now... it was a missing user agent. |
|
Yeah. that's the fingerprint. But it is very weird that you have to specify a user agent. For me it is working without the specification of one. Have you figured out a solution for the captcha_key field yet? |
No not yet, but i think it is:
The soulution can be gotten by using a hcaptcha-solve api (2captcha.com), getting the sitekey, make a request to the 2captcha API and get the captcha-key. |
Yeah, it is the solution key. But the 2captcha API wasn't free. Am I right? |
Yes, it was like 0,001$ per captcha, but that is okay for me. The problem is that there is not other method because 2captcha just has tons of people solving them on a dashboard 24/7. |
I just need to figure out how this can work the best. I think i need to use bs4 to get the site-key, make a request to 2captcha and then get the fingerprint + register the account. |
hey @GregTCLTK what's next after the /auth/register endpoint? i currently get a 201 and a token. Thanks. |
After you got the token, you're able to use the other API endpoints. Just don't forget to include the token you received in the request. |
hey @GregTCLTK thank you for the response. do you have a discord? I would like to ask more questions regarding this. Thanks. |
i get 400 captcha_key:(1) ['invalid-response'] with all the correct info and a valid captcha key solved by 2captcha does anyone know why i would get this? |
me too 。 I canot pass |
Keep in mind that Discord switched from reCAPTCHA to hCAPTCHA a while back. Therefore, you have to specify a hCAPTCHA key for the captcha_key field. |
Hello,
how do i use the /auth/register endpoint to register a account?
Congrats
The text was updated successfully, but these errors were encountered: