Members
List Vendors
Returns the vendor directory for the team .Notes:
- Scope: the list is scoped to the caller’s team (teamId is resolved from the token).
- Ordering is not guaranteed; do not rely on a specific sort order.
- Only the fields defined in VendorInfo are exposed; internal fields are not returned.
- The response is a bare JSON array; empty array when the team has no vendors.
GET
/
v1.0
/
vendor
/
list
List Vendors
curl --request GET \
--url https://api.lofty.com/v1.0/vendor/list \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/vendor/list"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/vendor/list', 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/v1.0/vendor/list",
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/v1.0/vendor/list"
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/v1.0/vendor/list")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/vendor/list")
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": 11,
"agentUserId": 100234,
"firstName": "Alice",
"lastName": "Johnson",
"phoneNumber": "5551234567",
"phoneCode": "1",
"phoneCountry": "US",
"email": "alice@example.com",
"roleName": "Agent",
"companyName": "Lofty Realty",
"companyAddress": "500 Congress Ave, Austin, TX 78701"
}
]"<string>""<string>""<string>"Response
Vendor list for the caller's team. Empty array when the team has no vendors.
⌘I
List Vendors
curl --request GET \
--url https://api.lofty.com/v1.0/vendor/list \
--header 'Authorization: <authorization>'import requests
url = "https://api.lofty.com/v1.0/vendor/list"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lofty.com/v1.0/vendor/list', 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/v1.0/vendor/list",
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/v1.0/vendor/list"
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/v1.0/vendor/list")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lofty.com/v1.0/vendor/list")
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": 11,
"agentUserId": 100234,
"firstName": "Alice",
"lastName": "Johnson",
"phoneNumber": "5551234567",
"phoneCode": "1",
"phoneCountry": "US",
"email": "alice@example.com",
"roleName": "Agent",
"companyName": "Lofty Realty",
"companyAddress": "500 Congress Ave, Austin, TX 78701"
}
]"<string>""<string>""<string>"