Create custom fields
curl --request POST \
--url https://api.tented.ai/v1/contact-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"api_name": "<string>",
"value_type": "string",
"is_editable": true,
"description": "<string>",
"show_in_people_list_default": false
}
'import requests
url = "https://api.tented.ai/v1/contact-fields"
payload = {
"display_name": "<string>",
"api_name": "<string>",
"value_type": "string",
"is_editable": True,
"description": "<string>",
"show_in_people_list_default": False
}
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({
display_name: '<string>',
api_name: '<string>',
value_type: 'string',
is_editable: true,
description: '<string>',
show_in_people_list_default: false
})
};
fetch('https://api.tented.ai/v1/contact-fields', 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.tented.ai/v1/contact-fields",
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([
'display_name' => '<string>',
'api_name' => '<string>',
'value_type' => 'string',
'is_editable' => true,
'description' => '<string>',
'show_in_people_list_default' => false
]),
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.tented.ai/v1/contact-fields"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\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.tented.ai/v1/contact-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/contact-fields")
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 \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"type": "standard",
"api_name": "<string>",
"display_name": "<string>",
"value_type": "string",
"is_editable": true,
"status": "active",
"field_definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"management_mode": "org_managed",
"provenance_kind": "manual_ui",
"provenance_provider": "<string>",
"provenance_reference": "<string>",
"created_by_user_id": "<string>",
"created_from_import_session_id": "<string>",
"show_in_people_list_default": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "field_definition_collision",
"conflicts": [
{
"kind": "duplicate_in_request",
"requested_api_name": "<string>",
"existing_field_definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"existing_display_name": "<string>"
}
],
"limit": 123,
"current_active_count": 123,
"attempted_count": 123
}Contact Fields
Create custom fields
Create one custom field (send a single object) or up to 50 in one request (send {"items": [...]}). Bulk creation is atomic — if any item collides, nothing is created.
Limits and collisions:
- A workspace can have at most 200 active custom fields. Exceeding the cap returns
409witherror_code: "field_definition_cap_exceeded"pluslimit,current_active_count, andattempted_count. - An
api_namethat duplicates another item in the request or an existing (active or archived) custom field returns409witherror_code: "field_definition_collision"and aconflictsarray describing each collision. To reuse an archived field’s name, restore it instead viaPATCH /v1/contact-fields/{fieldDefinitionId}withstatus: "active". - Standard field names (
email,first_name,company, …) are reserved and return400.
POST
/
v1
/
contact-fields
Create custom fields
curl --request POST \
--url https://api.tented.ai/v1/contact-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"api_name": "<string>",
"value_type": "string",
"is_editable": true,
"description": "<string>",
"show_in_people_list_default": false
}
'import requests
url = "https://api.tented.ai/v1/contact-fields"
payload = {
"display_name": "<string>",
"api_name": "<string>",
"value_type": "string",
"is_editable": True,
"description": "<string>",
"show_in_people_list_default": False
}
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({
display_name: '<string>',
api_name: '<string>',
value_type: 'string',
is_editable: true,
description: '<string>',
show_in_people_list_default: false
})
};
fetch('https://api.tented.ai/v1/contact-fields', 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.tented.ai/v1/contact-fields",
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([
'display_name' => '<string>',
'api_name' => '<string>',
'value_type' => 'string',
'is_editable' => true,
'description' => '<string>',
'show_in_people_list_default' => false
]),
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.tented.ai/v1/contact-fields"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\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.tented.ai/v1/contact-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/contact-fields")
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 \"display_name\": \"<string>\",\n \"api_name\": \"<string>\",\n \"value_type\": \"string\",\n \"is_editable\": true,\n \"description\": \"<string>\",\n \"show_in_people_list_default\": false\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"type": "standard",
"api_name": "<string>",
"display_name": "<string>",
"value_type": "string",
"is_editable": true,
"status": "active",
"field_definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"management_mode": "org_managed",
"provenance_kind": "manual_ui",
"provenance_provider": "<string>",
"provenance_reference": "<string>",
"created_by_user_id": "<string>",
"created_from_import_session_id": "<string>",
"show_in_people_list_default": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "field_definition_collision",
"conflicts": [
{
"kind": "duplicate_in_request",
"requested_api_name": "<string>",
"existing_field_definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"existing_display_name": "<string>"
}
],
"limit": 123,
"current_active_count": 123,
"attempted_count": 123
}Authorizations
Body
application/json
- Custom field
- Bulk create
A custom field to create.