# Reports

The Reports API provides comprehensive analytics and insights into your FluentCRM performance. Get detailed statistics on campaigns, funnels, subscriber activity, and overall email marketing metrics.

# Report Types

FluentCRM provides several types of reports:

  • Overview - General performance metrics
  • Campaigns - Individual campaign analytics
  • Funnels - Automation performance
  • Subscribers - Contact activity and growth
  • Revenue - Commerce tracking and attribution

# General Reports

# Dashboard Overview

Get key performance indicators for the dashboard.

HTTP Request

GET /wp-json/fluent-crm/v2/reports/overview
1

# Parameters

Parameter Type Default Description
date_range string 30_days Time period for report
compare_with string - Comparison period

Available date_range options:

  • today
  • yesterday
  • 7_days
  • 30_days
  • 90_days
  • 12_months
  • custom (requires start_date and end_date)

# Example Request

curl "https://yourdomain.com/wp-json/fluent-crm/v2/reports/overview?date_range=30_days" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2

# Example Response

{
  "total_subscribers": 5432,
  "subscriber_growth": {
    "current_period": 234,
    "previous_period": 189,
    "growth_rate": 23.8
  },
  "email_stats": {
    "emails_sent": 12560,
    "emails_opened": 3768,
    "emails_clicked": 942,
    "open_rate": 30.0,
    "click_rate": 7.5
  },
  "revenue": {
    "total": 15680.50,
    "growth": 12.3
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# Campaign Reports

# All Campaigns Performance

HTTP Request

GET /wp-json/fluent-crm/v2/reports/campaigns
1

# Single Campaign Report

HTTP Request

GET /wp-json/fluent-crm/v2/reports/campaigns/{id}
1

# Campaign Email Stats

HTTP Request

GET /wp-json/fluent-crm/v2/reports/campaigns/{id}/email-stats
1

# Example Response

{
  "campaign_id": 123,
  "campaign_title": "Summer Sale Campaign",
  "stats": {
    "sent": 1000,
    "delivered": 985,
    "opened": 295,
    "clicked": 78,
    "unsubscribed": 5,
    "bounced": 15,
    "delivery_rate": 98.5,
    "open_rate": 29.9,
    "click_rate": 7.9,
    "unsubscribe_rate": 0.5
  },
  "revenue": {
    "total": 2450.00,
    "orders": 12,
    "conversion_rate": 1.2
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# Funnel Reports

# All Funnels Performance

HTTP Request

GET /wp-json/fluent-crm/v2/reports/funnels
1

# Single Funnel Report

HTTP Request

GET /wp-json/fluent-crm/v2/reports/funnels/{id}
1

# Funnel Conversion Analysis

HTTP Request

GET /wp-json/fluent-crm/v2/reports/funnels/{id}/conversion-stats
1

# Example Response

{
  "funnel_id": 456,
  "funnel_title": "Welcome Series",
  "subscribers": {
    "total_entered": 523,
    "currently_active": 89,
    "completed": 401,
    "completion_rate": 76.7
  },
  "sequence_performance": [
    {
      "sequence_id": 1,
      "title": "Welcome Email",
      "sent": 523,
      "opened": 387,
      "clicked": 145,
      "open_rate": 74.0,
      "click_rate": 27.7
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# Subscriber Reports

# Subscriber Growth

HTTP Request

GET /wp-json/fluent-crm/v2/reports/subscriber-growth
1

# Parameters

Parameter Type Default Description
date_range string 30_days Time period
group_by string day Grouping interval

Available group_by options:

  • hour (for today/yesterday)
  • day (for weekly/monthly)
  • week (for quarterly)
  • month (for yearly)

# Subscriber Activity

HTTP Request

GET /wp-json/fluent-crm/v2/reports/subscriber-activity
1

# Top Performing Subscribers

HTTP Request

GET /wp-json/fluent-crm/v2/reports/top-subscribers
1

# Parameters

Parameter Type Default Description
metric string engagement Ranking metric
limit integer 10 Number of results

Available metric options:

  • engagement - Email engagement score
  • revenue - Purchase activity
  • activity - Overall activity level

# Revenue Reports

# Revenue Overview

HTTP Request

GET /wp-json/fluent-crm/v2/reports/revenue
1

# Revenue by Campaign

HTTP Request

GET /wp-json/fluent-crm/v2/reports/revenue/campaigns
1

# Revenue by Contact

HTTP Request

GET /wp-json/fluent-crm/v2/reports/revenue/contacts
1

# Example Response

{
  "total_revenue": 45230.50,
  "total_orders": 189,
  "average_order_value": 239.32,
  "attribution": {
    "campaigns": 32450.25,
    "funnels": 12780.25
  },
  "top_campaigns": [
    {
      "campaign_id": 123,
      "title": "Black Friday Sale",
      "revenue": 8950.00,
      "orders": 45
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Email Deliverability Reports

# Bounce Analysis

HTTP Request

GET /wp-json/fluent-crm/v2/reports/bounces
1

# Spam Complaints

HTTP Request

GET /wp-json/fluent-crm/v2/reports/spam-complaints
1

# Unsubscribe Analysis

HTTP Request

GET /wp-json/fluent-crm/v2/reports/unsubscribes
1

# List Performance Reports

# All Lists Performance

HTTP Request

GET /wp-json/fluent-crm/v2/reports/lists
1

# Single List Report

HTTP Request

GET /wp-json/fluent-crm/v2/reports/lists/{id}
1

# Tag Performance Reports

# All Tags Performance

HTTP Request

GET /wp-json/fluent-crm/v2/reports/tags
1

# Single Tag Report

HTTP Request

GET /wp-json/fluent-crm/v2/reports/tags/{id}
1

# Advanced Analytics

# Segmentation Analysis

HTTP Request

GET /wp-json/fluent-crm/v2/reports/segmentation-analysis
1

# A/B Testing Results

HTTP Request

GET /wp-json/fluent-crm/v2/reports/ab-testing
1

# Engagement Scoring

HTTP Request

GET /wp-json/fluent-crm/v2/reports/engagement-scores
1

# Scheduled Reports

# Create Scheduled Report

HTTP Request

POST /wp-json/fluent-crm/v2/reports/scheduled
1

# Parameters

Parameter Type Required Description
title string Yes Report title
type string Yes Report type
frequency string Yes Schedule frequency
recipients array Yes Email recipients
settings object - Report configuration

Available frequency options:

  • daily
  • weekly
  • monthly
  • quarterly

# Get Scheduled Reports

HTTP Request

GET /wp-json/fluent-crm/v2/reports/scheduled
1

# Export Reports

# Export Campaign Data

HTTP Request

GET /wp-json/fluent-crm/v2/reports/campaigns/{id}/export
1

# Parameters

Parameter Type Default Description
format string csv Export format
include array basic Data to include

Available format options:

  • csv
  • xlsx
  • json

Available include options:

  • basic - Basic statistics
  • subscribers - Subscriber details
  • activities - Email activities
  • revenue - Revenue data

# Export Subscriber Data

HTTP Request

GET /wp-json/fluent-crm/v2/reports/subscribers/export
1

# Real-time Analytics

# Live Campaign Stats

HTTP Request

GET /wp-json/fluent-crm/v2/reports/campaigns/{id}/live
1

# Live Funnel Performance

HTTP Request

GET /wp-json/fluent-crm/v2/reports/funnels/{id}/live
1

# Custom Report Filters

Many report endpoints support advanced filtering:

# Date Range Filtering

curl "https://yourdomain.com/wp-json/fluent-crm/v2/reports/campaigns?start_date=2024-01-01&end_date=2024-01-31" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2

# Segmentation Filtering

curl "https://yourdomain.com/wp-json/fluent-crm/v2/reports/overview?lists[]=1&tags[]=2" \
  -H "Authorization: Basic API_USERNAME:API_PASSWORD"
1
2

# Error Handling

# Invalid Date Range (400)

{
  "code": "invalid_date_range",
  "message": "End date must be after start date.",
  "data": {"status": 400}
}
1
2
3
4
5

# Report Not Found (404)

{
  "code": "report_not_found",
  "message": "The requested report could not be found.",
  "data": {"status": 404}
}
1
2
3
4
5

# Performance Considerations

# Data Caching

  • Reports are cached for performance
  • Cache duration varies by report type
  • Real-time reports have minimal caching

# Rate Limiting

  • Report endpoints have rate limits
  • Export operations may take longer
  • Consider pagination for large datasets

# Optimization Tips

  • Use appropriate date ranges
  • Leverage cached reports when possible
  • Export large datasets in batches
  • Use specific filters to reduce data size
  • Campaigns - Get campaign data for reports
  • Funnels - Get funnel data for reports
  • Contacts - Analyze subscriber behavior
  • Lists - List performance analysis