What is PEP?
Politically Exposed Persons (PEP) are individuals who hold prominent public positions or have close associations with such persons. Their accounts require enhanced due diligence and access controls.OTP Verification
6-digit code sent to staff phone
Audit Trail
Every access logged with IP & timestamp
Time-Limited
Access expires after session ends
Endpoints
Request Access
POST /api/v1/pep/request-accessGenerate OTP and send to authorized staffVerify Access
POST /api/v1/pep/verify-accessVerify OTP and grant temporary accessAccess Flow
Security Features
Role-Based Access
Role-Based Access
Only users with
pep_access_authorized: true in their profile can even request access to PEP accounts. This is set by system administrators.IP & Device Logging
IP & Device Logging
Every access attempt logs:
- Client IP address
- User agent string
- Request timestamp
- Staff user ID
- Subscriber ID accessed
Session Expiry
Session Expiry
PEP access is granted per-session only. When the staff member logs out or their session expires, new OTP verification is required.
Rate Limiting
Rate Limiting
Failed OTP attempts are tracked. After 3 failed attempts, the staff member is temporarily locked out.
Request Example
- Request Access
- Verify Access
Error Codes
| Code | Error | Description |
|---|---|---|
| 401 | UNAUTHORIZED | User not authenticated |
| 403 | PEP_ACCESS_DENIED | User not authorized for PEP access |
| 400 | INVALID_OTP | OTP incorrect or expired |
| 404 | SUBSCRIBER_NOT_FOUND | PEP subscriber does not exist |
| 429 | TOO_MANY_ATTEMPTS | Too many failed OTP attempts |