How to Automate Recurring Lead Exports via API

Overview
Set up a simple script or tool to pull fresh lead data on a schedule—so your BI dashboards or data warehouse always stay in sync without manual exports.

Procedure

  1. Generate an API Token under Profile → API Keys.

  2. Write a script (e.g. in Python) that calls GET /api/v1/lead-contacts with your token, optionally passing filters (?created_since=YYYY-MM-DD).

  3. Save the JSON or CSV payload to a file, then convert to your desired format.

  4. Schedule this script via cron (Linux) or Task Scheduler (Windows) at your desired interval (hourly, daily).

  5. Optionally, have the script send the file to an SFTP server or cloud storage.

Tips