Leads
Retrieve a lead and its file builder columns by lead id and map_ids filter.
Authorization OAuth 2.0
This request requires OAuth 2.0 authorization.
Header Parameters
Query Parameters
map_ids
arrayoptionalAn array of map_ids to filter the lead data columns.
Response Parameters
data
arraym*
A collection of file builder columns and their values. In the example we have filtered by map_ids m1 and m2, pulling only the Lead ID and the Account ID from the lead.string
GET /api/v1/lead-data/leads/{leadId}
sh
curl --request GET \
--get "https://api.decisioncloud.me/api/v1/lead-data/leads/1?map_ids[]=m1&map_ids[]=m2" \
--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/leads/1?map_ids[]=m1&map_ids[]=m2"
);
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/leads/1?map_ids[]=m1&map_ids[]=m2',
[
'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/leads/1?map_ids[]=m1&map_ids[]=m2'
headers = {
'Authorization': 'Bearer {ACCESS_TOKEN}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()json
{
"data": {
"m1": 1,
"m2": 10000
}
}