Contacts
List or search contacts
Requires contacts:read. Every result is restricted to the API key’s account. The optional q value searches name, email, phone, identifier, company, website and domain. sort applies only when q is absent.
GET
/
api
/
v2
/
accounts
/
{accountId}
/
contacts
List or search contacts
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/contactsimport requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"count": 125,
"current_page": 1,
"per_page": 30,
"total_pages": 5
},
"payload": [
{
"additional_attributes": {},
"blocked": true,
"contact_inboxes": [
"<unknown>"
],
"created_at": 1789200000,
"custom_attributes": {},
"email": "sara@example.com",
"id": 1042,
"identifier": "erp-customer-8842",
"last_activity_at": 123,
"merged_from_contact_id": 123,
"name": "Sara Alotaibi",
"phone_number": "+966501234567",
"thumbnail": "<string>",
"updated_at": "2026-09-12T12:00:00Z"
}
]
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}Path Parameters
HueChat account ID
Query Parameters
Full-text customer search
Page number
Results per page (1-100)
Sort field: created_at, name, email, phone_number, last_activity_at, company, city or country
⌘I
List or search contacts
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/contactsimport requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"count": 125,
"current_page": 1,
"per_page": 30,
"total_pages": 5
},
"payload": [
{
"additional_attributes": {},
"blocked": true,
"contact_inboxes": [
"<unknown>"
],
"created_at": 1789200000,
"custom_attributes": {},
"email": "sara@example.com",
"id": 1042,
"identifier": "erp-customer-8842",
"last_activity_at": 123,
"merged_from_contact_id": 123,
"name": "Sara Alotaibi",
"phone_number": "+966501234567",
"thumbnail": "<string>",
"updated_at": "2026-09-12T12:00:00Z"
}
]
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}{
"error": "Contact not found"
}
