curl --request POST \
--url https://www.postable.com/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "Mr.",
"first_name": "John",
"middle_name": "Robert",
"last_name": "Doe",
"company": "Acme Inc.",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"address": "123 Main St",
"apt": "Apt 4B",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "United States",
"spouse_prefix": "Mrs.",
"spouse_first_name": "Jane",
"spouse_middle_name": "Marie",
"spouse_last_name": "Doe",
"birth_month": 5,
"birth_day": 15,
"birth_year": 1980,
"anniversary_month": 6,
"anniversary_day": 20,
"anniversary_year": 2010,
"spouse_birth_month": 8,
"spouse_birth_day": 25,
"spouse_birth_year": 1982,
"children": [
{
"first_name": "Jimmy",
"birth_month": 3,
"birth_day": 12,
"birth_year": 2012
},
{
"first_name": "Sally",
"birth_month": 9,
"birth_day": 8,
"birth_year": 2015
}
],
"pets": [
{
"name": "Fido",
"birth_month": 4,
"birth_day": 10,
"birth_year": 2018,
"secondary_type": "Dog"
}
],
"notes": "This is a test contact."
}
'import requests
url = "https://www.postable.com/api/v1/contacts"
payload = {
"prefix": "Mr.",
"first_name": "John",
"middle_name": "Robert",
"last_name": "Doe",
"company": "Acme Inc.",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"address": "123 Main St",
"apt": "Apt 4B",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "United States",
"spouse_prefix": "Mrs.",
"spouse_first_name": "Jane",
"spouse_middle_name": "Marie",
"spouse_last_name": "Doe",
"birth_month": 5,
"birth_day": 15,
"birth_year": 1980,
"anniversary_month": 6,
"anniversary_day": 20,
"anniversary_year": 2010,
"spouse_birth_month": 8,
"spouse_birth_day": 25,
"spouse_birth_year": 1982,
"children": [
{
"first_name": "Jimmy",
"birth_month": 3,
"birth_day": 12,
"birth_year": 2012
},
{
"first_name": "Sally",
"birth_month": 9,
"birth_day": 8,
"birth_year": 2015
}
],
"pets": [
{
"name": "Fido",
"birth_month": 4,
"birth_day": 10,
"birth_year": 2018,
"secondary_type": "Dog"
}
],
"notes": "This is a test contact."
}
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({
prefix: 'Mr.',
first_name: 'John',
middle_name: 'Robert',
last_name: 'Doe',
company: 'Acme Inc.',
email: 'john.doe@example.com',
phone: '555-123-4567',
address: '123 Main St',
apt: 'Apt 4B',
city: 'Anytown',
state: 'CA',
zip: '12345',
country: 'United States',
spouse_prefix: 'Mrs.',
spouse_first_name: 'Jane',
spouse_middle_name: 'Marie',
spouse_last_name: 'Doe',
birth_month: 5,
birth_day: 15,
birth_year: 1980,
anniversary_month: 6,
anniversary_day: 20,
anniversary_year: 2010,
spouse_birth_month: 8,
spouse_birth_day: 25,
spouse_birth_year: 1982,
children: [
{first_name: 'Jimmy', birth_month: 3, birth_day: 12, birth_year: 2012},
{first_name: 'Sally', birth_month: 9, birth_day: 8, birth_year: 2015}
],
pets: [
{
name: 'Fido',
birth_month: 4,
birth_day: 10,
birth_year: 2018,
secondary_type: 'Dog'
}
],
notes: 'This is a test contact.'
})
};
fetch('https://www.postable.com/api/v1/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://www.postable.com/api/v1/contacts",
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([
'prefix' => 'Mr.',
'first_name' => 'John',
'middle_name' => 'Robert',
'last_name' => 'Doe',
'company' => 'Acme Inc.',
'email' => 'john.doe@example.com',
'phone' => '555-123-4567',
'address' => '123 Main St',
'apt' => 'Apt 4B',
'city' => 'Anytown',
'state' => 'CA',
'zip' => '12345',
'country' => 'United States',
'spouse_prefix' => 'Mrs.',
'spouse_first_name' => 'Jane',
'spouse_middle_name' => 'Marie',
'spouse_last_name' => 'Doe',
'birth_month' => 5,
'birth_day' => 15,
'birth_year' => 1980,
'anniversary_month' => 6,
'anniversary_day' => 20,
'anniversary_year' => 2010,
'spouse_birth_month' => 8,
'spouse_birth_day' => 25,
'spouse_birth_year' => 1982,
'children' => [
[
'first_name' => 'Jimmy',
'birth_month' => 3,
'birth_day' => 12,
'birth_year' => 2012
],
[
'first_name' => 'Sally',
'birth_month' => 9,
'birth_day' => 8,
'birth_year' => 2015
]
],
'pets' => [
[
'name' => 'Fido',
'birth_month' => 4,
'birth_day' => 10,
'birth_year' => 2018,
'secondary_type' => 'Dog'
]
],
'notes' => 'This is a test contact.'
]),
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://www.postable.com/api/v1/contacts"
payload := strings.NewReader("{\n \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\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://www.postable.com/api/v1/contacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.postable.com/api/v1/contacts")
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 \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"first_name": "<string>",
"last_name": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internal_id": "<string>",
"prefix": "<string>",
"middle_name": "<string>",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"apt": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"spouse_prefix": "<string>",
"spouse_first_name": "<string>",
"spouse_middle_name": "<string>",
"spouse_last_name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123,
"anniversary_month": 6,
"anniversary_day": 16,
"anniversary_year": 123,
"spouse_birth_month": 6,
"spouse_birth_day": 16,
"spouse_birth_year": 123,
"children": [
{
"first_name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123
}
],
"pets": [
{
"name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123,
"secondary_type": "<string>"
}
],
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Create Contact
Create a new contact with all related information
curl --request POST \
--url https://www.postable.com/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "Mr.",
"first_name": "John",
"middle_name": "Robert",
"last_name": "Doe",
"company": "Acme Inc.",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"address": "123 Main St",
"apt": "Apt 4B",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "United States",
"spouse_prefix": "Mrs.",
"spouse_first_name": "Jane",
"spouse_middle_name": "Marie",
"spouse_last_name": "Doe",
"birth_month": 5,
"birth_day": 15,
"birth_year": 1980,
"anniversary_month": 6,
"anniversary_day": 20,
"anniversary_year": 2010,
"spouse_birth_month": 8,
"spouse_birth_day": 25,
"spouse_birth_year": 1982,
"children": [
{
"first_name": "Jimmy",
"birth_month": 3,
"birth_day": 12,
"birth_year": 2012
},
{
"first_name": "Sally",
"birth_month": 9,
"birth_day": 8,
"birth_year": 2015
}
],
"pets": [
{
"name": "Fido",
"birth_month": 4,
"birth_day": 10,
"birth_year": 2018,
"secondary_type": "Dog"
}
],
"notes": "This is a test contact."
}
'import requests
url = "https://www.postable.com/api/v1/contacts"
payload = {
"prefix": "Mr.",
"first_name": "John",
"middle_name": "Robert",
"last_name": "Doe",
"company": "Acme Inc.",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"address": "123 Main St",
"apt": "Apt 4B",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "United States",
"spouse_prefix": "Mrs.",
"spouse_first_name": "Jane",
"spouse_middle_name": "Marie",
"spouse_last_name": "Doe",
"birth_month": 5,
"birth_day": 15,
"birth_year": 1980,
"anniversary_month": 6,
"anniversary_day": 20,
"anniversary_year": 2010,
"spouse_birth_month": 8,
"spouse_birth_day": 25,
"spouse_birth_year": 1982,
"children": [
{
"first_name": "Jimmy",
"birth_month": 3,
"birth_day": 12,
"birth_year": 2012
},
{
"first_name": "Sally",
"birth_month": 9,
"birth_day": 8,
"birth_year": 2015
}
],
"pets": [
{
"name": "Fido",
"birth_month": 4,
"birth_day": 10,
"birth_year": 2018,
"secondary_type": "Dog"
}
],
"notes": "This is a test contact."
}
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({
prefix: 'Mr.',
first_name: 'John',
middle_name: 'Robert',
last_name: 'Doe',
company: 'Acme Inc.',
email: 'john.doe@example.com',
phone: '555-123-4567',
address: '123 Main St',
apt: 'Apt 4B',
city: 'Anytown',
state: 'CA',
zip: '12345',
country: 'United States',
spouse_prefix: 'Mrs.',
spouse_first_name: 'Jane',
spouse_middle_name: 'Marie',
spouse_last_name: 'Doe',
birth_month: 5,
birth_day: 15,
birth_year: 1980,
anniversary_month: 6,
anniversary_day: 20,
anniversary_year: 2010,
spouse_birth_month: 8,
spouse_birth_day: 25,
spouse_birth_year: 1982,
children: [
{first_name: 'Jimmy', birth_month: 3, birth_day: 12, birth_year: 2012},
{first_name: 'Sally', birth_month: 9, birth_day: 8, birth_year: 2015}
],
pets: [
{
name: 'Fido',
birth_month: 4,
birth_day: 10,
birth_year: 2018,
secondary_type: 'Dog'
}
],
notes: 'This is a test contact.'
})
};
fetch('https://www.postable.com/api/v1/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://www.postable.com/api/v1/contacts",
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([
'prefix' => 'Mr.',
'first_name' => 'John',
'middle_name' => 'Robert',
'last_name' => 'Doe',
'company' => 'Acme Inc.',
'email' => 'john.doe@example.com',
'phone' => '555-123-4567',
'address' => '123 Main St',
'apt' => 'Apt 4B',
'city' => 'Anytown',
'state' => 'CA',
'zip' => '12345',
'country' => 'United States',
'spouse_prefix' => 'Mrs.',
'spouse_first_name' => 'Jane',
'spouse_middle_name' => 'Marie',
'spouse_last_name' => 'Doe',
'birth_month' => 5,
'birth_day' => 15,
'birth_year' => 1980,
'anniversary_month' => 6,
'anniversary_day' => 20,
'anniversary_year' => 2010,
'spouse_birth_month' => 8,
'spouse_birth_day' => 25,
'spouse_birth_year' => 1982,
'children' => [
[
'first_name' => 'Jimmy',
'birth_month' => 3,
'birth_day' => 12,
'birth_year' => 2012
],
[
'first_name' => 'Sally',
'birth_month' => 9,
'birth_day' => 8,
'birth_year' => 2015
]
],
'pets' => [
[
'name' => 'Fido',
'birth_month' => 4,
'birth_day' => 10,
'birth_year' => 2018,
'secondary_type' => 'Dog'
]
],
'notes' => 'This is a test contact.'
]),
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://www.postable.com/api/v1/contacts"
payload := strings.NewReader("{\n \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\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://www.postable.com/api/v1/contacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.postable.com/api/v1/contacts")
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 \"prefix\": \"Mr.\",\n \"first_name\": \"John\",\n \"middle_name\": \"Robert\",\n \"last_name\": \"Doe\",\n \"company\": \"Acme Inc.\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\",\n \"address\": \"123 Main St\",\n \"apt\": \"Apt 4B\",\n \"city\": \"Anytown\",\n \"state\": \"CA\",\n \"zip\": \"12345\",\n \"country\": \"United States\",\n \"spouse_prefix\": \"Mrs.\",\n \"spouse_first_name\": \"Jane\",\n \"spouse_middle_name\": \"Marie\",\n \"spouse_last_name\": \"Doe\",\n \"birth_month\": 5,\n \"birth_day\": 15,\n \"birth_year\": 1980,\n \"anniversary_month\": 6,\n \"anniversary_day\": 20,\n \"anniversary_year\": 2010,\n \"spouse_birth_month\": 8,\n \"spouse_birth_day\": 25,\n \"spouse_birth_year\": 1982,\n \"children\": [\n {\n \"first_name\": \"Jimmy\",\n \"birth_month\": 3,\n \"birth_day\": 12,\n \"birth_year\": 2012\n },\n {\n \"first_name\": \"Sally\",\n \"birth_month\": 9,\n \"birth_day\": 8,\n \"birth_year\": 2015\n }\n ],\n \"pets\": [\n {\n \"name\": \"Fido\",\n \"birth_month\": 4,\n \"birth_day\": 10,\n \"birth_year\": 2018,\n \"secondary_type\": \"Dog\"\n }\n ],\n \"notes\": \"This is a test contact.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"first_name": "<string>",
"last_name": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internal_id": "<string>",
"prefix": "<string>",
"middle_name": "<string>",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"apt": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>",
"spouse_prefix": "<string>",
"spouse_first_name": "<string>",
"spouse_middle_name": "<string>",
"spouse_last_name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123,
"anniversary_month": 6,
"anniversary_day": 16,
"anniversary_year": 123,
"spouse_birth_month": 6,
"spouse_birth_day": 16,
"spouse_birth_year": 123,
"children": [
{
"first_name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123
}
],
"pets": [
{
"name": "<string>",
"birth_month": 6,
"birth_day": 16,
"birth_year": 123,
"secondary_type": "<string>"
}
],
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
First name of the contact
Last name of the contact
Unique identifier for the contact
Your internal identifier for this contact (e.g., customer ID from your system)
20Prefix/title (e.g., Mr., Mrs., Dr.)
Middle name of the contact
Company name
Email address
Phone number
Street address
Apartment, suite, or unit number
City
State or province
ZIP or postal code
Country
Spouse's prefix/title
Spouse's first name
Spouse's middle name
Spouse's last name
Birth month
1 <= x <= 12Birth day
1 <= x <= 31Birth year
Anniversary month
1 <= x <= 12Anniversary day
1 <= x <= 31Anniversary year
Spouse's birth month
1 <= x <= 12Spouse's birth day
1 <= x <= 31Spouse's birth year
List of children
Show child attributes
Show child attributes
List of pets
Show child attributes
Show child attributes
Additional notes about the contact
Creation timestamp in ISO-8601 format
Last update timestamp in ISO-8601 format
Response
Contact created successfully
Show child attributes
Show child attributes