Pull API key from file or ENV

I have an astrobox gateway and I"m writing an automation that curls localhost/api/job on a schedule.

Is there a way for root to dynamically pull the API key either from a file or from an environment variable?

Found the api key in

/etc/astrobox/config.yaml

However the key only exists in that config file if you have “Regenerate API Key on Reboot” disabled in the settings.

1 Like