Restore Spam Message
POST/api/messaging/spam/:message_id/restore
Restore a spam message: flip the status, optionally whitelist the sender.
Idempotent — calling on an already-restored row returns success without re-running the original handler. The original webhook payload is preserved on the row.
Whitelist routing (when add_to_whitelist=true):
- Channel in
mode='override'→ sender appended to the channel's whitelist (per-channel scope). - Channel in
mode='inherit'→ sender appended to the integration's whitelist (propagates to every channel inheriting from this integration).
The user-facing UI doesn't need to know which side received the write —
the response carries whitelist_target purely for observability.
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error