🚨 DEPRECATED ENDPOINT - DO NOT USE FOR NEW INTEGRATIONSThis WhatsApp-specific endpoint is deprecated. Use the new universal contacts endpoint instead which supports ALL channels (WhatsApp, Instagram, SMS, etc.).
Deprecation Notice
This endpoint only returns WhatsApp contacts and is being phased out in favor of a more powerful, channel-agnostic endpoint.Recommended Alternative
✨ Use the Universal Contacts Endpoint (Recommended)
Get contacts from all channels (WhatsApp, Instagram, Web Chat, SMS, etc.) with better structure:- ✅ All Channels: WhatsApp, Instagram, SMS, Web Chat, and more
- ✅ Better Performance: Optimized queries and indexing
- ✅ Consistent Response: Standard AI Contact objects
- ✅ Future-Proof: Active development and support
- ✅ Ordered Results: Sorted by last_message_at descending
Migration Example
Old (Deprecated):Comparison
Feature | Old Endpoint (Deprecated) | New Endpoint |
---|---|---|
Channels | WhatsApp only | All channels |
Response Type | WhatsApp Contact objects | AI Contact objects |
Ordering | Not specified | By last_message_at DESC |
Path | /api/public/whatsapp/contact/contacts | /api/public/contacts |
Support | ❌ Deprecated | ✅ Active |
Migration Timeline
- Now: Endpoint marked as deprecated
- 6 months: Warning messages added to API responses
- 12 months: Endpoint will be removed
⚠️ ACTION REQUIREDUpdate your integrations to use the new
/api/public/contacts
endpoint before this endpoint is removed in 12 months.Headers
API key needed to authorize the request
Query Parameters
Number of days to get the contacts (1-365)
Required range:
1 < x < 365
Response
Contacts retrieved successfully.