Guides
Endpoints
Reference
Getting Started
The Cosmo API allows you to programmatically obfuscate Luau scripts. All endpoints require authentication with a valid API key.
Examples
const response = await fetch('https://api.cosmo.dev/obfuscate', {
method: 'POST',
headers: {
'Authorization': 'Bearer cosmo_sk_...',
'Content-Type': 'application/json',
},
body: JSON.stringify({
source: 'local x = 1'
})
});
const result = await response.json();