Event Overview
Themedia.created event is triggered immediately after media is successfully submitted through the /submit-media endpoint. This allows you to track when content enters the moderation queue.
Payload Structure
Payload Fields
string
required
The event type. Always
media.created for this event.string
required
ISO 8601 timestamp of when the event occurred.
string
required
Unique identifier for the media item in Pixel Patrol.
string
Your application’s identifier for this media item.
string
required
The site ID associated with this media submission.
string
required
The current status. Always
pending for newly created media.string
required
Type of content:
text, image, or video.string
required
Timestamp when the media was created.
object
Custom metadata provided during submission.
Example Implementation
Use Cases
- Tracking: Monitor submission rates and queue sizes
- User Notifications: Inform users their content is being reviewed
- Analytics: Track submission patterns and volumes
- Synchronization: Keep your database in sync with moderation status