Aura Logo
AuraAPI Docs
OpenapiV1AnalyticsLead sources

Get lead source analytics

Alpha API - This endpoint is in active development. Schema may change without notice.

Retrieve call performance aggregated by UTM source attribution.

Includes:

  • Booked calls, shows, and closes per source
  • Close rate per source
  • Revenue per source

Use Cases:

  • Ad platform ROAS calculations
  • Channel attribution reporting
  • Marketing spend optimization
GET
/v1/analytics/lead-sources

Query Parameters

start_date?string

ISO 8601 start date (defaults to all time)

end_date?string

ISO 8601 end date (defaults to now)

Response Body

application/json

application/json

application/json

curl -X GET "https://api.aura-app.ai/v1/analytics/lead-sources"
{
  "success": true,
  "data": [
    {
      "source": "google",
      "booked_calls": 45,
      "shows": 36,
      "closes": 12,
      "close_rate": 0.27,
      "revenue": 480000,
      "currency": "USD"
    }
  ]
}
{
  "success": false,
  "error": "Failed to fetch analytics",
  "code": "DATABASE_ERROR",
  "requestId": "req_abc123"
}
{
  "success": false,
  "error": "Failed to fetch analytics",
  "code": "DATABASE_ERROR",
  "requestId": "req_abc123"
}