HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

isBlacklisted

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., "*@example.com"). See also areBlacklisted.

Type: boolean

Parameters

NameTypeValue
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
Did this page help you?