/contact/query
GET
API KEY
)Header | Value | Description |
---|---|---|
Authorization | Bearer <api_key> | Your API KEY |
Field | Type | Description | Example |
---|---|---|---|
tags | Array of strings (optional) | Filter contacts by their associated tags. When not provided, contacts with any tags will be included in the results. | ["important", "follow-up"] |
categories | Array of strings (optional) | Filter contacts by their assigned categories. If omitted, contacts from all categories will be included. | ["lead", "customer"] |
source_names | Array of strings (optional) | Filter contacts by their acquisition source. When not specified, contacts from all sources will be returned. | ["website", "referral"] |
last_call_statuses | Array of strings (optional) | Filter contacts by the status of their most recent call. If not provided, contacts with any call status will be included. | ["completed", "no-answer"] |
200 OK
200 OK
(with error message)data
object represents a contact and has the following structure:
Field | Type | Description |
---|---|---|
id | string | The unique identifier for the contact (UUID). |
company_id | string | The unique identifier for the company associated with the contact(UUID). |
firstname | string | The first name of the contact. |
lastname | string | The last name of the contact. |
phone_number | string | The phone number of the contact. |
metadata | object | Additional metadata associated with the contact. |
number_country_code | string | The country code for the phone number. |
last_call_status | string | The status of the last call made to the contact (e.g., busy, unreachable, in-progress, picked-up, no-answer). |
last_call_at | string | The timestamp of the last call made to the contact. |
last_call_duration | integer | The duration of the last call in seconds. |
last_call_feedback | string | Feedback from the last call. |
tag_name | string | The tag associated with the contact. |
category_name | string | The category associated with the contact. |
notes | string | Additional notes or description for the contact. |
created_at | string | Timestamp when the campaign was created. |
updated_at | string | Timestamp when the campaign was last updated. |
campaign_id | string | The unique identifier for the campaign associated with the contact. |
status | string | The current status of the contact (e.g., active, inactive). |