Data Exports
Export lead data to CSV, Excel, PDF, or transfer via FTP for reporting, analysis, and integration with external systems.
Overview
Ledly provides flexible export options:
- Manual exports - On-demand CSV/Excel downloads
- Scheduled exports - Automated daily/weekly exports
- FTP delivery - Automated file transfer to your server
- API exports - Programmatic data access
- Custom formats - Configure fields and formatting
Common Use Cases:
- Daily lead reports for admissions teams
- Weekly performance analysis
- Monthly CRM imports (backup to API sync)
- Quarterly reporting to stakeholders
- Ad hoc data analysis
Export Formats
CSV (Comma-Separated Values)
Best for:
- Excel/Google Sheets import
- Database imports
- Large datasets
- Automated processing
Example:
email,first_name,last_name,phone,program,created_at
[email protected],John,Doe,+15551234567,MBA,2024-12-25T10:30:00Z
[email protected],Jane,Smith,+15559876543,Nursing,2024-12-25T11:00:00ZFeatures:
- UTF-8 encoding
- Quoted fields for special characters
- Customizable delimiter (comma, tab, pipe)
- Optional header row
Excel (XLSX)
Best for:
- Business users
- Formatted reports
- Charts and graphs
- Multiple worksheets
Features:
- Multiple sheets (leads, summary, charts)
- Formatted columns (dates, currency, phone)
- Auto-filter enabled
- Frozen header row
- Column widths optimized
Best for:
- Executive reports
- Printed materials
- Archival purposes
- Sharing with stakeholders
Features:
- Professional formatting
- Summary statistics
- Charts and visualizations
- Pagination
- Company branding
JSON
Best for:
- API integration
- Programmatic access
- Structured data
- Custom processing
Example:
{
"leads": [
{
"id": "lead_abc123",
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"program": "MBA",
"created_at": "2024-12-25T10:30:00Z"
}
],
"meta": {
"total": 150,
"exported_at": "2024-12-25T12:00:00Z"
}
}Creating Manual Exports
Navigate to Exports
Go to Leads → Export or Reports → Export Data
Configure Export
1. Select Date Range:
- Last 7 days
- Last 30 days
- This month
- Last month
- Custom date range
2. Apply Filters:
- Program
- Source
- Status
- Vendor
- Custom fields
3. Choose Fields:
Standard Fields:
- ✅ First Name
- ✅ Last Name
- ✅ Phone
- ✅ Program
- ⬜ IP Address
- ⬜ User Agent
- ✅ UTM Source
- ✅ UTM Medium
- ✅ UTM Campaign
- ✅ Created At
Custom Fields:
- ✅ Preferred Start Date
- ✅ Education Level
- ✅ Years Experience
4. Select Format:
- CSV
- Excel (XLSX)
- JSON
Generate Export
Click Generate Export
For small datasets (< 1,000 leads):
- Download immediately
For large datasets:
- Export processes in background
- Email notification when ready
- Download link expires in 24 hours
Download File
Click Download to save file to your device.
Scheduled Exports
Automate regular exports.
Create Schedule
Go to Settings → Exports → Scheduled Exports
Click Add Schedule
Configure Schedule
Export Name: “Daily Lead Report”
Frequency:
- Daily (at specific time)
- Weekly (on specific day)
- Monthly (on specific date)
- Custom (cron expression)
Time: 08:00 AM (your timezone)
Filters:
Date Range: Yesterday
Status: Active
Fields: Standard + custom fields
Format: CSVChoose Delivery Method
Email:
- Send to: [email protected]
- Subject:
Daily Lead Report - {{date}} - Attachment: CSV file
FTP/SFTP:
- Host: ftp.university.edu
- Path: /leads/daily/
- Filename:
leads_{{date}}.csv
Webhook:
- URL: https://your-app.com/webhooks/leads-export
- Method: POST
- Payload: Export data as JSON
Enable Schedule
Toggle Enabled and click Save
FTP/SFTP Delivery
Transfer exports directly to your server.
Configuration
Settings → Exports → FTP Settings
FTP:
Protocol: FTP or SFTP (recommended)
Host: ftp.university.edu
Port: 21 (FTP) or 22 (SFTP)
Username: ledly-exports
Password: ••••••••
Path: /incoming/leads/SFTP with SSH Key:
Protocol: SFTP
Host: sftp.university.edu
Port: 22
Username: ledly-exports
Auth Method: SSH Key
Private Key: [Upload your private key]
Path: /data/ledly/leads/File Naming
Configure filename pattern:
Templates:
| Pattern | Example Output |
|---|---|
leads_{{date}}.csv | leads_2024-12-25.csv |
leads_{{timestamp}}.csv | leads_20241225_103000.csv |
{{program}}_leads_{{date}}.csv | MBA_leads_2024-12-25.csv |
leads_{{start_date}}_to_{{end_date}} | leads_2024-12-01_to_2024-12-31.csv |
Variables:
date- Current date (YYYY-MM-DD)timestamp- Full timestampprogram- Program namestart_date- Report start dateend_date- Report end date
Delivery Confirmation
Success Notification:
File: leads_2024-12-25.csv
Size: 2.3 MB
Rows: 1,247
Transferred: 2024-12-25T08:00:15Z
Status: SuccessFailure Notification:
File: leads_2024-12-25.csv
Error: Connection timeout
Retry: Will retry in 15 minutes (2/5 attempts)API Exports
Export data programmatically.
Request Export
Endpoint: POST /api/leads/export
curl -X POST https://api.ledly.io/api/leads/export \
-H "Authorization: Bearer your_token" \
-H "Content-Type: application/json" \
-d '{
"format": "csv",
"start_date": "2024-12-01T00:00:00Z",
"end_date": "2024-12-31T23:59:59Z",
"filters": {
"status": "active",
"program": "MBA"
},
"fields": [
"email",
"first_name",
"last_name",
"phone",
"program",
"created_at"
]
}'Response:
{
"export_id": "export_abc123",
"status": "processing",
"estimated_rows": 1247,
"estimated_completion": "2024-12-25T12:05:00Z"
}Check Export Status
Endpoint: GET /api/exports/:id
curl -H "Authorization: Bearer your_token" \
https://api.ledly.io/api/exports/export_abc123Response (Processing):
{
"export_id": "export_abc123",
"status": "processing",
"progress": 67,
"rows_processed": 836,
"estimated_total": 1247
}Response (Completed):
{
"export_id": "export_abc123",
"status": "completed",
"format": "csv",
"row_count": 1247,
"file_size": 2456789,
"download_url": "https://api.ledly.io/exports/export_abc123/download",
"expires_at": "2024-12-26T12:00:00Z",
"completed_at": "2024-12-25T12:03:42Z"
}Download Export
curl -H "Authorization: Bearer your_token" \
https://api.ledly.io/exports/export_abc123/download \
-o leads.csvDownload links expire after 24 hours. Store the file or generate a new export.
Custom Export Templates
Create reusable export configurations.
Creating Templates
Settings → Exports → Templates
Template: “Daily Admissions Report”
Fields:
- Email
- First Name
- Last Name
- Phone
- Program
- Source
- UTM Campaign
- Created At
- CRM Sync Status
Filters:
- Date Range: Yesterday
- Status: Active
- Exclude: Duplicates
Format: Excel
Sort: Created At (descending)Template: “Weekly Marketing Report”
Fields:
- Email
- Program
- Source
- UTM Source
- UTM Medium
- UTM Campaign
- UTM Term
- UTM Content
- Created At
Grouping: By UTM Campaign
Summary Stats: Count by source
Format: Excel with chartsUsing Templates
- Go to Leads → Export
- Select template from dropdown
- Adjust date range if needed
- Click Generate Export
Export Field Reference
Standard Fields
| Field | Description | Format |
|---|---|---|
id | Unique lead ID | lead_abc123 |
email | Email address | [email protected] |
first_name | First name | John |
last_name | Last name | Doe |
phone | Phone number | +15551234567 |
program | Program of interest | MBA Online |
source | Lead source | website |
vendor_id | Vendor ID | vendor_xyz |
status | Lead status | active |
ip_address | IP address | 203.0.113.42 |
user_agent | Browser user agent | Mozilla/5.0... |
landing_page | Landing page URL | https://... |
referrer | Referrer URL | https://google.com |
created_at | Creation timestamp | 2024-12-25T10:30:00Z |
updated_at | Last update | 2024-12-25T11:00:00Z |
UTM Fields
| Field | Description |
|---|---|
utm_source | Campaign source |
utm_medium | Campaign medium |
utm_campaign | Campaign name |
utm_term | Campaign term |
utm_content | Campaign content |
CRM Sync Fields
| Field | Description |
|---|---|
crm_sync_status | Sync status (synced/pending/failed) |
crm_id | CRM record ID |
crm_synced_at | Sync timestamp |
crm_type | CRM system (salesforce/hubspot) |
Custom Fields
All custom fields are included with the custom_fields. prefix:
| Field | Example |
|---|---|
custom_fields.preferred_start | Fall 2025 |
custom_fields.education_level | Bachelor's |
custom_fields.years_experience | 5 |
Advanced Filtering
Complex Filters
Combine multiple criteria:
{
"filters": {
"program": "MBA",
"status": ["active", "contacted"],
"source": "google",
"created_after": "2024-12-01",
"created_before": "2024-12-31",
"utm_campaign": "spring-2025",
"custom_fields.preferred_start": "Fall 2025"
}
}Aggregated Exports
Export with grouping and summaries:
{
"format": "excel",
"group_by": "program",
"aggregations": {
"total_leads": "count",
"by_source": "count_distinct",
"conversion_rate": "percentage_synced"
}
}Result:
| Program | Total Leads | Sources | Conversion Rate |
|---|---|---|---|
| MBA | 523 | 12 | 87% |
| Nursing | 412 | 8 | 92% |
| Computer Science | 287 | 15 | 79% |
Performance and Limits
Export Limits
| Plan | Max Rows/Export | Max Exports/Day | Retention |
|---|---|---|---|
| Education ($899/mo) | 100,000 | Unlimited | 30 days |
| Enterprise ($1,999/mo) | Unlimited | Unlimited | 90 days |
Processing Time
| Row Count | Estimated Time | Processing |
|---|---|---|
| < 1,000 | Instant | Synchronous |
| 1,000 - 10,000 | 30-60 seconds | Asynchronous |
| 10,000 - 100,000 | 2-5 minutes | Asynchronous |
| > 100,000 | 5-30 minutes | Asynchronous |
Large exports process in the background. You’ll receive an email when ready.
Security and Compliance
Data Protection
- Encryption: All exports encrypted in transit (TLS 1.3)
- At rest: Temporary files encrypted (AES-256)
- Access control: User permissions enforced
- Audit trail: All exports logged
Compliance Features
FERPA Compliance:
- Field-level access control
- Audit logging
- Secure deletion after 24 hours
GDPR Compliance:
- Right to export (data portability)
- Anonymization options
- Retention policies
PCI Compliance:
- No payment data in exports
- Secure delivery (SFTP)
- Access logging
Anonymization
Remove PII from exports:
{
"anonymize": true,
"fields_to_hash": ["email", "phone"],
"fields_to_remove": ["ip_address", "user_agent"]
}Result:
email_hash,first_name,last_name,program
a3f5d...,John,D.,MBA
b7e2c...,Jane,S.,NursingBest Practices
1. Schedule Regular Exports
Automate routine reports:
Daily: Yesterday's leads → FTP
Weekly: Last 7 days summary → Email
Monthly: Full month report → Executive team2. Use Templates
Standardize exports:
✅ Good: Use "Daily Admissions Report" template
❌ Bad: Manually configure each time3. Optimize Field Selection
Only export needed fields:
✅ Good: 10 essential fields → 500 KB
❌ Bad: All 50 fields → 5 MB4. Filter Appropriately
Export relevant data only:
✅ Good: Active leads from last 30 days
❌ Bad: All leads including deleted/archived5. Secure FTP Credentials
Use SFTP and rotate credentials:
✅ Good: SFTP with SSH key, rotated quarterly
❌ Bad: Plain FTP with static passwordTroubleshooting
Export Fails to Generate
Causes:
- Too many rows (exceeds plan limit)
- Invalid filters
- Server timeout
Solutions:
- Reduce date range
- Add more specific filters
- Contact support for large exports
FTP Delivery Fails
Causes:
- Incorrect credentials
- Network/firewall issues
- Insufficient permissions
Solutions:
- Test FTP credentials manually
- Check firewall allows Ledly IPs
- Verify write permissions on target directory
Missing Fields in Export
Causes:
- Fields not selected
- Permissions restrict field access
- Custom fields deleted
Solutions:
- Review field selection
- Check user permissions
- Verify custom fields exist
Examples
Example 1: Daily FTP Export
Name: Daily Lead Export
Schedule: Daily at 8:00 AM
Date Range: Yesterday
Format: CSV
Delivery: SFTP to ftp.university.edu/leads/
Filename: `leads_{{date}}.csv`
Notification: [email protected]Example 2: Weekly Marketing Report
Name: Weekly Marketing Performance
Schedule: Monday at 9:00 AM
Date Range: Last 7 days
Format: Excel
Fields: Email, Program, UTM params, Created At
Grouping: By UTM Campaign
Charts: Lead count by source
Delivery: Email to [email protected]Example 3: Monthly Executive Summary
Name: Monthly Executive Report
Schedule: 1st of month at 10:00 AM
Date Range: Previous month
Format: PDF
Content:
- Lead count by program
- Conversion rates
- Source performance
- Geographic distribution
- Trend charts
Delivery: Email to [email protected]Related Resources
- API Reference - Export API documentation
- Analytics - Advanced reporting
- Custom Fields - Configure exportable fields
- FTP Setup Guide - Detailed FTP configuration