Error 401, unauthorized when trying to read DataStores with Open Cloud

im testing out roblox’s Open Cloud and im trying to read the datastore of a test place. I gave my key every permission but yet it still gives me error 401 which means unauthorized. Is there anything I could be doing wrong? Ill post my javascript here just incase.

const Axios = require('axios')

async function sendrequest() {
    Axios.get("https://apis.roblox.com/datastores/v1/universes/6227803628/standard-datastores",{
        headers: {
            'x-api-key': "hiddenforsafety"
        }
    }).then(response => {
        console.log(response.data);
    }).catch(err => {
        console.log(err.response)
    })
}

sendrequest()

Is your IP whitelisted? Otherwise, you can just add 0.0.0.0/0 to allow API key usage for all IPs assuming only you have access to this API key.

1 Like