Scans and findings
export API=http://api.pafcore.site:8080
export SID=your-session-id
curl -s -X POST "$API/v1/scans" \
-H "content-type: application/json" \
-H "x-session-id: $SID" \
-d '{"url":"https://example.com"}'
curl -s -H "x-session-id: $SID" "$API/v1/scans/$SCAN"
curl -s -H "x-session-id: $SID" "$API/v1/findings/$SCAN/0"
Poll the scan until status is done or failed.