Skip to main content
POST
/
v2
/
api
/
crm
/
people
Create person
curl --request POST \
  --url https://api.withallo.com/v2/api/crm/people \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John",
  "last_name": "Doe",
  "job_title": "CEO",
  "website": "https://example.com",
  "address": "123 Main St",
  "numbers": [
    "+33612345678"
  ],
  "emails": [
    "[email protected]"
  ],
  "company_id": "com-xyz789"
}
'
import requests

url = "https://api.withallo.com/v2/api/crm/people"

payload = {
"name": "John",
"last_name": "Doe",
"job_title": "CEO",
"website": "https://example.com",
"address": "123 Main St",
"numbers": ["+33612345678"],
"emails": ["[email protected]"],
"company_id": "com-xyz789"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John',
last_name: 'Doe',
job_title: 'CEO',
website: 'https://example.com',
address: '123 Main St',
numbers: ['+33612345678'],
emails: ['[email protected]'],
company_id: 'com-xyz789'
})
};

fetch('https://api.withallo.com/v2/api/crm/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.withallo.com/v2/api/crm/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([
'name' => 'John',
'last_name' => 'Doe',
'job_title' => 'CEO',
'website' => 'https://example.com',
'address' => '123 Main St',
'numbers' => [
'+33612345678'
],
'emails' => [
'[email protected]'
],
'company_id' => 'com-xyz789'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.withallo.com/v2/api/crm/people"

payload := strings.NewReader("{\n \"name\": \"John\",\n \"last_name\": \"Doe\",\n \"job_title\": \"CEO\",\n \"website\": \"https://example.com\",\n \"address\": \"123 Main St\",\n \"numbers\": [\n \"+33612345678\"\n ],\n \"emails\": [\n \"[email protected]\"\n ],\n \"company_id\": \"com-xyz789\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "<api-key>")
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.withallo.com/v2/api/crm/people")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John\",\n \"last_name\": \"Doe\",\n \"job_title\": \"CEO\",\n \"website\": \"https://example.com\",\n \"address\": \"123 Main St\",\n \"numbers\": [\n \"+33612345678\"\n ],\n \"emails\": [\n \"[email protected]\"\n ],\n \"company_id\": \"com-xyz789\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.withallo.com/v2/api/crm/people")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John\",\n \"last_name\": \"Doe\",\n \"job_title\": \"CEO\",\n \"website\": \"https://example.com\",\n \"address\": \"123 Main St\",\n \"numbers\": [\n \"+33612345678\"\n ],\n \"emails\": [\n \"[email protected]\"\n ],\n \"company_id\": \"com-xyz789\"\n}"

response = http.request(request)
puts response.read_body
{
  "data": {
    "id": "per-abc123",
    "name": "John",
    "last_name": "Doe",
    "job_title": "CEO",
    "website": "https://example.com",
    "address": "123 Main St",
    "numbers": [
      "+33612345678"
    ],
    "emails": [
      "[email protected]"
    ],
    "company": {
      "id": "com-xyz789",
      "name": "Acme Corp"
    },
    "interactions": 5,
    "last_activity_at": "2026-04-28T10:30:00",
    "created_at": "2026-04-01T09:00:00",
    "updated_at": "2026-04-28T10:30:00"
  }
}
{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}
{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}
{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}
{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}
Required scope: CRM_WRITE

Body fields

FieldTypeRequiredDefaultDescription
namestringnoFirst name
last_namestringnoLast name
job_titlestringnoJob title
websitestringnoWebsite URL
addressstringnoAddress
numbersarraynoPhone numbers in E.164 format
emailsarraynoEmail addresses
company_idstringnoAssociated company ID
allow_duplicate_numberbooleannofalseAllow creating the person even if one or more phone numbers are already assigned to another person
At least one of name or last_name is required.

Associations

Pass a company_id to link the person to an existing company. The company must exist or the request returns an error.

Duplicate phone numbers

By default, creating a person with phone numbers that already belong to another person in your team returns a 409 Conflict error. The error response includes the IDs of the existing people so you can update them instead. To create the person anyway, set allow_duplicate_number to true.
{
  "name": "John",
  "numbers": ["+33612345678"],
  "allow_duplicate_number": true
}
To find the existing person by phone number, use Search people with the phone_number filter.

Authorizations

Authorization
string
header
required

Body

application/json

Request body for creating a person

numbers
string[]
required

Phone numbers in E.164 format. At least one number is required.

Minimum array length: 1
Example:
["+33612345678"]
name
string | null

First name

Example:

"John"

last_name
string | null

Last name

Example:

"Doe"

job_title
string | null

Job title

Example:

"CEO"

website
string | null

Website URL

Example:

"https://example.com"

address
string | null

Postal address

Example:

"123 Main St"

emails
string[] | null

Email addresses

Example:
company_id
string | null

ID of the company to associate with

Example:

"com-xyz789"

allow_duplicate_number
boolean
default:false

When true, allows creating a person even if the phone numbers are already assigned to another person. Defaults to false.

Response

Person created

data
object

A person in the CRM