Key Features
- Import Users: Create multiple users at once in your CometChat app by importing them from an existing data source.
- Import Groups: Easily migrate all your existing groups into your CometChat app.
- Import Members: Import members to join specific groups in your CometChat app.
- Import Messages: Migrate your existing chat history, including one-on-one messages and group messages into your CometChat app.
Getting Started
To start using the CometChat Import REST API, you’ll need your AppID, API Key and region, which can be obtained from your CometChat Dashboard. All API requests must be made over HTTPS. The base URL for all CometChat Pro REST API requests ishttps://<appId>.api-<region>.cometchat.com/v3.0/data_import
.
Be sure to replace 'appId'
and 'region'
with your actual App ID and region respectively in the API endpoint.

Authentication
Authentication is a crucial aspect of utilizing CometChat’s REST API securely. All API requests must be accompanied by an API key to authenticate the incoming requests. CometChat employs industry-standard authentication mechanisms to ensure the security and integrity of your data.Endpoints
CometChat’s Data Import APIs are designed to be intuitive and easy to integrate into your application’s backend infrastructure.Example of a Import Users API request in curl command syntax:
Sample Code
To further assist you in integrating CometChat’s Data Import API into your application, we provide sample code snippets in popular programming languages such as JavaScript, Python, NodeJS, and PHP. These snippets demonstrate how to make API requests and handle responses, helping you kickstart your development process.`