Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In


Queries whether an email address is blocked in Optimizely Campaign.

This method considers both exact matches (e.g., "[email protected]") as well as wildcards (e.g., "*"). See also areBlacklisted.

Type: boolean


sessionIdStringID of the session
emailAddressStringEmail address to be queried

Return values

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

Code structure

boolean isBlacklisted(String sessionId, String emailAddress)

What’s Next