Hi @Javid Gahramanov ,
The Key Management API is decorated with the admin key policy. So, you'll need to pass an equivalent host key to the endpoint in order to get around the 401 error you're getting. You can also utilize x-functions-key in the HTTP header instead appending the key to code= in the url. I was able to get a 200 by passing the _master host key in the HTTP header.