curl --request GET \
--url https://core-api.agentova.ai/v1/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://core-api.agentova.ai/v1/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core-api.agentova.ai/v1/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://core-api.agentova.ai/v1/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 => [
"Authorization: Bearer <token>"
],
]);
$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://core-api.agentova.ai/v1/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core-api.agentova.ai/v1/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.agentova.ai/v1/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "lea_01HZX5M2N3P4Q5R6S7T8V9W0X1",
"source": "lead_ads",
"agent_id": "agt_01HZX3Q8K5N7P2R4S6T8V0W2Y5",
"name": "Jane Doe",
"email": "jane.doe@example.com",
"phone": "+33612345678",
"custom_fields": {
"budget": "5000-10000"
},
"created_at": "2026-08-20T09:20:00Z"
}
],
"has_more": false,
"next_cursor": null
}{
"error": {
"code": "invalid_request",
"message": "The limit parameter must be an integer between 1 and 100",
"details": {
"parameter": "limit",
"max": 100
}
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid or revoked key — create one in Settings → API",
"details": {}
}
}{
"error": {
"code": "workspace_access_denied",
"message": "This workspace's subscription does not allow access to the API",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded — retry in a few seconds",
"details": {
"retry_after_seconds": 42
}
}
}{
"error": {
"code": "service_unavailable",
"message": "The API is temporarily unavailable — retry later",
"details": {}
}
}List leads
Lists the leads of the workspace, most recent first (created_at, then id). Leads come from the sources widget, lead_ads, telephony, social and crm (see LeadSource). A lead whose agent was deleted is not returned. The lead.created webhook event sends the same objects when leads are created.
curl --request GET \
--url https://core-api.agentova.ai/v1/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://core-api.agentova.ai/v1/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core-api.agentova.ai/v1/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://core-api.agentova.ai/v1/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 => [
"Authorization: Bearer <token>"
],
]);
$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://core-api.agentova.ai/v1/leads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core-api.agentova.ai/v1/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.agentova.ai/v1/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "lea_01HZX5M2N3P4Q5R6S7T8V9W0X1",
"source": "lead_ads",
"agent_id": "agt_01HZX3Q8K5N7P2R4S6T8V0W2Y5",
"name": "Jane Doe",
"email": "jane.doe@example.com",
"phone": "+33612345678",
"custom_fields": {
"budget": "5000-10000"
},
"created_at": "2026-08-20T09:20:00Z"
}
],
"has_more": false,
"next_cursor": null
}{
"error": {
"code": "invalid_request",
"message": "The limit parameter must be an integer between 1 and 100",
"details": {
"parameter": "limit",
"max": 100
}
}
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid or revoked key — create one in Settings → API",
"details": {}
}
}{
"error": {
"code": "workspace_access_denied",
"message": "This workspace's subscription does not allow access to the API",
"details": {}
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded — retry in a few seconds",
"details": {
"retry_after_seconds": 42
}
}
}{
"error": {
"code": "service_unavailable",
"message": "The API is temporarily unavailable — retry later",
"details": {}
}
}Autorisations
API key created in the Agentova app (Settings → API), sent as Authorization: Bearer agk_live_…. One key = one workspace: the key determines the workspace, and no workspace identifier ever travels in requests. The Bearer scheme is case-insensitive. A revoked key is refused immediately.
Paramètres de requête
Only the leads from this source. Any other value is refused with 400 invalid_request.
widget: the chat widget of a website, or a lead entered manually in the Agentova app.lead_ads: a Meta Lead Ads form.telephony: a phone call handled by an Agentova telephony agent.social: an Instagram or Facebook prospect who commented a post and then sent their contact details (email or phone) in a private message to the comment automation of an Agentova agent.crm: an incoming contact of a connected CRM (HubSpot, Monday, Customer.io…) for which an automation of an Agentova agent ran.
widget, social, telephony, lead_ads, crm Only the leads of this agent, given as an opaque agt_… identifier. A value that does not look like an identifier issued by the API returns an empty page.
Integer from 1 to 100 (default 25). Out of range or not an integer: 400 invalid_request.
1 <= x <= 100Opaque cursor received in next_cursor. Missing, empty or equal to the literal word null: first page. Unreadable: 400 invalid_request.