Verify OTP for PEP account access
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"otp_code": "<string>",
"subscriber_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({otp_code: '<string>', subscriber_id: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access"
payload = {
"otp_code": "<string>",
"subscriber_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}PEP Access
Verify PEP Access
Verify OTP and grant access to PEP account
POST
/
pep
/
verify-access
Verify OTP for PEP account access
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"otp_code": "<string>",
"subscriber_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({otp_code: '<string>', subscriber_id: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/pep/verify-access"
payload = {
"otp_code": "<string>",
"subscriber_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Verify PEP Access
Verify the 6-digit OTP and grant temporary access to PEP account data.Endpoint
POST /api/v1/pep/verify-access
Authentication
string
required
Bearer token (Admin JWT with
pep_access_authorized: true)Request Body
string
required
PEP subscriber UUID
string
required
6-digit OTP code received
Response
{
"success": true,
"message": "Access granted"
}
Security Notes
- OTP verification is required for each session
- Access is time-limited
- All access attempts are logged for audit
- IP address and user agent are recorded
Errors
| Code | Description |
|---|---|
| 400 | Invalid OTP or expired |
| 401 | User not authenticated |
| 403 | Not authorized for PEP access |
| 500 | Internal server error |
Authorizations
ApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Response
Access granted
The response is of type object.
⌘I