Skip to main content

Endpoint

Request Body

FieldTypeRequiredDescription
typestringYesEvent type
prioritystringYescritical, high, normal, low
verticalstringYeshealthcare, banking, logistics
idempotency_keystringYesUnique key to prevent duplicates
payloadobjectNoOpaque payload

Example

curl -X POST https://api.wede.pt/v1/events \
  -H "x-wede-api-key: wede_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "EMERGENCY",
    "priority": "critical",
    "vertical": "healthcare",
    "idempotency_key": "evt-001",
    "payload": {"patient_id": "PT-001"}
  }'

Response

{
  "event_id": "0ee3dfbe-...",
  "status": "pending",
  "channel_selected": "rest_full",
  "created_at": "2026-05-12T10:00:00Z"
}