v1
latestOpenAPI 3.0.42026-08-068161,1253.1 MBUniverses
Get Public Key
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.
get/cloud/v2/universes/{universeId}/secrets/public-key
Path parameters
universeIdinteger required
The universe ID
Response
OK