Proxmox MailGateway login via Curl:
curl -k -d 'username=root@pam' --data-urlencode 'password=sd7fv72vf' --insecure https://mf.pcx3.com:8006/api2/json/access/ticket
Example response:
{"data":{"CSRFPreventionToken":"65116E08:ge9N354yDwM5VeAql2QL2D9lDz3qaihWWxuca7RaUEA","role":"root","ticket":"PMG:root@pam:65116E08::u6vM+zY/WPadgc8ubP4GD0U6yu/xMzQQO34cKkjINRj5lPmXp9V36kCJRacWxxsac/dfgdfX+o46KyeT7ScePE45yfdhbcbXjhMw+wVgDS2j9IEpyJ2hGeMHcBsBVoYw1W6clSW5JqpUPnV0QwGrPR8/1OE0xyeRgdfgdfgiy08SDxN77htpJDxfYWXYi47ROPD/FMSwia1zD7LJLYpcOzNizPycV2GAL61CvpvschcPOsPUQklcmYr1AMz8kEZOKZdgFBLwy0Z5YEsmcqUJ1UfRWu31K352+MJoOc0qTPfzPm5vgdeQHxqTdT3BdgMRD8W2C/W0WDYUf5Zh+w+3EXuw==","username":"root@pam"}}