Create or update contact
curl --request POST \
--url https://api.clientcommander.com/v1/people \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+15551234567",
"source": "Website Signup",
"tags": [
"VIP",
"Hot Lead"
],
"price": 450000,
"timeframe": "3-6 months",
"background": "Interested in downtown properties"
}
'import requests
url = "https://api.clientcommander.com/v1/people"
payload = {
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+15551234567",
"source": "Website Signup",
"tags": ["VIP", "Hot Lead"],
"price": 450000,
"timeframe": "3-6 months",
"background": "Interested in downtown properties"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'John',
lastName: 'Doe',
email: 'john@example.com',
phone: '+15551234567',
source: 'Website Signup',
tags: ['VIP', 'Hot Lead'],
price: 450000,
timeframe: '3-6 months',
background: 'Interested in downtown properties'
})
};
fetch('https://api.clientcommander.com/v1/people', 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.clientcommander.com/v1/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'John',
'lastName' => 'Doe',
'email' => 'john@example.com',
'phone' => '+15551234567',
'source' => 'Website Signup',
'tags' => [
'VIP',
'Hot Lead'
],
'price' => 450000,
'timeframe' => '3-6 months',
'background' => 'Interested in downtown properties'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.clientcommander.com/v1/people"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.clientcommander.com/v1/people")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clientcommander.com/v1/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"version": "1.0.0"
},
"data": {
"created": true,
"id": "<string>",
"person": {
"id": "jd79abc123def",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"createdAt": "2023-11-15T10:00:00Z",
"emails": [
{
"value": "john@example.com",
"type": "work",
"isPrimary": false
}
],
"phones": [
{
"value": "+15551234567",
"type": "mobile",
"status": "Valid",
"isPrimary": true,
"isBad": true
}
],
"assignedAgentId": "<string>",
"assignedAgentName": "Jane Smith",
"assignedAgentEmail": "jsmith@example.com",
"stageId": "<string>",
"stageName": "Lead",
"source": "Website Signup",
"tags": "VIP, Hot Lead, Referral",
"price": 450000,
"timeframe": "3-6 months",
"background": "<string>",
"relationship": false,
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "Missing required parameter",
"details": [
{
"field": "personId",
"message": "Required field is missing",
"code": "REQUIRED_FIELD"
}
],
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key",
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource",
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"details": [
{
"field": "email",
"message": "Must be a valid email address",
"code": "INVALID_FORMAT"
},
{
"field": "phone",
"message": "Phone number is required",
"code": "REQUIRED_FIELD"
}
],
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Please retry after 60 seconds.",
"retryAfter": 60,
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}People
Create Contact
Create a new contact or update existing one if matched by email/phone.
Deduplication: Automatically matches by email (exact) or phone (normalized).
Name Parsing: If only firstName is provided with multiple words, automatically splits into first/last name.
POST
/
v1
/
people
Create or update contact
curl --request POST \
--url https://api.clientcommander.com/v1/people \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+15551234567",
"source": "Website Signup",
"tags": [
"VIP",
"Hot Lead"
],
"price": 450000,
"timeframe": "3-6 months",
"background": "Interested in downtown properties"
}
'import requests
url = "https://api.clientcommander.com/v1/people"
payload = {
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+15551234567",
"source": "Website Signup",
"tags": ["VIP", "Hot Lead"],
"price": 450000,
"timeframe": "3-6 months",
"background": "Interested in downtown properties"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'John',
lastName: 'Doe',
email: 'john@example.com',
phone: '+15551234567',
source: 'Website Signup',
tags: ['VIP', 'Hot Lead'],
price: 450000,
timeframe: '3-6 months',
background: 'Interested in downtown properties'
})
};
fetch('https://api.clientcommander.com/v1/people', 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.clientcommander.com/v1/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'John',
'lastName' => 'Doe',
'email' => 'john@example.com',
'phone' => '+15551234567',
'source' => 'Website Signup',
'tags' => [
'VIP',
'Hot Lead'
],
'price' => 450000,
'timeframe' => '3-6 months',
'background' => 'Interested in downtown properties'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.clientcommander.com/v1/people"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.clientcommander.com/v1/people")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clientcommander.com/v1/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john@example.com\",\n \"phone\": \"+15551234567\",\n \"source\": \"Website Signup\",\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ],\n \"price\": 450000,\n \"timeframe\": \"3-6 months\",\n \"background\": \"Interested in downtown properties\"\n}"
response = http.request(request)
puts response.read_body{
"meta": {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"version": "1.0.0"
},
"data": {
"created": true,
"id": "<string>",
"person": {
"id": "jd79abc123def",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"createdAt": "2023-11-15T10:00:00Z",
"emails": [
{
"value": "john@example.com",
"type": "work",
"isPrimary": false
}
],
"phones": [
{
"value": "+15551234567",
"type": "mobile",
"status": "Valid",
"isPrimary": true,
"isBad": true
}
],
"assignedAgentId": "<string>",
"assignedAgentName": "Jane Smith",
"assignedAgentEmail": "jsmith@example.com",
"stageId": "<string>",
"stageName": "Lead",
"source": "Website Signup",
"tags": "VIP, Hot Lead, Referral",
"price": 450000,
"timeframe": "3-6 months",
"background": "<string>",
"relationship": false,
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "Missing required parameter",
"details": [
{
"field": "personId",
"message": "Required field is missing",
"code": "REQUIRED_FIELD"
}
],
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key",
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource",
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"details": [
{
"field": "email",
"message": "Must be a valid email address",
"code": "INVALID_FORMAT"
},
{
"field": "phone",
"message": "Phone number is required",
"code": "REQUIRED_FIELD"
}
],
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Please retry after 60 seconds.",
"retryAfter": 60,
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"timestamp": "2023-11-15T10:00:00Z"
}
}Authorizations
API key for authentication using Bearer token scheme.
How to get your API key:
- Log into Client Commander
- Go to Admin > API Keys
- Click Create API Key
- Copy the key and use it in the Authorization header:
Authorization: Bearer ccmd_live_your_key_here
Headers
Unique key for idempotent requests
Required string length:
16 - 64Body
application/json
Required string length:
1 - 100Required string length:
1 - 100Maximum string length:
255Pattern:
^\+?[1-9]\d{1,14}$Maximum string length:
100Stage ID
Required range:
x >= 0Maximum string length:
100Maximum string length:
5000Maximum array length:
20Required string length:
1 - 50Maximum string length:
200Maximum string length:
100Maximum string length:
2Pattern:
^[A-Z]{2}$Pattern:
^\d{5}(-\d{4})?$⌘I

