> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetReport

# Package: feedbackModeration

# Namespace: ReportsService

# Method link: https://dev.wix.com/docs/api-reference/crm/community/feedback-moderation/reports-v2/get-report.md

## Permission Scopes:
Read Reports: SCOPE.DC_REPORTS.READ-REPORTS

## Introduction

Retrieves a report.

Site members and visitors can only access their own reports.

---

## REST API

### Schema

```
 Method: getReport
 Description: Retrieves a report.  Site members and visitors can only access their own reports.
 URL: https://www.wixapis.com/reports/v2/reports/{reportId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  reportId
 Method parameters: 
   param name: reportId | type:   none | required: true 
 Return type: GetReportResponse
  - name: report | type: Report | description: Retrieved report.  
     - name: id | type: string | description: Report GUID.  | read-only: true | validation: format GUID
     - name: entityName | type: string | description: Reported entity name, such as `comment`.  | validation: minLength 1, maxLength 50, immutable
     - name: entityId | type: string | description: Reported entity GUID.  | validation: minLength 1, maxLength 50, immutable
     - name: identity | type: IdentificationData | description: Identity of who created a report.  | read-only: true 
        - ONE-OF: 
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.  | validation: format GUID
           - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.  | validation: format GUID
        - name: identityType | type: IdentityType | description: Identity type  | read-only: true 
             - enum:
             -     ANONYMOUS_VISITOR: A site visitor who has not logged in.
             -     MEMBER: A logged-in site member.
     - name: reason | type: Reason | description: Reason for the report.  
        - name: reasonType | type: Type | description: Report reason type.  
             - enum:
             -     UNKNOWN_TYPE: Unknown type. This value is not used.
             -     OTHER: Entity is reported for other reasons. Specify in `details`.
             -     SPAM: Entity is reported for spam.
             -     NUDITY_OR_SEXUAL_HARASSMENT: Entity is reported for nudity or sexual harassment.
             -     HATE_SPEECH_OR_SYMBOLS: Entity is reported for hate speech.
             -     FALSE_INFORMATION: Entity is reported for false information.
             -     COMMUNITY_GUIDELINES_VIOLATION: Entity is reported for a community guideline violation.
             -     VIOLENCE: Entity is reported for violence.
             -     SUICIDE_OR_SELF_INJURY: Entity is reported for mentioning suicide.
             -     UNAUTHORIZED_SALES: Entity is reported for unuathorized sales.
             -     EATING_DISORDER: Entity is reported for mentioning an eating disorder.
             -     INVOLVES_A_CHILD: Entity is reported for involving a minor.
             -     TERRORISM: Entity is reported for mentioning terrorism.
             -     DRUGS: Entity is reported for mentioning drugs.
             -     UNLAWFUL: Entity is reported for unlawful actions.
             -     EXPOSING_IDENTIFYING_INFO: Entity is reported for exposing identifying details.
        - name: details | type: string | description: Why the entity is reported.  | validation: maxLength 3000
     - name: revision | type: string | description: 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.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time when the report created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time when the report updated.  | read-only: true | validation: format date-time
     - name: extendedFields | type: ExtendedFields | description: 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.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map


```

### Examples

### Get Report
```curl
curl -X GET \ https://www.wixapis.com/reports/v2/reports/dd7cfd02-1837-4fb8-bc6f-86316f0984a9 \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.reports.reports.getReport(reportId)
 Description: Retrieves a report.  Site members and visitors can only access their own reports.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  reportId
 Method parameters: 
   param name: reportId | type: string | description: GUID of the report to retrieve. | required: true | validation: format GUID
 Return type: PROMISE<Report>
  - name: _id | type: string | description: Report GUID.  | read-only: true | validation: format GUID
  - name: entityName | type: string | description: Reported entity name, such as `comment`.  | validation: minLength 1, maxLength 50, immutable
  - name: entityId | type: string | description: Reported entity GUID.  | validation: minLength 1, maxLength 50, immutable
  - name: identity | type: IdentificationData | description: Identity of who created a report.  | read-only: true 
     - ONE-OF: 
        - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.  | validation: format GUID
        - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.  | validation: format GUID
     - name: identityType | type: IdentityType | description: Identity type  | read-only: true 
         - enum:
         -     ANONYMOUS_VISITOR: A site visitor who has not logged in.
         -     MEMBER: A logged-in site member.
  - name: reason | type: Reason | description: Reason for the report.  
     - name: reasonType | type: Type | description: Report reason type.  
         - enum:
         -     UNKNOWN_TYPE: Unknown type. This value is not used.
         -     OTHER: Entity is reported for other reasons. Specify in `details`.
         -     SPAM: Entity is reported for spam.
         -     NUDITY_OR_SEXUAL_HARASSMENT: Entity is reported for nudity or sexual harassment.
         -     HATE_SPEECH_OR_SYMBOLS: Entity is reported for hate speech.
         -     FALSE_INFORMATION: Entity is reported for false information.
         -     COMMUNITY_GUIDELINES_VIOLATION: Entity is reported for a community guideline violation.
         -     VIOLENCE: Entity is reported for violence.
         -     SUICIDE_OR_SELF_INJURY: Entity is reported for mentioning suicide.
         -     UNAUTHORIZED_SALES: Entity is reported for unuathorized sales.
         -     EATING_DISORDER: Entity is reported for mentioning an eating disorder.
         -     INVOLVES_A_CHILD: Entity is reported for involving a minor.
         -     TERRORISM: Entity is reported for mentioning terrorism.
         -     DRUGS: Entity is reported for mentioning drugs.
         -     UNLAWFUL: Entity is reported for unlawful actions.
         -     EXPOSING_IDENTIFYING_INFO: Entity is reported for exposing identifying details.
     - name: details | type: string | description: Why the entity is reported.  | validation: maxLength 3000
  - name: revision | type: string | description: 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.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time when the report created.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time when the report updated.  | read-only: true 
  - name: extendedFields | type: ExtendedFields | description: 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.  
     - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map


```

### Examples

### getReport
```javascript
import { reports } from '@wix/reports';

async function getReport(reportId) {
  const response = await reports.getReport(reportId);
};
```

### getReport (with elevated permissions)
```javascript
import { reports } from '@wix/reports';
import { auth } from '@wix/essentials';

async function myGetReportMethod(reportId) {
  const elevatedGetReport = auth.elevate(reports.getReport);
  const response = await elevatedGetReport(reportId);
}
```

### getReport (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { reports } from '@wix/reports';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { reports },
  // Include the auth strategy and host as relevant
});


async function getReport(reportId) {
  const response = await myWixClient.reports.getReport(reportId);
};
```

---