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

  • Open Chrome Extension (TheHUB)
  • Click on Top Right Menu -> Integrations -> Webhook
  • Turn On “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

{
    "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"
        }
    ]
}