What Can Be Migrated?
CometChat’s migration capabilities cover:- Users: User profiles, metadata, and account information
- Messages: Complete message history including text, media, and metadata
- Groups: Group configurations and membership information
- Conversations: Conversation threads and their associated data
Migration Approaches
CometChat offers two approaches to data migration, depending on your needs:Historical Data Import
Import all your existing data at rest—stored messages, users, and groups—into CometChat before going live. This approach is ideal when:- You’re doing a complete platform switch
- You want all historical data available from day one
- Your migration can happen during a maintenance window
ERR_TOO_MANY_REQUESTS response tells you to retry after the indicated time.
Timestamps are preserved. Each imported message carries a required sentAt field (a 10-digit UNIX timestamp), so conversation ordering and history reflect the original send times rather than the ingestion time.
Media. Message media and attachments are supplied in the message’s data.attachments object. For the full per-entity schema and field limits, see the Import Messages reference and Properties and Constraints.
Live Data Migration
Maintain communication between users on your old system and users who have already migrated to CometChat. This approach is ideal when:- You need zero downtime during migration
- Users will upgrade to the new app version gradually
- Seamless communication must continue throughout the transition period
Getting Started
Historical Data Import
All Data Import REST API requests go to your app’s region-specific base URL and authenticate with theapikey header:
muid. The minimum required fields per message are muid, sender, receiverType, receiver, and sentAt:
Live Data Migration
Contact our Sales team to scope your migration and set up the bridge that keeps your old system and CometChat in sync during a gradual rollout.Looking to upgrade an existing CometChat app from v2 to v3 (rather than import from another provider)? See the Migration Guide.