Using this template helps us debug your issues more effectively
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:
- create a JWT app and add call.recording_completed webhook to it
- make a call to your account and save a recording to trigger this webhook to your app.
- observe the webhook object