Data Dictionary
Retrieve a data dictionary list of file builder attributes to use when consuming the Leads endpoint.
Authorization OAuth 2.0
This request requires OAuth 2.0 authorization.
Header Parameters
Response Parameters
data
arrayid
stringThe attribute ID.
category
stringThe category/heading the attribute belongs to in file builder.
subcategory
stringThe subcategory/subheading the attribute belongs to in file builder.
name
stringThe name of the attribute as it appears in file builder.
column
stringThe "snake_case" name of the attribute as it appears in file builder.
type
stringThe data type of the attribute (String, Number, Boolean).
GET /api/v1/lead-data/dictionary
sh
curl --request GET \
--get "https://api.decisioncloud.me/api/v1/lead-data/dictionary" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"js
const url = new URL(
"https://api.decisioncloud.me/api/v1/lead-data/dictionary"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());php
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.decisioncloud.me/api/v1/lead-data/dictionary',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));py
import requests
import json
url = 'https://api.decisioncloud.me/api/v1/lead-data/dictionary'
headers = {
'Authorization': 'Bearer {ACCESS_TOKEN}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()json
{
"data": [
{
"id": "m1",
"category": "Lead",
"subcategory": "Internal Lead Data",
"name": "Lead ID",
"column": "lead_id",
"type": "Number"
},
{
"id": "m2",
"category": "Lead",
"subcategory": "Internal Lead Data",
"name": "Account ID",
"column": "account_id",
"type": "Number"
}
]
}