Viewing Office Lead Data
Portal Leads
Office Portal Leads are all the leads that have come from sources such as Rightmove, Zoopla, and On The Market.
- cURL
- Guzzle PHP
- Fetch Javascript
curl `https://api.agentresponse.app/api/v1/offices/{YOUR_OFFICE_ID}/portal-leads` \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {YOUR_API_KEY}'
// Include Guzzle. If using Composer:
// require 'vendor/autoload.php';
use GuzzleHttp\Pool;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new Client();
$apiToken = "YOUR_API_TOKEN";
$officeId = "YOUR_OFFICE_ID";
$request = new Request(
"GET",
"https://api.agentresponse.app/api/v1/offices/{$officeId}/portal-leads",
[
"Content-Type" => "application/json",
"Accept" => "application/json"
"Authorization" => "Bearer ".$apiToken
],
"");
$response = $client->send($request);
echo "Response HTTP : " . $response->getStatusCode() . "
";
const apiToken = "YOUR_API_TOKEN";
const officeId = "YOUR_OFFICE_ID";
// Request (GET https://api.agentresponse.app/api/v1/test)
fetch(`https://api.agentresponse.app/api/v1/offices/${officeId}/portal-leads`, {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": `Bearer ${apiToken}`
}
})
.then((res) => res.json())
.then(console.log.bind(console))
.catch(console.error.bind(console));
Live Editor
Result
Loading...
Form Responses
Form Responses are all the leads that have come from your forms.
- cURL
- Guzzle PHP
- Fetch Javascript
curl `https://api.agentresponse.app/api/v1/offices/{YOUR_OFFICE_ID}/form-responses` \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {YOUR_API_KEY}'
// Include Guzzle. If using Composer:
// require 'vendor/autoload.php';
use GuzzleHttp\Pool;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new Client();
$apiToken = "YOUR_API_TOKEN";
$officeId = "YOUR_OFFICE_ID";
$request = new Request(
"GET",
"https://api.agentresponse.app/api/v1/offices/{$officeId}/form-responses",
[
"Content-Type" => "application/json",
"Accept" => "application/json"
"Authorization" => "Bearer ".$apiToken
],
"");
$response = $client->send($request);
echo "Response HTTP : " . $response->getStatusCode() . "
";
const apiToken = "YOUR_API_TOKEN";
const officeId = "YOUR_OFFICE_ID";
// Request (GET https://api.agentresponse.app/api/v1/test)
fetch(`https://api.agentresponse.app/api/v1/offices/${officeId}/form-responses`, {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": `Bearer ${apiToken}`
}
})
.then((res) => res.json())
.then(console.log.bind(console))
.catch(console.error.bind(console));
Live Editor
Result
Loading...
Phone Leads
This API endpoint gives you details on the phone calls that have been made to all of your team's phone numbers.
- cURL
- Guzzle PHP
- Fetch Javascript
curl `https://api.agentresponse.app/api/v1/offices/{YOUR_OFFICE_ID}/phone-leads` \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {YOUR_API_KEY}'
// Include Guzzle. If using Composer:
// require 'vendor/autoload.php';
use GuzzleHttp\Pool;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new Client();
$apiToken = "YOUR_API_TOKEN";
$officeId = "YOUR_OFFICE_ID";
$request = new Request(
"GET",
"https://api.agentresponse.app/api/v1/offices/{$officeId}/phone-leads",
[
"Content-Type" => "application/json",
"Accept" => "application/json"
"Authorization" => "Bearer ".$apiToken
],
"");
$response = $client->send($request);
echo "Response HTTP : " . $response->getStatusCode() . "
";
const apiToken = "YOUR_API_TOKEN";
const officeId = "YOUR_OFFICE_ID";
// Request (GET https://api.agentresponse.app/api/v1/test)
fetch(`https://api.agentresponse.app/api/v1/offices/${officeId}/phone-leads`, {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": `Bearer ${apiToken}`
}
})
.then((res) => res.json())
.then(console.log.bind(console))
.catch(console.error.bind(console));
Live Editor
Result
Loading...