Can't get users gamepasses: "Invalid asset type Id."

https://inventory.roblox.com/docs/index.html?urls.primaryName=Inventory%20Api%20v2

I’m able to get hats/clothing/animations/plugins etc. from my inventory, but for some reason I cannot get any gamepasses I own/created.

I’ve used multiple codes (34, 42, 23) which probably relate to gamepasses, because for whatever reason every docs page on the subject shows a different AssetTypeId for gamepasses. None of them work. I’ve even tried changing the ID one by one just to see if I could find the fabled hidden gamepass AssetTypeId, but no luck.

How do games like Pls Donate automatically get all user created gamepasses?

1 Like

I inspected my network traffic for this, it isn’t properly documented anywhere but this endpoint should work:

https://www.roblox.com/users/inventory/list-json?assetTypeId=34&cursor=&itemsPerPage=100&pageNumber=1&userId={USER_ID}
Replace {USER_ID} with your user ID.

The URL for the web request for for your inventory for example, would be
https://www.roblox.com/users/inventory/list-json?assetTypeId=34&cursor=&itemsPerPage=100&pageNumber=1&userId=416036787

It’s a bit messy but once you JSON decode it, it should be a much nicer format to read from.

1 Like

Thank you! It shows all the gamepasses I own, though I have to manually check which ones I’ve created, though that isn’t an issue.

You’re a lifesaver.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.