Skip to main content

BLACKLIST API Reference

Module Information​

Service Files:

  • Private: service/private/blacklist.js

Available Services: 3 Documented Services: 3


blacklist.add​

Add one or more email addresses to the hub blacklist. A single email string is automatically normalized to an array before being JSON-serialized and passed to the blacklist_add stored procedure.

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/blacklist.add

Parameters​

ParameterTypeRequiredDefaultDescription
email`stringarray`Yes-

Returns​

FieldTypeDescription
dataobjectResult returned by the blacklist_add stored procedure

Possible Errors​

Error CodeHTTP StatusDescription
MISSING_PARAM400email is required
PERMISSION_DENIED403Caller does not have owner permission on this hub

blacklist.delete​

Remove one or more email addresses from the hub blacklist. A single email string is automatically normalized to an array before being passed to the blacklist_delete stored procedure.

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/blacklist.delete

Parameters​

ParameterTypeRequiredDefaultDescription
email`stringarray`Yes-

Returns​

FieldTypeDescription
dataobjectResult returned by the blacklist_delete stored procedure

Possible Errors​

Error CodeHTTP StatusDescription
MISSING_PARAM400email is required
PERMISSION_DENIED403Caller does not have owner permission on this hub

blacklist.show​

List all blacklisted email addresses for the current hub, paginated via the blacklist_show stored procedure.

PropertyValue
ScopeHub (requires hub context)
PermissionOwner (32)

Endpoint:

https://hostname/-/svc/blacklist.show

Parameters​

ParameterTypeRequiredDefaultDescription
pagenumber (min: 1)No1Page number for pagination. Defaults to 1 when not provided.

Returns​

FieldTypeDescription
dataarray<object>Paginated list of blacklisted email records returned by the blacklist_show stored procedure

Possible Errors​

Error CodeHTTP StatusDescription
PERMISSION_DENIED403Caller does not have owner permission on this hub