Get Contact
curl --request GET \
--url https://api.automatechats.com/api/contacts/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.automatechats.com/api/contacts/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.automatechats.com/api/contacts/{id}', 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://api.automatechats.com/api/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.automatechats.com/api/contacts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.automatechats.com/api/contacts/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.automatechats.com/api/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Contact fetched successfully",
"data": {
"contact": {
"id": "65e0bc51c12e4d70834b070e",
"firstName": "John",
"lastName": "Doe",
"chatName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "9876543210",
"countryCode": "+91",
"source": "manual",
"subscribed": true,
"tagsId": [
"65e0bc51c12e4d70834b070e"
],
"tags": [
{
"tagId": "65e0bc51c12e4d70834b070e",
"name": "VIP",
"text_color": "#ffffff",
"background_color": "#ef4444"
}
],
"customFields": [
{
"id": "65f12ab3c9e4f1a2b3c4d5e6",
"label": "Company Name",
"value": "Google Deepmind"
}
],
"dob": "1990-01-15",
"anniversary": "2020-06-20",
"workspaceId": 246,
"createdBy": "6996aeeedf12574080a99d81",
"createdAt": "2026-05-18T15:00:00.000Z",
"updatedAt": "2026-05-18T15:05:00.000Z"
}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": "error",
"code": 401,
"message": "Unauthorized access: Invalid or missing authentication credentials.",
"timestamp": "2026-05-18T15:00:00.000Z"
}{
"status": "error",
"code": 404,
"message": "Contact not found",
"timestamp": "2026-05-18T15:00:00.000Z"
}Contacts
Get Contact
Retrieves the details of a single contact using its unique ID.
GET
/
api
/
contacts
/
{id}
Get Contact
curl --request GET \
--url https://api.automatechats.com/api/contacts/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.automatechats.com/api/contacts/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.automatechats.com/api/contacts/{id}', 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://api.automatechats.com/api/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.automatechats.com/api/contacts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.automatechats.com/api/contacts/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.automatechats.com/api/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Contact fetched successfully",
"data": {
"contact": {
"id": "65e0bc51c12e4d70834b070e",
"firstName": "John",
"lastName": "Doe",
"chatName": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "9876543210",
"countryCode": "+91",
"source": "manual",
"subscribed": true,
"tagsId": [
"65e0bc51c12e4d70834b070e"
],
"tags": [
{
"tagId": "65e0bc51c12e4d70834b070e",
"name": "VIP",
"text_color": "#ffffff",
"background_color": "#ef4444"
}
],
"customFields": [
{
"id": "65f12ab3c9e4f1a2b3c4d5e6",
"label": "Company Name",
"value": "Google Deepmind"
}
],
"dob": "1990-01-15",
"anniversary": "2020-06-20",
"workspaceId": 246,
"createdBy": "6996aeeedf12574080a99d81",
"createdAt": "2026-05-18T15:00:00.000Z",
"updatedAt": "2026-05-18T15:05:00.000Z"
}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": "error",
"code": 401,
"message": "Unauthorized access: Invalid or missing authentication credentials.",
"timestamp": "2026-05-18T15:00:00.000Z"
}{
"status": "error",
"code": 404,
"message": "Contact not found",
"timestamp": "2026-05-18T15:00:00.000Z"
}Use this endpoint to retrieve the complete profile of a specific contact.
You must provide the unique 24-character contact
id in the URL path.
This is useful when you need to view a contact’s current tag assignments, custom field values, or subscription status before making updates.Authorizations
Path Parameters
The unique 24-character hexadecimal MongoDB ID of the contact.
⌘I
