News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to get Detailed Call data right after call (Webhook)?
Tags: webhooks, call logs, call recording
Sep 4, 2023 at 3:45am   •   1 replies  •  0 likes
Nikita Stoliarov

Hello!

I have a question related to the Webhook payload which I get each time when the call is finished.

I have prepared a Webhook to receive payloads about recent calls just after they have finished. I have two different realizations:

  1. RingCentral built-in Webhook;
  2. Make.com built-in Webhook;

The payload that I receive is not enough, so I want to get more data about time-frames and recording links. Unfortunately, both Webhooks do not give me data callRecordId to get detailed information.

Are there any ways that can help me get full info about calls in real-time?

Thank you in advance!

p.s. There is an example of a Make.com Webhook response provided below:

[
    {
        "extensionId": 42142141,
        "telephonyStatus": "CallConnected",
        "activeCalls": [
            {
                "id": "hffsaf4216sfsaaskap",
                "direction": "Outbound",
                "from": "+11111111111",
                "to": "+22222222222",
                "telephonyStatus": "CallConnected",
                "sessionId": "9142413112",
                "startTime": "2023-09-01T21:30:32.858Z",
                "partyId": "p-a0306c90eeca6z14214122a67e550000-1",
                "telephonySessionId": "s-a0306c423131ad8a52a7a400z1a67e550000"
            }
        ],
        "sequence": 100,
        "presenceStatus": "Busy",
        "userStatus": "Available",
        "dndStatus": "TakeAllCalls",
        "meetingStatus": "Disconnected",
        "allowSeeMyPresence": true,
        "ringOnMonitoredCall": false,
        "pickUpCallsOnHold": false,
        "totalActiveCalls": 1
    }
]


1 Answer
answered on Sep 5, 2023 at 7:16am  

After getting the event when a call is disconnected, cause a delay for about 10 secs and call the call-log API as follows:

Use the List user call records:

GET /restapi/v1.0/account/~/extension/[extensionId]/call-log?view=Detailed&telephonySessionId=[telephoneySessionId]

Where the extensionId and the telephonySessionId are taken from the event payload.

Or use the List company call records:

GET /restapi/v1.0/account/~/call-log?view=Detailed&telephonySessionId=[telephoneySessionId]



 1



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us