> 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`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# QueryFormSpamSubmissionReportsByNamespace

# Package: forms

# Namespace: FormSpamSubmissionReportService

# Method link: https://dev.wix.com/docs/api-reference/crm/forms/form-spam-submission-report-v4/query-form-spam-submission-reports-by-namespace.md

## Permission Scopes:
Manage form submissions.: SCOPE.FORMS.MANAGE-SUBMISSIONS

## Introduction

Retrieves a list of up to 100 form spam submission reports, given the provided paging, filtering, and sorting.

Query Form Spam Submission Reports By Namespace runs with these defaults, which you can override:

- `createdDate` is sorted in `DESC` order
- `cursorPaging.limit` is `50`

The filter must include `namespace`. To filter or sort by `createdDate`, `reportedDate`, or `reportReason`, also filter by `formId`.

To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).

---

## REST API

### Schema

```
 Method: queryFormSpamSubmissionReportsByNamespace
 Description: Retrieves a list of up to 100 form spam submission reports, given the provided paging, filtering, and sorting.  Query Form Spam Submission Reports By Namespace runs with these defaults, which you can override:  - `createdDate` is sorted in `DESC` order - `cursorPaging.limit` is `50`  The filter must include `namespace`. To filter or sort by `createdDate`, `reportedDate`, or `reportReason`, also filter by `formId`.  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 URL: https://www.wixapis.com/form-spam-submission-report-service/v4/form-spam-submission-reports/namespace/query
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: CursorQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  
        - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  
        - name: sort | type: array<Sorting> | description: Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`  | validation: maxItems 3
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: id | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: namespace | operators: $eq | sort: none | aggregatable: undefined | searchable: undefined
   - field: formId | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: createdDate | operators: $eq, $gt, $gte, $in, $lt, $lte, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: reportedDate | operators: $eq, $gt, $gte, $in, $lt, $lte, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: reportReason | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: childMetaSiteId | operators: $eq, $in, $ne, $nin | sort: none | aggregatable: undefined | searchable: undefined
 Return type: QueryFormSpamSubmissionReportsByNamespaceResponse
  - name: formSpamSubmissionReports | type: array<FormSpamSubmissionReport> | description: Retrieved form spam submission reports.  
     - name: id | type: string | description: Form spam submission report GUID.  | read-only: true | validation: format GUID
     - name: formId | type: string | description: GUID of the form the submission was made on.  | validation: format GUID, immutable
     - name: namespace | type: string | description: Namespace of the app that the form belongs to. Copied from the form.  Currently supports `wix.form_app.form`, the namespace of the Wix Forms app.  | read-only: true | validation: minLength 10, maxLength 50
     - name: submitter | type: Submitter | description: Identity of the submitter: a member, visitor, app, or user.  | validation: immutable
        - ONE-OF: 
           - name: memberId | type: string | description: Member GUID.  | validation: format GUID
           - name: visitorId | type: string | description: Visitor GUID.  | validation: format GUID
           - name: applicationId | type: string | description: Application GUID.  | validation: maxLength 36
           - name: userId | type: string | description: User GUID.  | validation: format GUID
     - name: submissions | type: Map<string,Value> | description: Submitted values. Each key is the `target` of a form field, and each value is what the submitter entered in that field.  Validated against the form's fields when the report is created.  | validation: format map, immutable
        - ONE-OF: 
           - name: nullValue | type:  | description:   
           - name: numberValue | type: number | description:   
           - name: stringValue | type: string | description:   
           - name: boolValue | type: boolean | description:   
           - name: structValue | type: object | description:   
           - name: listValue | type: ListValue | description:   
              - name: values | type: array<Value> | description:   
     - name: reportReason | type: ReportReason | description: Reason the submission was flagged as spam.  | validation: immutable
         - enum:
         -     EMAIL_QUOTA_REACHED: Too many submissions with the same email address in a short time.
         -     IP_BLOCKLISTED: The submitter's IP address is blocklisted.
         -     EMAIL_BLOCKLISTED: An email address in the submission is blocklisted.
         -     AI_REPORTED: Flagged by an AI model that analyzes the submission text. Runs on forms with the `ADVANCED` spam protection level.
         -     MANUALLY_REPORTED: Reported as spam by a person, such as the site owner or a collaborator.
         -     MODERATION_SPI: Flagged by a spam moderation service plugin installed on the site.
         -     AI_REPORTED_LLM: Flagged by a large language model (LLM) that analyzes the submission text. Runs on forms with the `ADVANCED` spam protection level, after all other checks found no spam.
     - name: createdDate | type: string | description: Date and time the original submission was created.  When you create a report for an existing submission, specify the submission's creation date to keep it. Can't be in the future.  Default: Date and time the report is created  | validation: format date-time, immutable
     - name: reportedDate | type: string | description: Date and time the submission was reported as spam.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the form spam submission report was last updated.  | read-only: true | validation: format date-time
     - name: revision | type: string | description: Revision number, which increments by 1 each time the form spam submission report is updated.  Ignored when creating a form spam submission report.  | read-only: true | validation: format int64
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the form spam submission report object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed 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
     - name: submissionStatusAtReport | type: SubmissionStatus | description: Status of the submission when it was reported as spam.  When the submission is restored as not spam, a `PENDING` status becomes `CONFIRMED`. Any other status is kept.  Returned as `PENDING` when the status wasn't recorded.  
         - enum:
         -     PENDING: A submission is created, but has not yet been recorded in the Wix Forms collection.
         -     CONFIRMED: A submission is recorded in the Wix Forms collection.
         -     PAYMENT_WAITING: A form submission requiring payment is created.
         -     PAYMENT_CANCELED: An order of a form submission is canceled.
     - name: orderDetails | type: OrderDetails | description: Payment details of the submission.  Available only for forms with payments.  
        - name: checkoutId | type: string | description: GUID of the checkout created for the submission.  | read-only: true | validation: format GUID
     - name: contactId | type: string | description: GUID of the contact who submitted the form: the site member who submitted it, or the contact matched to the submitter.  | read-only: true | validation: format GUID
     - name: accessRestriction | type: string | description: GUID of the user who is authorized to view the original submission. Copied from the submission's `accessRestriction`.  When set, reading the report requires the same additional access check as reading the submission.  | validation: format GUID, immutable
     - name: reportReasonDescription | type: string | description: Additional details about why the submission was flagged as spam. For example, the explanation returned by a spam moderation service plugin, or a note from the person who reported it.  | validation: minLength 1, maxLength 255
     - name: childMetaSiteId | type: string | description: GUID of the site the submission was made on.  Returned only when the site shares its data with a parent site. In that case, spam submission reports from all child sites are stored on the parent site, and this field identifies which site the report came from.  | read-only: true | validation: format GUID
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: cursors | type: Cursors | description: Offset that was requested.  
        - name: next | type: string | description: Cursor pointing to next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Indicates if there are more results after the current page. If `true`, another page of results can be retrieved. If `false`, this is the last page.  


```

### Examples

### Query a form's spam submission reports
Returns the newest reports of a form first.

```curl
curl -X POST \
'https://www.wixapis.com/form-spam-submission-report-service/v4/form-spam-submission-reports/namespace/query' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "query": {
    "filter": {
      "namespace": {
        "$eq": "wix.form_app.form"
      },
      "formId": {
        "$eq": "21bcb6c7-02b3-4ed1-b6db-7856094fac03"
      }
    },
    "sort": [
      {
        "fieldName": "reportedDate",
        "order": "DESC"
      }
    ],
    "cursorPaging": {
      "limit": 2
    }
  }
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.forms.formSpamSubmissionReports.queryFormSpamSubmissionReportsByNamespace(query)
 Description: Retrieves a list of up to 100 form spam submission reports, given the provided paging, filtering, and sorting.  Query Form Spam Submission Reports By Namespace runs with these defaults, which you can override:  - `createdDate` is sorted in `DESC` order - `cursorPaging.limit` is `50`  The filter must include `namespace`. To filter or sort by `createdDate`, `reportedDate`, or `reportReason`, also filter by `formId`.  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: FormSpamSubmissionReportQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  
        - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  You can get the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  
        - name: sort | type: array<Sorting> | description: Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`  | validation: maxItems 3
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: _id | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: namespace | operators: $eq | sort: none | aggregatable: undefined | searchable: undefined
   - field: formId | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: _createdDate | operators: $eq, $gt, $gte, $in, $lt, $lte, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: reportedDate | operators: $eq, $gt, $gte, $in, $lt, $lte, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: reportReason | operators: $eq, $in, $ne, $nin | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: childMetaSiteId | operators: $eq, $in, $ne, $nin | sort: none | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryFormSpamSubmissionReportsByNamespaceResponse>
  - name: formSpamSubmissionReports | type: array<FormSpamSubmissionReport> | description: Retrieved form spam submission reports.  
     - name: _id | type: string | description: Form spam submission report GUID.  | read-only: true | validation: format GUID
     - name: formId | type: string | description: GUID of the form the submission was made on.  | validation: format GUID, immutable
     - name: namespace | type: string | description: Namespace of the app that the form belongs to. Copied from the form.  Currently supports `wix.form_app.form`, the namespace of the Wix Forms app.  | read-only: true | validation: minLength 10, maxLength 50
     - name: submitter | type: Submitter | description: Identity of the submitter: a member, visitor, app, or user.  | validation: immutable
        - ONE-OF: 
           - name: memberId | type: string | description: Member GUID.  | validation: format GUID
           - name: visitorId | type: string | description: Visitor GUID.  | validation: format GUID
           - name: applicationId | type: string | description: Application GUID.  | validation: maxLength 36
           - name: userId | type: string | description: User GUID.  | validation: format GUID
     - name: submissions | type: Map<string,Value> | description: Submitted values. Each key is the `target` of a form field, and each value is what the submitter entered in that field.  Validated against the form's fields when the report is created.  | validation: format map, immutable
        - ONE-OF: 
           - name: nullValue | type:  | description:   
           - name: numberValue | type: number | description:   
           - name: stringValue | type: string | description:   
           - name: boolValue | type: boolean | description:   
           - name: structValue | type: object | description:   
           - name: listValue | type: ListValue | description:   
              - name: values | type: array<Value> | description:   
     - name: reportReason | type: ReportReason | description: Reason the submission was flagged as spam.  | validation: immutable
         - enum:
         -     EMAIL_QUOTA_REACHED: Too many submissions with the same email address in a short time.
         -     IP_BLOCKLISTED: The submitter's IP address is blocklisted.
         -     EMAIL_BLOCKLISTED: An email address in the submission is blocklisted.
         -     AI_REPORTED: Flagged by an AI model that analyzes the submission text. Runs on forms with the `ADVANCED` spam protection level.
         -     MANUALLY_REPORTED: Reported as spam by a person, such as the site owner or a collaborator.
         -     MODERATION_SPI: Flagged by a spam moderation service plugin installed on the site.
         -     AI_REPORTED_LLM: Flagged by a large language model (LLM) that analyzes the submission text. Runs on forms with the `ADVANCED` spam protection level, after all other checks found no spam.
     - name: _createdDate | type: Date | description: Date and time the original submission was created.  When you create a report for an existing submission, specify the submission's creation date to keep it. Can't be in the future.  Default: Date and time the report is created  | validation: immutable
     - name: reportedDate | type: Date | description: Date and time the submission was reported as spam.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the form spam submission report was last updated.  | read-only: true 
     - name: revision | type: string | description: Revision number, which increments by 1 each time the form spam submission report is updated.  Ignored when creating a form spam submission report.  | read-only: true | validation: format int64
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the form spam submission report object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed 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
     - name: submissionStatusAtReport | type: SubmissionStatus | description: Status of the submission when it was reported as spam.  When the submission is restored as not spam, a `PENDING` status becomes `CONFIRMED`. Any other status is kept.  Returned as `PENDING` when the status wasn't recorded.  
         - enum:
         -     PENDING: A submission is created, but has not yet been recorded in the Wix Forms collection.
         -     CONFIRMED: A submission is recorded in the Wix Forms collection.
         -     PAYMENT_WAITING: A form submission requiring payment is created.
         -     PAYMENT_CANCELED: An order of a form submission is canceled.
     - name: orderDetails | type: OrderDetails | description: Payment details of the submission.  Available only for forms with payments.  
        - name: checkoutId | type: string | description: GUID of the checkout created for the submission.  | read-only: true | validation: format GUID
     - name: contactId | type: string | description: GUID of the contact who submitted the form: the site member who submitted it, or the contact matched to the submitter.  | read-only: true | validation: format GUID
     - name: accessRestriction | type: string | description: GUID of the user who is authorized to view the original submission. Copied from the submission's `accessRestriction`.  When set, reading the report requires the same additional access check as reading the submission.  | validation: format GUID, immutable
     - name: reportReasonDescription | type: string | description: Additional details about why the submission was flagged as spam. For example, the explanation returned by a spam moderation service plugin, or a note from the person who reported it.  | validation: minLength 1, maxLength 255
     - name: childMetaSiteId | type: string | description: GUID of the site the submission was made on.  Returned only when the site shares its data with a parent site. In that case, spam submission reports from all child sites are stored on the parent site, and this field identifies which site the report came from.  | read-only: true | validation: format GUID
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: cursors | type: Cursors | description: Offset that was requested.  
        - name: next | type: string | description: Cursor pointing to next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Indicates if there are more results after the current page. If `true`, another page of results can be retrieved. If `false`, this is the last page.  


```

### Examples

### Query a form's spam submission reports
Returns the newest reports of a form first.

```javascript
import { formSpamSubmissionReports } from "@wix/forms";

async function queryFormSpamSubmissionReportsByNamespace() {
  const response = await formSpamSubmissionReports.queryFormSpamSubmissionReportsByNamespace(
    {
      filter: {
        namespace: {
          $eq: "wix.form_app.form"
        },
        formId: {
          $eq: "21bcb6c7-02b3-4ed1-b6db-7856094fac03"
        }
      },
      sort: [
        {
          fieldName: "reportedDate",
          order: "DESC"
        }
      ],
      cursorPaging: {
        limit: 2
      }
    },
  );
}

/* Promise resolves to:
 * {
 *   "formSpamSubmissionReports": [
 *     {
 *       "_id": "c4d9f6b2-7a1e-4c3b-8f5d-2e9a7b1c6d42",
 *       "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03",
 *       "namespace": "wix.form_app.form",
 *       "submitter": {
 *         "visitorId": "9a3f5c7e-2d4b-4e6a-8c1f-5b7d9e2a4c68"
 *       },
 *       "submissions": {
 *         "first_name_e7a1": "Jordan",
 *         "email_3c9f": "jordan.lee@example.com",
 *         "long_answer_b42d": "Hi, I would like a quote for a kitchen renovation."
 *       },
 *       "reportReason": "AI_REPORTED",
 *       "_createdDate": "2026-10-13T15:20:11.004Z",
 *       "reportedDate": "2026-10-13T15:20:11.871Z",
 *       "_updatedDate": "2026-10-13T15:20:11.871Z",
 *       "revision": "1",
 *       "submissionStatusAtReport": "CONFIRMED",
 *       "contactId": "3b5d7f9a-1c2e-4b4d-9f6a-8c1e3a5b7d02"
 *     },
 *     {
 *       "_id": "a7c3e2f1-5b8d-4e9a-9c1f-3d2e4b6a8f10",
 *       "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03",
 *       "namespace": "wix.form_app.form",
 *       "submitter": {
 *         "visitorId": "9a3f5c7e-2d4b-4e6a-8c1f-5b7d9e2a4c68"
 *       },
 *       "submissions": {
 *         "first_name_e7a1": "Alex",
 *         "email_3c9f": "alex.morgan@example.com",
 *         "long_answer_b42d": "Buy cheap followers now at bit.ly/xyz"
 *       },
 *       "reportReason": "IP_BLOCKLISTED",
 *       "_createdDate": "2026-10-12T09:14:31.512Z",
 *       "reportedDate": "2026-10-12T09:14:32.104Z",
 *       "_updatedDate": "2026-10-12T09:14:32.104Z",
 *       "revision": "1",
 *       "submissionStatusAtReport": "CONFIRMED",
 *       "contactId": "3b5d7f9a-1c2e-4b4d-9f6a-8c1e3a5b7d02"
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "cursors": {
 *       "next": "eyJmaWx0ZXIiOnsibmFtZXNwYWNlIjp7IiRlcSI6IndpeC5mb3JtX2FwcC5mb3JtIn19fQ"
 *     },
 *     "hasNext": true
 *   }
 * }
 */

```

### queryFormSpamSubmissionReportsByNamespace (self-hosted)
Self-hosted 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 { formSpamSubmissionReports } from '@wix/forms';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function queryFormSpamSubmissionReportsByNamespace(query) {
  const response = await myWixClient.formSpamSubmissionReports.queryFormSpamSubmissionReportsByNamespace(query);
};
```

---