Secret Variable for HTTP Request

local purchaseReq = HttpService:PostAsync(url, {["Authorization"] = HttpService:GetSecret("API_Token")})

That’s my code. I’m basically trying to access that secret but I get an error: “Cant find secret with given key”. Do you have ideas on why?

Here’s my keys

When play testing, did you run it on a Team Test or Local Test?

To quote from a Roblox Staff Member:

By production, they mean in-game instead of Studio)

1 Like

I’m from studio and I’m testing on my local server

Then that is probably the issue. Try testing it on a Team Test

1 Like

Worked, thank you! char capppppppp

1 Like