Resources · API Docs

Build on top of your own CRM data.

A REST API and webhook system for leads, site visits, and pipeline events — available on every plan for developers integrating Agampath into internal tools.

Authentication

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

Rate limits

Requests are limited to 120 per minute per organization. Exceeding this returns a 429 with a Retry-After header.

GET/v1/leads

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
}
POST/v1/leads

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
}
PATCH/v1/site-visits/:id/verify

Marks a scheduled visit as verified once OTP confirmation and GPS check-in both succeed.

{
  "otp_code": "482913",
  "lat": 18.5204, "lng": 73.8567
}

Webhook event types

Subscribe to real-time events instead of polling. Common event types:

lead.created
lead.stage_changed
site_visit.verified
commission.approved

Need a higher rate limit or a sandbox key?

Talk to our team about custom integration needs.