Need help with getting ConversationID's with chat api

I’m still fairly new to messing around with API’s, but I have tried everything that I can think of to get a conversation ID and I just don’t understand.
Could somebody help me out?
Chat API site for those who want to help.

1 Like

What exactly you need help with? Finding the correct API? Authenticating? Proxies? How to understand the returned data?

How to understand the returned data, I think I figured it out by looking at the network tab on the roblox site, but I’m not too sure. I keep getting the 401 error code so I think it’s just something I’m unable to run.

401 code is an error caused by you(the successful status code is 200). When you manage to get it to run, that’s how you can retrieve the convo ids:

local ids = {}
for _, convo in pairs(returnedData) do
	table.insert(ids, convo.id)
end
print(ids)

Edit: It seems the error 401 is related to the request lacking authentication credentials(according to Google), make sure that you pass in the Cookie header with a valid cookie since this endpoint requires authentication(it returns the conversations of the authenticated user).

1 Like

I have a valid cookie set up, in fact, I tested this through the swagger ui api site its self so I’m very confused. Could this have something to do with X-CSRF-TOKEN? or am I simply doing something wrong on my end?

(again I’m very new to this stuff so I apologize if I seem stupid right now lol)

Does the content of the response say “Token Validation Failed”? try printing it. If it does then it’s that, and a csrf token is probably returned within the headers of the failed response, that you can then feed back into the endpoint so the request becomes successful.