Query Sales Agent settings
Returns the Sales Agent settings configured for the current caller.
curl --request GET \
--url https://api.lofty.com/v2.0/sales-agent/settings \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v2.0/sales-agent/settings"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v2.0/sales-agent/settings', 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.lofty.com/v2.0/sales-agent/settings",
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: <authorization>"
],
]);
$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.lofty.com/v2.0/sales-agent/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.lofty.com/v2.0/sales-agent/settings")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/sales-agent/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": 12345,
"assistantName": "Anna",
"headUrl": "https://example.com/avatar.jpg",
"virtualNumber": "+1234567890",
"virtualNumberCountry": "US",
"callTransferType": "Disabled",
"fixedNumber": "+1234567890",
"agentExperience": "10 years in real estate",
"rentalBusiness": false,
"websiteChannel": true,
"textChannel": true,
"emailChannel": true,
"startActiveHour": 8,
"endActiveHour": 20,
"activeDays": [
1,
2,
3,
4,
5
],
"leadTypes": [
1,
2
],
"leadSources": [
1001,
1002
],
"leadPipelines": [
2001,
2002
],
"agentIds": [
101,
102
],
"officeIds": [
201,
202
],
"leadPondIds": [
301,
302
],
"newLeadEnable": true,
"visitorsEnable": true,
"followUpRole": "AI",
"hostedStatus": "ACTIVE"
}"<string>""<string>""<string>"Headers
Bearer [access_token]
Response
Settings retrieved successfully.
Sales agent setting response
AI Assistant ID
12345
Assistant name
"Anna"
Assistant avatar URL
"https://example.com/avatar.jpg"
Virtual phone number
"+1234567890"
Virtual number country
"US"
Call transfer type: Disabled, ToAssignedAgent
"Disabled"
Fixed phone number
"+1234567890"
Agent experience description
"10 years in real estate"
Whether agent handles rental business
false
Whether website channel is enabled
true
Whether text channel is enabled
true
Whether email channel is enabled
true
Active start hour (0-23)
8
Active end hour (0-23)
20
Active days of week (0=Sun, 6=Sat)
[1, 2, 3, 4, 5]
Lead types filter
[1, 2]
Lead source IDs filter
[1001, 1002]
Lead pipeline IDs filter
[2001, 2002]
Agent IDs with access
[101, 102]
Office IDs with access
[201, 202]
Lead pond IDs with access
[301, 302]
Whether new lead follow-up is enabled
true
Whether visitor follow-up is enabled
true
Follow up role: AI or Agent
"AI"
Hosted status
"ACTIVE"
curl --request GET \
--url https://api.lofty.com/v2.0/sales-agent/settings \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v2.0/sales-agent/settings"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v2.0/sales-agent/settings', 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.lofty.com/v2.0/sales-agent/settings",
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: <authorization>"
],
]);
$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.lofty.com/v2.0/sales-agent/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.lofty.com/v2.0/sales-agent/settings")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v2.0/sales-agent/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": 12345,
"assistantName": "Anna",
"headUrl": "https://example.com/avatar.jpg",
"virtualNumber": "+1234567890",
"virtualNumberCountry": "US",
"callTransferType": "Disabled",
"fixedNumber": "+1234567890",
"agentExperience": "10 years in real estate",
"rentalBusiness": false,
"websiteChannel": true,
"textChannel": true,
"emailChannel": true,
"startActiveHour": 8,
"endActiveHour": 20,
"activeDays": [
1,
2,
3,
4,
5
],
"leadTypes": [
1,
2
],
"leadSources": [
1001,
1002
],
"leadPipelines": [
2001,
2002
],
"agentIds": [
101,
102
],
"officeIds": [
201,
202
],
"leadPondIds": [
301,
302
],
"newLeadEnable": true,
"visitorsEnable": true,
"followUpRole": "AI",
"hostedStatus": "ACTIVE"
}"<string>""<string>""<string>"