Event Overview
The media.moderated event is triggered when the moderation process completes for a media item. This includes both AI-based and manual moderation decisions.
Payload Structure
Payload Fields
The event type. Always media.moderated for this event.
ISO 8601 timestamp of when the event occurred.
Unique identifier for the media item in Pixel Patrol.
Your application’s identifier for this media item.
The site ID associated with this media.
The new moderation status: approved, rejected, or pending_review.
The status before moderation.
How the content was moderated: ai, manual, or rule.
Timestamp when moderation completed.
Detailed information about the moderation decision.
data.moderation_details.rule_violations List of rules that were violated (if any).
data.moderation_details.ai_analysis AI confidence scores for different content categories.
Custom metadata provided during submission.
Status Values
approved : Content passed moderation and is safe to display
rejected : Content violated one or more rules and should not be displayed
pending_review : Content requires manual review by a moderator
Example Implementation
Use Cases
Content Publishing : Automatically publish approved content
User Notifications : Inform users about moderation decisions
Content Removal : Remove or hide rejected content
Manual Review Queue : Route edge cases to human moderators
Analytics : Track approval/rejection rates and reasons