curl --request POST \
--url https://app.leadconduit.com/fields \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "first_name",
"name": "First Name",
"description": "<string>",
"standard": true,
"aggregate": true,
"deprecated": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://app.leadconduit.com/fields"
payload = {
"id": "first_name",
"name": "First Name",
"description": "<string>",
"standard": True,
"aggregate": True,
"deprecated": True,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'first_name',
name: 'First Name',
description: '<string>',
standard: true,
aggregate: true,
deprecated: true,
created_at: '2023-11-07T05:31:56Z',
updated_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://app.leadconduit.com/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://app.leadconduit.com/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([
'id' => 'first_name',
'name' => 'First Name',
'description' => '<string>',
'standard' => true,
'aggregate' => true,
'deprecated' => true,
'created_at' => '2023-11-07T05:31:56Z',
'updated_at' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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://app.leadconduit.com/fields"
payload := strings.NewReader("{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://app.leadconduit.com/fields")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "first_name",
"name": "First Name",
"type": "boolean",
"description": "<string>",
"standard": true,
"aggregate": true,
"deprecated": true,
"see": "5fd4371e940df5a34a3888b2",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "not authorized"
}Create a field
Create a new custom field, adding it to the list of all fields in the account.
curl --request POST \
--url https://app.leadconduit.com/fields \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "first_name",
"name": "First Name",
"description": "<string>",
"standard": true,
"aggregate": true,
"deprecated": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://app.leadconduit.com/fields"
payload = {
"id": "first_name",
"name": "First Name",
"description": "<string>",
"standard": True,
"aggregate": True,
"deprecated": True,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'first_name',
name: 'First Name',
description: '<string>',
standard: true,
aggregate: true,
deprecated: true,
created_at: '2023-11-07T05:31:56Z',
updated_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://app.leadconduit.com/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://app.leadconduit.com/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([
'id' => 'first_name',
'name' => 'First Name',
'description' => '<string>',
'standard' => true,
'aggregate' => true,
'deprecated' => true,
'created_at' => '2023-11-07T05:31:56Z',
'updated_at' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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://app.leadconduit.com/fields"
payload := strings.NewReader("{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://app.leadconduit.com/fields")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"first_name\",\n \"name\": \"First Name\",\n \"description\": \"<string>\",\n \"standard\": true,\n \"aggregate\": true,\n \"deprecated\": true,\n \"created_at\": \"2023-11-07T05:31:56Z\",\n \"updated_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "first_name",
"name": "First Name",
"type": "boolean",
"description": "<string>",
"standard": true,
"aggregate": true,
"deprecated": true,
"see": "5fd4371e940df5a34a3888b2",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "not authorized"
}Authorizations
LeadConduit uses HTTP Basic Authentication
with the username API and your API key as the password.
For example: API:1f1b96c9150d8050e858c043d543bb4eadae0e6f'
Body
Create a new field
The required alphanumeric identifier of the field. Custom fields have an account-specific suffix (e.g. '_acme')
"first_name"
"last_name"
"email"
"phone_1"
The human-readable name of the field
"First Name"
"Last Name"
"Email"
"Phone 1"
The textual description of the purpose of this field
Read-only flag indicating whether this is a built-in LeadConduit field
The flag indicating that this field should no longer be used
Read-only time the field was created
Read-only time the field was last updated
Response
Created
The required alphanumeric identifier of the field. Custom fields have an account-specific suffix (e.g. '_acme')
"first_name"
"last_name"
"email"
"phone_1"
The human-readable name of the field
"First Name"
"Last Name"
"Email"
"Phone 1"
The textual description of the purpose of this field
Read-only flag indicating whether this is a built-in LeadConduit field
The flag indicating that this field should no longer be used
The alternative field ID to be used instead of this deprecated field
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
Read-only time the field was created
Read-only time the field was last updated