Roblox group APIs

Yes, I have my discord bot and I am not owner of group (I use owners .ROBLOSECURITY) but I don’t want to wait owner to respond. That is why I want this to make.

I run it on my local but throw AutoCode, I am not sure if he run from my local IP or not.

you need your cookie and your XSRF token, the XSRF does expire after a bit so you need to send a request to the logout api to get a new one when ti expires

From this page?
Authentication Api

Yes and in the response headers the XSRF will be there here is an example in python

def GetXSRF():
	Req = requests.post("https://auth.roblox.com/v2/logout", 
	cookies= { 
		"Your Cookie",
	})
	return Req.headers["x-csrf-token"];

Are you getting logged out when doing so or not? To confirm this is a method of getting the token above, but this won’t solve your main problem as you’re getting a 401 error with a valid cookie and no token, the expected with a valid cookie and no token would be a 403 with the token sent with the response

1 Like

Is there a way to do this inside a Roblox server script?!

Kind of with a proxy link but you would have to set this up yourself using some web server hosting. Sadly you can’t send requests to links with the Roblox domain, so not with the basic API links.

What does the script have to look like, I already tried this out in a Lua script but I can’t send a cookie via HttpService

You can using HttpService:RequestAsync. You can specify the cookie in the headers.

already tried it but It won’t work

also I’m sure you would need to use :PostAsync()

No, I know you can using code that looks like this:

Also, you do have to change the type to POST, so partial credit for you

In my case I’m not using a ReqestAsync() function I would need to use the PostAsync() function

Also, I want that a bot will withdraw a certain amount of Robux through group funds to a certain user, not getting the Group Funds

it doesnt matter they do the same thing bruh

yes you just have to change the url to the fund giving api

And where can I find the api in the web api?!

This is the API docs for groups. V1, in the revenue section.
https://groups.roblox.com/docs/index.html?urls.primaryName=Groups%20Api%20v1

I found the payout feature at v1 with the POST method, but I searched for multiple days now and every post I see says I would have to login as the bot via the script