Discord Join / AddFriend
Discord Join / AddFriend workflow with Preflight and Enterprise APIs
Quick Start: Register free to get your User-Token → | Optional header:
Developer-Id: hqLmMSpreflight api request preflight api to get useragent and proxy region
JAVASCRIPT
preflight = request(
"http://api.nocaptcha.io/api/wanda/hcaptcha/preflight",
{ "User-Token": "your_token" },
{
sitekey: "a9b5fb07-92ff-493f-86fe-352a2803b3df",
},
);
if (preflight.success) {
preflight_uuid = preflight.data.preflight_uuid;
userAgent = preflight.data.data.navigator.userAgent;
region = preflight.data.data.region;
} else {
// low score or other reason
return;
}
proxy = `xxxxxx-${region}-xxxxxx-sessTime-5:xxx@ip:port`;
url = "DISCORD_URL";
resp = request(url, headers, proxy);
rqdata = resp.rqdata;
resp = request(
"http://api.nocaptcha.io/api/wanda/hcaptcha/enterprise",
{ "User-Token": "your_token" },
{
preflight_uuid: preflight_uuid, // keep session
proxy: proxy,
sitekey: sitekey,
region: region,
rqdata: rqdata,
branch: "add_friend", // "join" | "add_friend"
},
proxy,
);
token = resp.data.generated_pass_UUID;
// request to discordReady to integrate Discord Join / AddFriend? Register Free & Get API Key → | View Service Directory →