How to know disk used % from a trigger

how to you manage api keys inside triggers? do you hardcode them? Or is there any better way to do it?