Get Public Key
Changed onRetrieves the public key for a universe. You need this key to encrypt secret content before sending it to Roblox.
Only the owner of the universe can retrieve the public key. For group-owned universes, only the group owner or authorized members can retrieve the public key.
The secret id field is static and always returns "public-key".
The returned public key in the secret field is universe-specific and derived from a master key using the universe ID. Use this key with LibSodium sealed box encryption to encrypt your secret content before creating or updating secrets.
Include the key_id from the public key response in the request to create or update a secret.
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/universes/{universeId}/secrets/public-key
- 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
Response
OK
Changes
- 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