Get contacts by days
Retrieve contacts that had their last message within the specified number of days. Works across all channels (WhatsApp, Instagram, etc.). Optionally filter by custom field values.
Documentation Index
Fetch the complete documentation index at: https://docs.vambe.me/llms.txt
Use this file to discover all available pages before exploring further.
Headers
API key needed to authorize the request
Query Parameters
Number of days to filter contacts (1-365)
1 <= x <= 36530
Stage ID to filter contacts
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"123e4567-e89b-12d3-a456-426614174000"
Pipeline ID to filter contacts by their active ticket stage
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"123e4567-e89b-12d3-a456-426614174000"
The key of the custom field to filter by. Must be provided together with custom_field_value.
1"status"
The value to match for the custom field. Must be provided together with custom_field_key.
1"Active"
Specify "ticket" or "customer" to filter only by custom fields of that entity type. Only applies when custom_field_key and custom_field_value are provided.
ticket, customer Response
Contacts retrieved successfully.
"df980fc8-b6db-4820-bf22-2969482d106d"
"John Doe"
"+56912345678"
"john@example.com"
"whatsapp"
"2024-09-30T10:00:00.000Z"
"ATTENDED"
"2024-01-15T10:00:00.000Z"
"123e4567-e89b-12d3-a456-426614174000"
"123e4567-e89b-12d3-a456-426614174000"
"123e4567-e89b-12d3-a456-426614174000"
false
true
