A REST API and webhook system for leads, site visits, and pipeline events — available on every plan for developers integrating Agampath into internal tools.
All API requests require a bearer token, generated from your organization's API settings page.
# cURL example curl -H "Authorization: Bearer YOUR_API_KEY" \ https://api.agampath.com/v1/leads
Requests are limited to 120 per minute per organization. Exceeding this returns a 429 with a Retry-After header.
Returns a paginated list of leads for your organization, filterable by stage, source, and assigned rep.
{
"data": [
{ "id": 10234, "name": "Ananya Iyer", "stage": "site_visit" }
],
"page": 1, "total": 384
}Creates a new lead. Duplicate detection runs automatically against phone and email.
{
"name": "Rahul Sharma",
"phone": "+91 98765 43210",
"source": "facebook_ads",
"project_id": 42
}Marks a scheduled visit as verified once OTP confirmation and GPS check-in both succeed.
{
"otp_code": "482913",
"lat": 18.5204, "lng": 73.8567
}Subscribe to real-time events instead of polling. Common event types:
lead.created lead.stage_changed site_visit.verified commission.approved
Talk to our team about custom integration needs.