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 Summary Setting is turned on then summary for the CDR will be posted to your webhook when it is generated.

 

Sample Payload of CDR Transcription/Summary posted to webhook:

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

CDR Journaling & Call Summary setup guide

Requirements for call summary:

  1. OpenAI API Key -> This is needed to generate summary from call transcription
  2. AssemblyAI API Key -> This is needed to generate call transcription from call recording file

Note: 

  • There are 10 users under 1 tenant and anyone user has turned on CDR Journaling then CDRs for all users will be exported.
  • If multiple users under one tenant has turned on CDR Journaling then we will take first user setting and use it, all settings will be used from that user like CDR Journaling, Auto Create Contact in CDR Journaling, Call Summary, OpenAI APi Key, AssemblyAI API Key etc…
  • If one user under one tenant has turned on Clio integration and authenticated then CDRs for all users will be exported to Clio

 

OpenAI API Key Setup Guide

  • Login to OpenAI developer account
  • https://platform.openai.com/
  • Create project -> TheHUB
  • Go to Settings -> API Key -> New Secret at
  • Create new API Key named TheHUB and select project TheHUB
  • Select permission all
  • Click create
  • Copy API Key
  • Add it against tenant in chrome extension to use call summary feature at
    • Chrome Extension -> Top Right Menu -> Integrations -> General Settings -> 
    • Turn on call summary
    • Add OpenAI API Key
    • Save

 

AssemblyAI API Key Setup Guide

  • Login to AssemblyAI developer account
  • https://www.assemblyai.com/
  • Go to API Keys in left side menu
  • Create project -> TheHUB 
  • Select TheHUB in API Keys page
  • Click on “create new API Key” button
  • Add API Key name “TheHUB”
  • Click on create
  • Copy API Key
  • Add it against tenant in chrome extension to use call summary feature at
    • Chrome Extension -> Top Right Menu -> Integrations -> General Settings -> 
    • Turn on call summary
    • Add AssemblyAI API Key
    • Save