Skip to content
StatusSupportDashboard
Webhooks

Event Types

Webhook events sent by SafetyKit

Once you set up your webhook endpoint, SafetyKit will send POST requests to notify you about important events in your system. Each event follows a standard format with an event_type field and a data object containing event-specific information.

You will receive this event each time a decision is successfully completed.

decision.completed

{
"event_type": "decision.completed",
"data": {
"decision_id": "example_01h2m7qdmdjckc30e1mnq6xqfd",
"decision_status": "SUCCESS",
"metadata": {},
"result": "violating",
"labels": [
{
"name": "Counerfeit brands",
"applied": true,
"explanation": "The product is stated to be a Burberry item, a well-known brand"
},
{
"name": "Illegal drugs",
"applied": false,
"explanation": "The product is a handbag, and does not contain any illegal drugs"
}
]
}
}
  • decision_id: Unique identifier for the decision
  • decision_status: Status of the decision (e.g., “SUCCESS”)
  • metadata: Any custom metadata associated with the decision
  • result: The outcome of the decision (e.g., “violating”, “non_violating”)
  • labels: Array of labels evaluated during the decision
    • name: Label name
    • applied: Whether the label applies to this decision
    • explanation: Reasoning for the label application

You will receive this event each time a batch is successfully completed.

batch.completed

{
"event_type": "batch.completed",
"data": {
"batch_id": "batch_01hf89meedvef6pc00njv3ezh0",
"batch_status": "SUCCESS",
"upload_url": null,
"download_url": "https://safetykit-batch-downloads-production.s3.us-west-2.amazonaws.com/...",
"batch_count": 2000,
"success_count": 1998,
"pending_count": 0,
"error_count": 2,
"cancelled_count": 0
}
}
  • batch_id: Unique identifier for the batch
  • batch_status: Overall status of the batch (e.g., “SUCCESS”)
  • upload_url: URL used for uploading the batch (if applicable)
  • download_url: Signed URL to download the batch results
  • batch_count: Total number of items in the batch
  • success_count: Number of successfully processed items
  • pending_count: Number of items still pending
  • error_count: Number of items that encountered errors
  • cancelled_count: Number of cancelled items