Skip to main content
POST
/
api
/
security
/
sessions
Terminate a session or manage blacklist
curl --request POST \
  --url https://api.propops.app/api/security/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "terminate",
  "csrf_token": "abc123def456",
  "session_id": "sess_001",
  "user_id": 1,
  "reason": "Suspicious activity detected."
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

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
action
enum<string>
required
Available options:
terminate,
blacklist_add,
blacklist_remove
csrf_token
string
required
Example:

"abc123def456"

session_id
string
Example:

"sess_001"

user_id
integer
Example:

1

reason
string | null
Example:

"Suspicious activity detected."

Response

Session actioned

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"