Start building

How to Fix "Studio access to API services is not enabled" in Roblox Studio

Roblox Studio OutputServices Error
502: API Services rejected request with error / Studio access to API services is not enabled
30-Second Fix

Why it happens & how to fix it

Publish your place to Roblox (`File > Publish to Roblox`), then open `Home > Game Settings > Security` and turn ON **Enable Studio Access to API Services**, then click Save.

Broken codeCauses error
-- Unwrapped DataStore call crashes whenever API Services are disabled
local data = store:GetAsync("u_" .. player.UserId)
Working fixSafe Luau
-- Always wrap DataStore calls in pcall so local tests never hard-crash
local ok, data = pcall(function()
	return store:GetAsync("u_" .. player.UserId)
end)
if not ok then
	warn("DataStore unavailable (enable API Services in Game Settings):", data)
end

Root cause & debugging checklist

Local unsaved `.rbxl` files don't have a Roblox Universe ID yet, and even published places block Studio from writing to live DataStores by default until you opt in under Security settings.

  • Save & publish your experience to Roblox (even Private works for testing).
  • Open Game Settings > Security > Enable Studio Access to API Services = ON.
  • Wrap all GetAsync / SetAsync / UpdateAsync calls in `pcall` as a safety net.

Common questions.

Does my Roblox game have to be Public to enable API Services?

No! Your game can stay Private while you test DataStores in Studio — it just needs to be published to Roblox once.

More Roblox error fixes.

All 12 error guides

Revix reads Studio Output
and fixes bugs automatically.

Start building free

Free to start. No card needed.