API Reference
chat.image.rejected
Schema
This event is emitted when an image submitted to the chat system is rejected during moderation. The event provides contextual information about the rejected image, including the project that attempted the submission, the profile initiating the action, the image’s URL, and the specific reason it was rejected (e.g., violent, self-harm–related, or illegal content).
Type:objectprojectId stringrequiredThe unique identifier for the project from which the rejected image request originated.
Type:stringsourceProfileId stringrequiredIdentifies the profile (such as a user or persona profile) that initiated the image submission. Useful for auditing or tracking user-level actions.
Type:stringreason stringrequiredIndicates the specific moderation failure category that caused the image to be rejected.
| Value | Description |
|---|---|
VIOLENT_CONTENT | The image contains violence or graphic/unsafe violent material. |
SELF_HARM | The image includes self-harm, suicidal content, or related imagery. |
ILLEGAL_CONTENT | The image includes illegal or illicit content prohibited by policy or law. |
stringAllowed values: "VIOLENT_CONTENT", "SELF_HARM", "ILLEGAL_CONTENT"