/api/auth/loginSign in and get a session cookie. Fetch a CSRF cookie first and send it back as X-XSRF-TOKEN. For scripts, prefer a tenant API key.
curl -c cookies.txt https://velatrixcloud.com/api/auth/csrf-token
curl -X POST https://velatrixcloud.com/api/auth/login \
-b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-H "X-XSRF-TOKEN: XSRF_TOKEN_FROM_COOKIES_TXT" \
-d '{"username": "[email protected]", "password": "••••••••"}'