Contacts
Get contact
Requires contacts:read. The contact ID and any merge alias are resolved only inside the API key’s account. Inbox associations are intentionally omitted from this contact-only surface.
GET
/
api
/
v2
/
accounts
/
{accountId}
/
contacts
/
{contactId}
Get contact
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}', 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/{contactId}",
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/{contactId}"
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/{contactId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}")
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{
"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"
}{
"error": "Contact not found"
}Response
OK
Example:
1789200000
Example:
"sara@example.com"
Example:
1042
Example:
"erp-customer-8842"
Example:
"Sara Alotaibi"
Example:
"+966501234567"
Example:
"2026-09-12T12:00:00Z"
⌘I
Get contact
curl --request GET \
--url https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}import requests
url = "https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}', 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/{contactId}",
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/{contactId}"
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/{contactId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.huechat.ai/api/v2/accounts/{accountId}/contacts/{contactId}")
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{
"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"
}{
"error": "Contact not found"
}
