Firebase rest api

Hello, I am using the Firebase REST api, I wanted to know how dangerous it is that the api key is written in the blocks when making the authentication request.