Skip to main content
POST
/
api
/
v1
/
compliance
/
alerts
curl -X POST "https://olive-gateway-a6ba.onrender.com/api/v1/compliance/alerts" \
  -H "Authorization: Bearer olive_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "subscriber_id": "sub_abc123",
    "alert_type": "SUSPICIOUS_BEHAVIOR",
    "details": "User attempted multiple PIN guesses at agent location"
  }'
{
  "success": true,
  "message": "Alert created",
  "alert_id": 101
}
Manual alert creation for suspicious activity observed by agents or support staff.

Request

Authorization
string
required
Bearer olive_live_xxx

Body Parameters

subscriber_id
string
required
Subscriber UUID involved
alert_type
string
required
e.g., SUSPICIOUS_BEHAVIOR, AGENT_REPORT
details
string
required
Description of the incident
rule_id
integer
Optional ID of rule violated

Response

success
boolean
Creation status
alert_id
integer
ID of created alert

Examples

curl -X POST "https://olive-gateway-a6ba.onrender.com/api/v1/compliance/alerts" \
  -H "Authorization: Bearer olive_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "subscriber_id": "sub_abc123",
    "alert_type": "SUSPICIOUS_BEHAVIOR",
    "details": "User attempted multiple PIN guesses at agent location"
  }'
{
  "success": true,
  "message": "Alert created",
  "alert_id": 101
}