Skip to main content
GET
Get contacts
🚨 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. Get contacts from all channels (WhatsApp, Instagram, Web Chat, SMS, etc.) with better structure:
View Documentation Why migrate:
  • 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):
New (Recommended):

Comparison

Migration Timeline

  • Now: Endpoint marked as deprecated
  • 6 months: Warning messages added to API responses
  • 12 months: Endpoint will be removed
Please migrate to the new endpoint to avoid service disruption.
⚠️ ACTION REQUIREDUpdate your integrations to use the new /api/public/contacts endpoint before this endpoint is removed in 12 months.

Headers

x-api-key
string
required

API key needed to authorize the request

Query Parameters

days
number
default:1
required

Number of days to get the contacts (1-365)

Required range: 1 < x < 365

Response

Contacts retrieved successfully.