---
title: areBlacklisted
slug: campaign/docs/areblacklisted
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

This method considers both exact matches (e.g., "[john@example.com](mailto\:john@example.com)"), as well as wildcards (e.g., "\*@example.com"). See also [isBlacklisted](docId\:XT88UKRVUj58aiG0XezHl).

**Type**: boolean\[ ]

**Parameters**

| Name           | Type       | Value                         |
| -------------- | ---------- | ----------------------------- |
| sessionId      | String     | ID of the session             |
| emailAddresses | String\[ ] | Email addresses to be queried |

**Return values**

For each entry:

- true: Email address is contained in the blocklist
- false: Email address is not contained in the blocklist

**Code structure**

```javascript
boolean[] areBlacklisted(String sessionId, String[] emailAddresses)
```
