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.
GET https://apis.roblox.com/cloud/cloud/v2/universes/:universeId/secrets/public-key Get Public Key universeId The universe ID Retrieves 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.