Skip to main content

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).

projectId
string
required

The unique identifier for the project from which the rejected image request originated.

sourceProfileId
string
required

Identifies the profile (such as a user or persona profile) that initiated the image submission. Useful for auditing or tracking user-level actions.

pictureUrl
string
required

The URL of the image that was rejected.

reason
enum<string>
required

Indicates the specific moderation failure category that caused the image to be rejected.

ValueDescription
VIOLENT_CONTENTThe image contains violence or graphic/unsafe violent material.
SELF_HARMThe image includes self-harm, suicidal content, or related imagery.
ILLEGAL_CONTENTThe image includes illegal or illicit content prohibited by policy or law.
Available options:
VIOLENT_CONTENT,
SELF_HARM,
ILLEGAL_CONTENT