This document includes some small scripts that you can use to interact with Agama's API from the CLI. You must define the Agama's server URL using the AGAMA_URL (e.g., https://192.168.122.10).
The following script logs in and writes the headers to use in the subsequent calls in the headers.txt file. Adjust the password (linux) to your use case.
#!/usr/bin/bash