⚠️ This documentation is not complete and will change. Documentation and API References are actively being updated.
curl --request GET \
--url https://api.propops.app/api/security/file-diff \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Operation completed successfully",
"diff": "<string>",
"local_hash": "<string>",
"source_hash": "<string>",
"local_lines": 123,
"source_lines": 123
}Compares a local file against its source version from GitHub. Returns a unified diff with SHA1 hashes and line counts.
Required permission: api.security.file_diff.view
curl --request GET \
--url https://api.propops.app/api/security/file-diff \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Operation completed successfully",
"diff": "<string>",
"local_hash": "<string>",
"source_hash": "<string>",
"local_lines": 123,
"source_lines": 123
}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..."api/jobs/manage.php"