How to call system functions before login?

Another “solution” would be a login using ApiKeys but is that a good practive? Having every customer to log in using those keys for “global” task such as calling functions?