Getting the X-CSRF token from roblox

I used the https://api.roblox.com/sign-out/v1 endpoint to get the x-csrf token from roblox, this worked fine until recently I’ve noticed this endpoint does not work anymore and would return a 404, this caused my group bot to stop working.

So I’m wondering if there is another way to get the token?
Sorry if this is not the right place for this.

3 Likes

Hey, if you still haven’t figured it out, you can use: https://auth.roblox.com/v2/logout

1 Like

This may be a little late but I get the X-CSRF token by going to the home page then by parsing through the html to find it (just get the script tags and boom)
image

1 Like

Make post request to https://auth.roblox.com/v2/logout with cookie. Check headers response at x-crsf-token.

2 Likes

Is the X-CSRF token generated valid for the entire session or only for a certain period of time?

( Update: Based on my experience, it changed every 2 minutes. )

I’m not exactly sure how it would work for actual users who are just using the website, but back when I was constantly pulling the tokens for a bot (using the link @Diltz_3 provided), it would re-generate every 1-2 minutes or so.

1 Like