List custom contact fields
curl --request GET \
--url https://api.withallo.com/v2/api/crm/attributes \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/crm/attributes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.withallo.com/v2/api/crm/attributes', 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/attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.withallo.com/v2/api/crm/attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.withallo.com/v2/api/crm/attributes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/crm/attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"key": "budget",
"label": "Budget",
"type": "NUMBER",
"source": "allo"
},
{
"key": "lead_status",
"label": "Lead status",
"type": "DROPDOWN",
"options": [
{
"key": "hot",
"label": "Hot"
},
{
"key": "cold",
"label": "Cold"
}
],
"source": "allo"
}
],
"pagination": {
"page": 1,
"size": 20,
"total_count": 2,
"total_pages": 1,
"has_more": false
}
}{
"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
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Custom fields
List custom fields
Returns the custom fields defined on your team’s people, paginated. Includes the fields you created with the API and the ones synced from your CRM integrations. Archived fields and built-in fields such as name or company are not listed.
GET
/
v2
/
api
/
crm
/
attributes
List custom contact fields
curl --request GET \
--url https://api.withallo.com/v2/api/crm/attributes \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/crm/attributes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.withallo.com/v2/api/crm/attributes', 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/attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.withallo.com/v2/api/crm/attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.withallo.com/v2/api/crm/attributes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/crm/attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"key": "budget",
"label": "Budget",
"type": "NUMBER",
"source": "allo"
},
{
"key": "lead_status",
"label": "Lead status",
"type": "DROPDOWN",
"options": [
{
"key": "hot",
"label": "Hot"
},
{
"key": "cold",
"label": "Cold"
}
],
"source": "allo"
}
],
"pagination": {
"page": 1,
"size": 20,
"total_count": 2,
"total_pages": 1,
"has_more": false
}
}{
"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
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Required scope:
CRM_READname or company are not listed.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number, starting at 1 |
size | integer | 20 | Items per page, from 1 to 100 |
Response fields
| Field | Type | Description |
|---|---|---|
key | string | Unique key of the field |
label | string or null | Display name |
type | string or null | TEXT, NUMBER, DATE, BOOLEAN or DROPDOWN |
options | array | { key, label } objects. Only present for DROPDOWN |
source | string | allo, or the integration that manages the field, such as hubspot |
{
"data": [
{ "key": "budget", "label": "Budget", "type": "NUMBER", "source": "allo" },
{
"key": "lead_status",
"label": "Lead status",
"type": "DROPDOWN",
"options": [
{ "key": "hot", "label": "Hot" },
{ "key": "cold", "label": "Cold" }
],
"source": "allo"
}
],
"pagination": {
"page": 1,
"size": 20,
"total_count": 2,
"total_pages": 1,
"has_more": false
}
}
Errors
| Status | Code | When |
|---|---|---|
400 | INVALID_PAGE_SIZE | page is below 1 or size is not between 1 and 100 |
403 | API_KEY_INSUFFICIENT_SCOPE | The key does not hold CRM_READ |
404 | TEAM_NOT_FOUND | The workspace is not on the new contact model |
Authorizations
Query Parameters
Page number (1-indexed)
Required range:
x >= 1Results per page
Required range:
1 <= x <= 100Was this page helpful?