Skip to main content

Request PEP Access

POST/pep/request-accessOpen in the API playground →

Generate and send OTP to access a Politically Exposed Person (PEP) account. Staff must have PEP authorization role.

Endpoint

POST /api/v1/pep/request-access

Authentication

Authorizationstringheaderrequired

Bearer token (Admin JWT with pep_access_authorized: true)

Request Body

subscriber_idstringbodyrequired

PEP subscriber UUID

Response

{
"success": true,
"message": "OTP sent successfully",
"expiry_time": "2025-01-15T10:35:00Z"
}

What Happens

  1. System verifies subscriber is marked as PEP
  2. System verifies staff has PEP access authorization
  3. 6-digit OTP is generated and sent to staff's phone
  4. OTP expires in 5 minutes
  5. Access attempt is logged with IP and user agent

Errors

CodeDescription
400Invalid request
401User not authenticated
403Not authorized for PEP access
404Subscriber not found
500Internal server error