Create Secret
Changed onCreates a new secret. A maximum of 500 secrets per universe is allowed.
Only the owner of the universe can create secrets. For group-owned universes, only the group owner or authorized members can create secrets.
To encrypt the secret:
- Get the public key using the Get Public Key endpoint
- Encrypt your secret using LibSodium sealed box
- Base64 encode the encrypted content
Include the key_id from the public key response in the request.
For an example, see the Secrets store guide.
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/universes/{universeId}/secrets
- Auth
- API key in header x-api-key
- or OAuth 2Authorization code: https://apis.roblox.com/oauth/v1/authorizeToken URL: https://apis.roblox.com/oauth/v1/token
Path parameters
The universe ID
Request body
Response
Created
Changes
- breaking
the
request property format changed from no format todate-time - breaking
the
request property format changed from no format todate-time - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
response's property type changed fromstringtointeger, and format from no format toint32for status
- breaking