> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Spam Filters

> Automatically block spam NFTs from your wallets

<Warning>
  Spam filters require an enterprise subscription. [Contact us](https://www.crossmint.com/contact/sales) to learn
  more.
</Warning>

Blocking spam NFTs from wallets is critical to delivering a good user experience and keeping your users safe, specially in low cost chains where spam is widespread.

Once spam filters are enabled for your project, the API to [get NFTs](/api-reference/wallets/get-nfts-from-wallet) from a wallet will flag spam NFTs, which you can use to hide potentially malicious assets.

You can access this information in two ways:

### Mode 1: Boolean

The API returns an `isSpam` attribute with values `true` or `false` based on Crossmint's default rules.

<Accordion title="See sample response">
  ```
  {
      "chain":"polygon",
      "contractAddress":"0xC5F45D4B5Be198A430b39D194cbB32132BE2cfec",
      "tokenId":"1",
      "metadata":{
      ...
      },
      "locator":"poly:0xC5F45D4B5Be198A430b39D194cbB32132BE2cfec:1",
      "tokenStandard":"erc-721",
      "isSpam":true
  }
  ```
</Accordion>

### Mode 2: Spam Score

The API returns a `spamScore` between 0-100 (100 = most likely to be spam), so you can adjust your tolerance threshold.

<Accordion title="See sample response">
  ```
  {
      "chain":"polygon",
      "contractAddress":"0xC5F45D4B5Be198A430b39D194cbB32132BE2cfec",
      "tokenId":"1",
      "metadata":{
      ...
      },
      "locator":"poly:0xC5F45D4B5Be198A430b39D194cbB32132BE2cfec:1",
      "tokenStandard":"erc-721",
      "spamScore":50 //This is a range of 0-100 
  }
  ```
</Accordion>
