What is OpenCloud?
OpenCloud is Roblox’s modern REST API infrastructure that provides secure, authenticated access to your experiences and resources. Unlike legacy web APIs, OpenCloud uses API keys for authentication and follows industry-standard REST conventions. RoZod includes 95+ OpenCloud endpoints across both v1 and v2 API versions, all code-generated from official Roblox documentation with full TypeScript type safety.Import structure
OpenCloud APIs are organized into v1 and v2 namespaces:Direct imports
You can also import specific endpoint modules directly:Authentication
OpenCloud APIs require API keys for authentication. You can configure authentication once at startup usingconfigureServer():
Creating API keys
To create an OpenCloud API key:- Go to the Creator Dashboard
- Navigate to Credentials under your experience
- Click Create API Key
- Select the required scopes for your use case
- Copy and securely store your API key
Scopes and permissions
Each OpenCloud endpoint requires specific scopes. For example:- DataStores:
universe-datastores.objects:read,universe-datastores.objects:write - Messaging:
universe-messaging-service:publish - Universe Management:
universe:write - Assets:
asset:read,asset:write
Mixed authentication
You can use both classic API cookies and OpenCloud keys together:The API key is only applied to OpenCloud endpoints (URLs containing
/cloud/). Cookies are used for all other Roblox APIs.Manual authentication
You can also pass headers manually per-request:Basic usage example
API versions
v1 APIs (Legacy)
The v1 namespace contains older OpenCloud endpoints. While still supported, many have v2 alternatives:- DataStores: Basic CRUD operations
- Messaging: Cross-server messaging
- Universes: Place publishing
- Assets: Asset management
v2 APIs (Recommended)
The v2 namespace contains newer, improved endpoints with:- Better error handling
- More consistent response formats
- Additional features (scopes, revisions, filters)
- Improved performance
When both v1 and v2 versions are available, prefer v2 for new projects.
Error handling
OpenCloud APIs return standard error responses:Rate limits
OpenCloud APIs have rate limits that vary by endpoint. When you exceed limits, you’ll receive a429 Too Many Requests response.
Next steps
DataStores
Manage persistent data storage
Messaging
Cross-server communication
Universes
Manage experiences and places
Assets
Upload and manage assets