Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

A user can block another user if the user doesn’t wish to receive any messages or notifications from the blocked user.
Once any user is blocked, all the communication to and from the respective user will be completely blocked.
Once the user is unblocked, the newly sent messages will start to receive. However the messages that was sent during the blocked period won’t be visible.

Available operations

MethodEndpointDescription
POST/users/{uid}/blockedusersBlock one or more users
GET/users/{uid}/blockedusersList all blocked users
DELETE/users/{uid}/blockedusersUnblock one or more users

Blocked user properties

The following table lists the properties that the Blocked User API supports.
ParametersTypeDescription
blockedUidsarray of strings(optional) Indicates the list of uids that needs to be blocked.

Error handling

Error CodeDescription
AUTH_ERR_EMPTY_APIKEYAPI key is missing from the request headers
AUTH_ERR_APIKEY_NOT_FOUNDThe provided API key is invalid
ERR_UID_NOT_FOUNDThe specified user UID does not exist
For the complete list of error codes, see Error Guide.