Call recording completed webhook wrong schema

Using this template helps us debug your issues more effectively :slight_smile:

Description
We are using phone.recording_completed. the documentation for that can be found here:

Error
The issue happened when we live tested the webook and received the webhook body.

instead of receiving the body the same as the documentation there was a different schema sent

The expected schema:

{
  "event": "string",
  "event_ts": "integer",
  "payload": {
    "account_id": "string",
    "object": {
      "id": "string",
      "user_id": "string",
      "caller_number": "string",
      "caller_number_type": "integer",
      "caller_name": "string",
      "callee_number": "string",
      "callee_number_type": "integer",
      "callee_name": "string",
      "duration": "integer",
      "download_url": "string",
      "direction": "string",
      "date_time": "string",
      "recording_type": "string",
      "call_id": "string",
      "call_log_id": "string",
      "end_time": "string",
      "site": {
        "id": "string"
      },
      "owner": {
        "type": "string",
        "id": "string",
        "name": "string"
      }
    }
  }
}

The received Schema:

{
"event": "my zoom event",
"event_ts": 12455562366,
"payload":{
    "account_id": "someId",
    "object": {
        "recordings": [
            {
                "id": "string",
                "user_id": "string",
                "caller_number": "string",
                "caller_number_type": 2,
                "caller_name": "anonymous",
                "callee_number": "string",
                "callee_number_type": 1,
                "callee_name": "string",
                "direction": "inbound",
                "duration": 4,
                "download_url": "url",
                "date_time": "2021-08-15T22:29:25Z",
                "recording_type": "OnDemand",
                "call_log_id": "string",
                "call_id": "string",
                "owner": {
                    "type": "user",
                    "id": "string",
                    "name": "string"
                },
                "site": {},
                "end_time": "2021-08-15T22:29:30Z"
            }
        ]
    }
}
}

As you can see instead of the recording object we received a recording Array with an object inside.

we updated our app to handle this however. now we are wondering if this array could come with MULTIPLE recording objects and not just one.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
we used JWT app

Which Endpoint/s?
phone.recording_completed webhook

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. create a JWT app and add call.recording_completed webhook to it
  2. make a call to your account and save a recording to trigger this webhook to your app.
  3. observe the webhook object

Hi @authorify ,

Thank you for sharing this with us. We’ll inquire further and provide an update!

Gianni

1 Like

Hi @authorify ,

Our documentation team will update our docs for this endpoint to reflect the response you received: the array could come with multiple recording objects.

Thank you,
Gianni

alright thank you. so since this end point is supposed to return a recording completed.

the array that is sent would it have any recording that is completed or the recordings for a certain call that happened?

example :

john calls mike and two recordings are saved for that call. on this end point we will receive those recordings in the array?

Hi @authorify ,

It would be the recordings for that particular call so in you example when John calls Mike, you’d receive that array of two recordings :slight_smile:

Best,
Gianni

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.