Event format
What you send and what Sarama returns.
Request body
{
"source": "my-bot",
"payload": { "any": "json" }
}| Field | Type | Required | Notes |
|---|---|---|---|
source | string | no | Label for origin. Default http. |
payload | any | yes | Any JSON value. |
Scored event
Your destination receives the event plus a rating.
{
"event": {
"id": "9b1f...",
"source": "manual",
"received_at": "2026-05-26T18:42:11Z",
"payload": { "action": "approve", "amount": "unlimited" }
},
"rating": {
"score": 8,
"description": "Unlimited approval to an unknown spender."
}
}score is 0 to 10. It is null when the event could not be scored (too large or scoring failure); description gives the reason.