Help with permissions api

excuse me for how many posts i’m making, im a little dumb when it comes to the open cloud stuff and whatnot

but

right now, i’m trying to make it so that you can like grant a collaborator access to use via an api

i don’t really know how i’ll just be honest :sob: i’m begging here, is there an api for this that supports cookie or smt?

Hey,

You can use this API endpoint with both a cookie and an API key: https://create.roblox.com/docs/cloud/reference/features/assets#patch_asset_permissions_api_v1_assets_permissions

Check out the Schema button for more of a guide as to how to format the request. It is a little counter intuitive in the sense that it takes a list of assets to grant permission to as opposed to a list of subjects.

hey, im contacting you again sorry :sob:

i worded my post wrong my dearest apologies, i mean like, getting the permissions on an audio to see if the account linked to the cookie is whitelisted

Hey no that’s all good. Unfortunately I’m not exactly too certain how to actually fetch the permissions, but maybe actually using the asset delivery endpoint could help. If you’re just looking to see if the authenticated user can download/use the asset, you could attempt to access it through the delivery API and see if that succeeds. Check out the open cloud version here: https://create.roblox.com/docs/cloud/reference/features/assets#get_asset_delivery_api_v1_assetId__assetId_.

If you would like to use an cookie instead of the recommended API key, you can also try out this endpoint: https://create.roblox.com/docs/cloud/reference/features/assets#assetdelivery_get_v2_assetId__assetId_

thank you so so much! i was able to detect if the bot actually can access the asset. although, one other thing

i’ve reached another problem with assets, which is stuff like this page

i tried searching the asset reference and found nothing relating to asset privacy or adding stuff into the permissions list on the experience-side, not the asset-side. do you happen to know any api key or cookie endpoints that do this?

p.s. im sorry for bothering you so much lol, i typically do luau coding and rarely open cloud so all this is new to me

nevermind, i got it, don’t worry!!

thank you so so much!!

1 Like

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