v1
latestOpenAPI 3.0.02026-07-2612645160.3 KBAnalytics
Get contacts by status
Returns contacts filtered by status and calculates how long they have been waiting (from last_inbound_message.created_at until now). Adds a "waiting_time" field that represents (in seconds) how long that contact has been waiting. Sorted by waiting_time descending (longest wait first).
get/api/public/analytics/contacts/by-status
Query parameters
pagestring required
Example:1
Page number
orderBy'contact_created_at' | 'ticket_created_at' | 'last_inbound_message' | 'last_outbound_message' | 'id'
channel'whatsapp' | 'playground' | 'instagram' | 'webchat' | 'web-whatsapp' | 'messenger' | 'sms' required
pipelineIdstring required
Example:1234567890
Pipeline ID
status'unattended' | 'attended' | 'ai-attended' | 'ai-away' required
Status
Headers
x-api-keystring required
API key
Response
Returns contacts with pending responses