Business Contact Department Filter API
Retrieve department and subdepartment filter options for people search.
ENDPOINTS
POST /api/v1/businessContact/department
Request parameters
No request body required.
curl https://api.tradedata.io/api/v1/businessContact/department \
-H "Authorization: Bearer yourTokenHere" \
-H "Content-Type: application/json" \
-d '{}'
import requests
response = requests.post(
"https://api.tradedata.io/api/v1/businessContact/department",
headers={
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
json={},
)
print(response.json())
const response = await fetch("https://api.tradedata.io/api/v1/businessContact/department", {
method: "POST",
headers: {
"Authorization": "Bearer yourTokenHere",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();
<?php
$ch = curl_init("https://api.tradedata.io/api/v1/businessContact/department");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer yourTokenHere",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([]),
]);
echo curl_exec($ch);
Response parameters
data.key
string
Department key. Use as person_department_or_subdepartments.
- Example:
c_suite
data.name
string
Display name.
- Example:
C-Suite
data.subdepartment
array
Nested subdepartments, each with the same key, name, and subdepartment structure.
Response Example
{
"code": 200,
"success": true,
"data": [
{
"key": "c_suite",
"name": "C-Suite",
"subdepartment": [
{
"key": "executive",
"name": "Executive",
"subdepartment": []
}
]
}
],
"msg": "success",
"total": 0,
"pageSize": 0,
"current": 0,
"sumResult": null
}