Send feedback info about calls

Send a push notification to inform that a user accept or reject a call.

URL Requires Auth HTTP Method
/api/v1/voice.call.feedback yes POST


Argument Example Required Description
roomUrl https://pimenta.live/pimentagroupxwuxNjkzT2fAy7JCBtpxGjMs3taDcJzaCf Required The URL of pimenta.live that will be the call
acceptsCall true Required Indicate if user accept the call
senderId brLK2GKKH5S7RrgM8 Required The ID of user that starts the call
ids ["brLK2GKKH5S7RrgM8", "txer9hbbdRtWieC36"] Required The ids of users to send push notifications
callId tpxGjMs3taDcJzaCf Required The call ID received on voice.call endpoint
isBusy true Optional Send this parameter as true if user reject call because is in another call
callHandledOnWeb false Optional This parameter have to be send as true only from web interface

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/voice.call \
     -d '{"roomUrl":"https://pimenta.live/pimentagroupxwuxNjkzT2fAy7JCBtpxGjMs3taDcJzaCf","senderId":"brLK2GKKH5S7RrgM8", "ids":["brLK2GKKH5S7RrgM8", "txer9hbbdRtWieC36"], "callId": "tpxGjMs3taDcJzaCf", "isBusy": false, "callHandledOnWeb": false}'

Example Result

    "result": {
        "sentTo": {
            "brLK2GKKH5S7RrgM8": "cwWYNFVT3oU:APA91bEzrNX0dyYTltuXuIb0icZjnraHfqXVYxyppZ48VBn0i5XuArOL4AgBb-r9sreNfIudOSdLQ0F9UJ1C0ObbrejecZHJEZWIwQz6DrW7utJeTZpJOwZVXMogScy6GZ7AVmmauCYw"
    "success": true