Skip to main content
POST
/
api
/
security
/
run-integrity-check
Trigger a file integrity scan
curl --request POST \
  --url https://api.propops.app/api/security/run-integrity-check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "csrf_token": "abc123def456",
  "full_scan": false,
  "paths": [
    "/var/www/propops/api"
  ]
}
'
{
  "success": true,
  "message": "Operation completed successfully",
  "pid": 12345,
  "log_file": "/var/log/propops/integrity-scan.log"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
csrf_token
string
required
Example:

"abc123def456"

full_scan
boolean
default:false
paths
string[]
Example:
["/var/www/propops/api"]

Response

Scan launched

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"

pid
integer
Example:

12345

log_file
string
Example:

"/var/log/propops/integrity-scan.log"