The ChartPath API requires an authenticated session be supplied in the HTTP request cookies. To receive a session id you will need to POST your username and password to https://beta.afoundria.com/security_check?ajax=true and use JSESSIONID returned in the response cookies to authenticate your API requests. For example:
curl 'https://beta.afoundria.com/security_check?ajax=true' -i -L --data 'username=<username>&password=<password>'