Available Features for this Integration:

Call A Popup ✘
CDR Journaling ✓

 

You can use a custom webhook to post CDRs to your custom solution using our webhook option.

Note: Only Admin User can access these Integration Settings.

  • Open Chrome Extension (TheHUB)
  • Click on Top Right Menu -> Integrations -> CDRs to Webhook
  • Turn On “CDRs To Webhook” -> Status -> Turn this setting on to use webhook
  • HTTP method is only allowed to “POST”
  • Request URL -> add your webhook URL here on which CDRs will be posted
  • Click on “Save” button



Sample Payload of CDRs posted to webhook:

Note: your webhook must respond with status 200 or 201 to confirm the receipt of the data

JSON ▼
{
    "type": "cdr",
    "cdrs": [
        {
            "uniqueid": "pbx01-1756728013.921580",
            "start_time": "2025-09-01 13:00:12",
            "call_type": "IN",
            "caller_number": "442031703746",
            "dialed_number": "442039702436",
            "disposition": "ANSWERED",
            "duration": "348",
            "recording_url": "https://smsapi.thehubwork.com/api/cdr/call-recording/pbx01-1756728013.921580?token=1234"
        },
        {
            "uniqueid": "pbx01-1756728615.921580",
            "start_time": "2025-09-01 15:00:12",
            "call_type": "OUT",
            "caller_number": "442039702436",
            "dialed_number": "442031703746",
            "disposition": "ANSWERED",
            "duration": "54",
            "recording_url": "https://smsapi.thehubwork.com/api/cdr/call-recording/pbx01-1756728615.921580?token=1234"
        },
        {
            "uniqueid": "pbx01-1756728656.923783",
            "start_time": "2025-09-01 16:01:17",
            "call_type": "IN",
            "caller_number": "442031703746",
            "dialed_number": "442039702436",
            "disposition": "ANSWERED",
            "duration": "348",
            "recording_url": "https://smsapi.thehubwork.com/api/cdr/call-recording/pbx01-1756728656.923783?token=1234"
        }
    ]
}
  

 

Note: If Call Recording is not processed and posted with CDR then it will be posted to your webhook when it is available.

 

Sample Payload of CDR Recording posted to webhook:

JSON ▼
📋 Copy
{
    "type": "call_recording",
    "cdrs": [
        {
            "uniqueid": "voip01-1770877300.19943444",
            "recording_url": "call_recording_url",
        },
        {
            "uniqueid": "voip01-1770877720.19943491",
"recording_url": "call_recording_url", }, { "uniqueid": "voip01-1770877892.19943581",
"recording_url": "call_recording_url", } ] }

Note: If Call Transcription Setting is turned on then Transcription for the CDR will be posted to your webhook when it is generated.

 

Sample Payload of Call Transcription posted to webhook:

JSON ▼
📋 Copy
{
    "type": "call_transcription",
    "cdrs": [
        {
            "uniqueid": "voip01-1770877300.19943444",
            "transcription": "1@0.5 ==> Hello, how can I help you?\n\n2@3.2 ==> I need help with my account."
        },
        {
            "uniqueid": "voip01-1770877720.19943491",
            "transcription": "1@1.2 ==> Thank you for calling support.\n\n2@4.8 ==> My internet connection is not working."
        },
        {
            "uniqueid": "voip01-1770877892.19943581",
            "transcription": "1@0.8 ==> Hello, I am calling about your appointment.\n\n2@5.1 ==> Can we reschedule it for tomorrow?"
        }
    ]
}

Note: If Call Summary Setting is turned on then summary for the CDR will be posted to your webhook when it is generated.

Sample Payload of CDR Summary posted to webhook:

JSON ▼
{
    "type": "call_summary",
    "cdrs": [
        {
            "uniqueid": "voip01-1770877300.19943444",
            "summary": "The call had no speech."
        },
        {
            "uniqueid": "voip01-1770877720.19943491",
            "summary": "The call transcription contains no speech or content to summarize."
        },
        {
            "uniqueid": "voip01-1770877892.19943581",
            "summary": "A sales call was initiated, and the caller identified themselves with an internal number."
        }
    ]
}