With the Reports v2 API you can create and manage reports for items that are reported by site visitors, such as comments. For example, if a site visitor finds offensive content, such as hate speech, they can report it, and the report will appear in the Wix user's dashboard.
With the Reports v2 API, you can:
It is important to know the following points before using this API:
entityName
and an entityId
.This article shares some possible use cases of the API. You are not limited to these use cases, but they can be a helpful jumping off point as you plan on how to use this API.
You can analyze user-reported issues and identify recurring problems in the site's content. This helps site owners make informed decisions about updating community guidelines and implementing stricter content rules. For example, if the analysis reveals that a majority of reports cite "spam" as the issue, the site owner can implement automated spam detection tools and update community guidelines to address the problem proactively.
To track reasons for content reports:
reasonTypeCount
array, and pass it to your data analysis tool for processing.reason
field from these events and send it to your data analysis tool to update your calculations in real time.The following table shows field support for filters and sorting for the Report object:
Fields | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $in , $lt , $lte , $gt , $gte | Sortable |
createdDate | $eq , $ne , $in , $lt , $lte , $gt , $gte | Sortable |
entityName | $eq , $ne , $in , $lt , $lte , $gt , $gte | Sortable |
entityId | $eq , $ne , $in , $lt , $lte , $gt , $gte | Sortable |
Report ID.
Reported entity name, such as comment
.
Reported entity ID.
Identity of who created a report.
Reason for the report.
Revision number, which increments by 1 each time the rule is updated. To prevent conflicting changes, the existing revision must be used when updating a rule.
Date and time when the report created.
Date and time when the report updated.
Custom field data for the report object.
Note: You must configure extended fields using schema plugin extensions in your app's dashboard before you can access the extended fields with API calls.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a report.
You can only call this method when authenticated as a Wix app or Wix user identity.
Report details.
Created report.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a report.
Site members and visitors can only access their own reports.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the report to retrieve.
Retrieved report.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a report and removes it from the report list in the dashboard.
Site members and visitors can only delete their own reports.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the report to delete.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a report.
Each time the report is updated, revision
increments by 1. The current revision
must be passed when updating the report. This ensures you're working with the latest report and prevents unintended overwrites.
You can only call this method when authenticated as a Wix app or Wix user identity.
Report ID.
Report to update.
Updated report.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates or updates a report.
If the report for the requested entity already exists, updates the report with the provided reason
value. Otherwise, creates the report.
Reported entity name, such as comment
.
Reported entity ID.
Report to create or update.
Updated or created report.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.