List Addy's Leads
curl --request GET \
--url https://app.adsera.in/api/pub/addy/leads \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'import requests
url = "https://app.adsera.in/api/pub/addy/leads"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.adsera.in/api/pub/addy/leads', 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://app.adsera.in/api/pub/addy/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-secret: <api-key>"
],
]);
$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://app.adsera.in/api/pub/addy/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.adsera.in/api/pub/addy/leads")
.header("x-api-key", "<api-key>")
.header("x-api-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.adsera.in/api/pub/addy/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"contact": "919876543210",
"contactId": "<string>",
"whatsapp": "<string>",
"status": "active",
"summary": "Runs 3 salons in Pune; wants WhatsApp reminders for appointments; asked about pricing for 3 users.",
"learned": {
"business_type": "Salon",
"team_size": "3",
"timeline": "this month"
},
"lead": {
"score": 82,
"temperature": "hot",
"stage": "qualified",
"reason": "Has budget, needs it this month, decision maker.",
"updatedAt": "2023-11-07T05:31:56Z"
},
"handoff": {
"reason": "<string>",
"summary": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"booked": true,
"order": {
"status": "pending",
"total": 123,
"currency": "<string>",
"via": "whatsapp",
"at": "2023-11-07T05:31:56Z",
"paidAt": "2023-11-07T05:31:56Z"
},
"replies": 123,
"lastCustomerMessageAt": "2023-11-07T05:31:56Z",
"lastReplyAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"page": 123,
"perPage": 123
}
}{
"success": false,
"error": "Contact not found"
}{
"status": 401,
"success": false,
"error": "Unauthorized: Please provide valid API credentials."
}{
"success": false,
"error": "Contact not found"
}AI Agent (Addy)
List Addy's Leads
Customers Addy has talked to, best leads first.
GET
/
api
/
pub
/
addy
/
leads
List Addy's Leads
curl --request GET \
--url https://app.adsera.in/api/pub/addy/leads \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'import requests
url = "https://app.adsera.in/api/pub/addy/leads"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.adsera.in/api/pub/addy/leads', 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://app.adsera.in/api/pub/addy/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-secret: <api-key>"
],
]);
$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://app.adsera.in/api/pub/addy/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.adsera.in/api/pub/addy/leads")
.header("x-api-key", "<api-key>")
.header("x-api-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.adsera.in/api/pub/addy/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"contact": "919876543210",
"contactId": "<string>",
"whatsapp": "<string>",
"status": "active",
"summary": "Runs 3 salons in Pune; wants WhatsApp reminders for appointments; asked about pricing for 3 users.",
"learned": {
"business_type": "Salon",
"team_size": "3",
"timeline": "this month"
},
"lead": {
"score": 82,
"temperature": "hot",
"stage": "qualified",
"reason": "Has budget, needs it this month, decision maker.",
"updatedAt": "2023-11-07T05:31:56Z"
},
"handoff": {
"reason": "<string>",
"summary": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"booked": true,
"order": {
"status": "pending",
"total": 123,
"currency": "<string>",
"via": "whatsapp",
"at": "2023-11-07T05:31:56Z",
"paidAt": "2023-11-07T05:31:56Z"
},
"replies": 123,
"lastCustomerMessageAt": "2023-11-07T05:31:56Z",
"lastReplyAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"page": 123,
"perPage": 123
}
}{
"success": false,
"error": "Contact not found"
}{
"status": 401,
"success": false,
"error": "Unauthorized: Please provide valid API credentials."
}{
"success": false,
"error": "Contact not found"
}Authorizations
Query Parameters
Was this page helpful?