Skip to main content
GET
/
v2
/
campaign-analytics
/
{campaign_id}
Get campaign analytics by date
curl --request GET \
  --url https://app.closerx.ai/api/v2/campaign-analytics/{campaign_id}/ \
  --header 'Company-Name: <company-name>' \
  --header 'api_key: <api-key>'
{
  "total_count": 1,
  "total_page": 1,
  "current_page_no": 1,
  "next_page_number": null,
  "previous_page_number": null,
  "page_size": 10,
  "data": [
    {
      "id": 5157,
      "calling_number": "+911149816890",
      "sid": "call_4be2700848d9cf0cbcb525393d8",
      "contact_id": null,
      "contact_number": "+918570904784",
      "email": null,
      "first_name": null,
      "last_name": null,
      "company_name": null,
      "industry": null,
      "address": null,
      "custom1": null,
      "custom2": null,
      "custom3": null,
      "custom4": null,
      "scheduling_charge": "0.0000",
      "calender_id": null,
      "appointment_booked": false,
      "call_duration": 0,
      "status": "dial_no_answer",
      "improvement_tags": [],
      "outcome": "Unknown",
      "recording_url": null,
      "recording_file": null,
      "transcription": [],
      "transcription_text": "",
      "notes": "",
      "credit_deduction": "0.0000",
      "errors": "",
      "response_sentiment": "NOT_DETECTED",
      "triggered_by_crm": "GHL",
      "dynamic_variables": null,
      "extract_dynamic_variables": null,
      "created_at": "2025-08-08T20:04:34.718079Z",
      "updated_at": "2025-08-08T20:09:11.544410Z",
      "quick_campaign": "quickcamp2062236c"
    }
  ]
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

The name of the schema to be used for the request

Path Parameters

campaign_id
string
required

Unique campaign ID (e.g., campc005bf8a)

Query Parameters

page
integer

Page number for pagination

sort_by
string

Sort the results by a specific field

Search term for filtering

outcome
string

Filter by outcome of the campaign

date
string<date>

Specific date for which data is required

from_date
string<date>

Start date for range filtering

to_date
string<date>

End date for range filtering

Response

Campaign analytics data response

total_count
integer

Total number of analytics records

Example:

1

total_page
integer

Total number of pages

Example:

1

current_page_no
integer

Current page number

Example:

1

next_page_number
integer | null

Next page number if available

Example:

null

previous_page_number
integer | null

Previous page number if available

Example:

null

page_size
integer

Number of records per page

Example:

10

data
object[]

List of campaign analytics data