List Disallowed Contacts
#
Method#
/privacy/disallowed-contacts#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThrough this method, it is possible to list the contacts that are on the disallowed list (blacklist) for certain interactions with your account.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
type | string | Block scope (lastSeen, photo, description, groupAdd) |
String (type)
Block scope. Accepted values:
- lastSeen (Last Seen)
- photo (View profile photo)
- description (View status message)
- groupAdd (Group join permission)
#
Request Params#
URL exampleMethod
#
Response#
200Attributes | Type | Description |
---|---|---|
disallowedContacts | array string | Phone number of each contact in the blacklist |
Example
#
405In this case, ensure that you are sending the method specification correctly, i.e., check if you sent the POST or PUT as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers, in most cases, it should be "application/json".