Data Stores v2 Open Cloud APIs are Now in public Beta

So if datastores can still be edited outside of Roblox (say, by a Discord bot), how would it get permission to do so?

5 Likes

Great update, Roblox! I was planning on using the API’s one day. Thank you for continuously making updates for the platform, and have a great day!

4 Likes

There are things called “API Keys”, which gives an HTTP (or HTTPS) request to access data which is not accessible to users otherwise. If you want to make something yourself, you can go onto this website to create your own API key!

4 Likes

Got it, thanks! I’m pretty unfamiliar with web development, thanks for clearing things up.

7 Likes

Hey there eatablerock,

Yep, as others have mentioned, calls to the Data Stores Open Cloud endpoints are protected by an API Key. There’s some useful information on this documentation guide about how to use those. Give it a try!

3 Likes

Hi Mighty, I followed up in a DM!

3 Likes

You’re welcome, IcKon! Give them a try and feel free to come back here and relay any feedback to us :sunglasses:

3 Likes

Hi PapiRootie, that’s an interesting idea! And something we’ve definitely heard about from devs before. Can you share what gameplay features you’re trying to achieve with the cross-universe Data Stores access?

4 Likes

is an instance/model serializing function, or other way of storing objects in datastores being looked into?

2 Likes

What does this mean? Are you removing the gamepersistence API? Or are you just encouraging developers to use the new API?

2 Likes

the api requires the api key, where i can get it?

1 Like

You should be able to store an arbitrary JSON object in DataStoreEntry.value. If you wanted, you could also store something like a serialized protobuf as a base64-encoded string. Does that address your use case or were you looking for some other kind of functionality?

1 Like

Try here! https://create.roblox.com/dashboard/credentials?activeTab=ApiKeysTab

3 Likes

We have a game called Fashion Famous, we would like users to be able to transfer their data to another version of the game for example, or we had a PC/Mobile version which where separate places

1 Like

I’m not an expert with httpservice, but i’m fairly certain you could use it for something like this.

Although this would be a hastle, so I’m totally down for an update like this.

1 Like

Hey PapiRootie, thanks for sharing! In your mind is this a one-time migration or are you considering using a single cross-universe Data Store permanently for multiple places?

One time migration! We have over 2B entries in the old game.

1 Like

I’m under the assumption an API key is required for all open cloud actions.

This is pretty minor, but why is the update endpoint PATCH instead of PUT? At a user level, I feel like PATCH communicates partial updates. Glad I read the docs first!
Screenshot 2024-07-30 172805

There is a problem with data-store IDs if they contain a “/”. The API cannot find such IDs because it interprets the “/” as a separator, which prevents data from being requested and results in a 404 error. This issue affects users of the DataStore2 module.

1 Like