Item | Property or Constraint | Notes |
---|
Number of entities required in each request | 50 | Our API boosts the efficiency of processing requests by enabling users to transmit up to 50 entities within a single request. |
Number of requests allowed in a minute | 60 | To ensure equitable usage and uphold service quality standards, CometChat enforces rate limits on each API endpoint. Specifically, a maximum of 60 requests per minute is permitted for these data import endpoints. Upon exceeding this limit, the API will respond with a rate limit error. |
Error | Description |
---|
ERR_IMPORT_MUID_ALREADY_EXISTS | The message muid is expected to be unique. The muid will be a unique Identifier of the message. |
ERR_IMPORT_INVALID_MESSAGE_FORMAT | The value for messages property should be an array of message objects |
ERR_IMPORT_INVALID_USER_FORMAT | The value for users property should be an array of user objects. |
ERR_IMPORT_INVALID_MEMBER_FORMAT | The value for members property should be an array of member objects. |
ERR_IMPORT_INVALID_JOINEDAT | The value for joinedAt should be greater than createdAt and less than the current timestamp. |
ERR_IMPORT_INVALID_GROUP_FORMAT | The value for groups property should be an array of group objects. |
ERR_TOO_MANY_REQUESTS | Too many requests for data import API. 60 per minute is the maximum request allowed. Please retry for seconds after 58. |