This method lets you post feedback for calls. You can access call quality feedback information received through this API on the Call Debug UI, and view aggregated reports on the Call Insights Reporting dashboard.
Optional free text field that can be used to send descriptive feedback for the call.
HTTP responses we send
HTTP Status Code
Message
201
Feedback has been posted
401
Authentication failed
404
Resource cannot be found*
404
Please check the Call UUID**
405
HTTP method not allowed
422
Rating has to be a float between 1 -5
422
Issues have to be an array of one or more than one of the following: AUDIO_LAG, BROKEN_AUDIO, CALL_DROPPPED, CALLERID_ISSUES, DIGITS_NOT_CAPTURED, ECHO, HIGH_CONNECT_TIME, LOW_AUDIO_LEVEL, ONE_WAY_AUDIO, OTHERS, ROBOTIC_AUDIO
500
Server error
* Generic response indicating error in resource used in the Post API call
** Specific response indicating the error in call UUID used in Post API call
Response attributes
HTTP status code
HTTP status code from the list above
api_id
Identifies the request
error
Indicates there’s an error and provides information regarding the error
message
Provides information regarding the feedback post
Response
HTTP Status Code: 201
{"message":"Feedback has been posted","api_id":"97ceeb52-58b6-11e1-86da-77300b68f8bb","status":"success"}
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
#
# Example for Call Feedback creation
#
importplivoclient=plivo.RestClient('<auth_id>','<auth_token>')response=client.call_feedback.create(call_uuid="b38149eb-b8fe-45d5-85b2-78ee4424788f",rating="4",issues=["AUDIO_LAG"],notes="Call quality was good")print(response)
## Example for Call Feedback creation#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.call_feedback.create('f28149eb-b8fe-45d5-85b2-78ee4424788f',4,["AUDIO_LAG"],"Call quality was good")putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Example for Call Feedback creationvarplivo=require('plivo');(functionmain(){'use strict';varclient=newplivo.Client("<auth_id>","<auth_token>");client.callFeedback.create('f18149eb-b8fe-45d5-85b2-78ee4424788f',4,issues=["AUDIO_LAG"],notes="Call quality was good").then(function(response){console.log(response);},function(err){console.error(err);});})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php/**
* Example for Call Feedback creation
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->callFeedback->create('f18149eb-b8fe-45d5-85b2-78ee4424788f',4,["AUDIO_LAG"],"Call quality was good");print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.models.callfeedback.CallFeedback;importcom.plivo.api.models.callfeedback.CallFeedbackCreateResponse;importjava.io.IOException;importjava.util.Collections;/**
* Example for Call Feedback creation
*/classCallFeedbackCreate{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");try{CallFeedbackCreateResponseresponse=CallFeedback.creator("f18149eb-b8fe-45d5-85b2-78ee4424788f",(float)4).issues(Collections.singletonList("AUDIO_LAG")).notes("Call quality was good").create();System.out.println(response);}catch(PlivoRestException|IOExceptione){e.printStackTrace();}}}
/**
* Example for Call Feedback Creation
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.CallFeedback.Create(callUUID:"a18149eb-b8fe-45d5-85b2-78ee4424788f",rating:4,issues:newList<string>{"AUDIO_LAG"},notes:"Call quality was good");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for Call Feedback creationpackagemainimport"fmt"import"github.com/plivo/plivo-go/v7"funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}issuesArr:=[]string{**"AUDIO_LAG"**}response,err:=client.CallFeedback.Create(plivo.CallFeedbackParams{CallUUID:"f18149eb-b8fe-45d5-85b2-78ee442478",Rating:"4",Issues:issuesArr,Notes:"Call quality was good"})iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Example Request
1
2
3
4
5
6
7
8
9
10
11
12
#
# Example for Call Feedback creation
#
importplivoclient=plivo.RestClient('<auth_id>','<auth_token>')response=client.call_feedback.create(call_uuid="b38149eb-b8fe-45d5-85b2-78ee4424788f",rating="4",issues=["AUDIO_LAG"],notes="Call quality was good")print(response)
## Example for Call Feedback creation#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.call_feedback.create('f28149eb-b8fe-45d5-85b2-78ee4424788f',4,["AUDIO_LAG"],"Call quality was good")putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Example for Call Feedback creationvarplivo=require('plivo');(functionmain(){'use strict';varclient=newplivo.Client("<auth_id>","<auth_token>");client.callFeedback.create('f18149eb-b8fe-45d5-85b2-78ee4424788f',4,issues=["AUDIO_LAG"],notes="Call quality was good").then(function(response){console.log(response);},function(err){console.error(err);});})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php/**
* Example for Call Feedback creation
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->callFeedback->create('f18149eb-b8fe-45d5-85b2-78ee4424788f',4,["AUDIO_LAG"],"Call quality was good");print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.models.callfeedback.CallFeedback;importcom.plivo.api.models.callfeedback.CallFeedbackCreateResponse;importjava.io.IOException;importjava.util.Collections;/**
* Example for Call Feedback creation
*/classCallFeedbackCreate{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");try{CallFeedbackCreateResponseresponse=CallFeedback.creator("f18149eb-b8fe-45d5-85b2-78ee4424788f",(float)4).issues(Collections.singletonList("AUDIO_LAG")).notes("Call quality was good").create();System.out.println(response);}catch(PlivoRestException|IOExceptione){e.printStackTrace();}}}
/**
* Example for Call Feedback Creation
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.CallFeedback.Create(callUUID:"a18149eb-b8fe-45d5-85b2-78ee4424788f",rating:4,issues:newList<string>{"AUDIO_LAG"},notes:"Call quality was good");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for Call Feedback creationpackagemainimport"fmt"import"github.com/plivo/plivo-go/v7"funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}issuesArr:=[]string{**"AUDIO_LAG"**}response,err:=client.CallFeedback.Create(plivo.CallFeedbackParams{CallUUID:"f18149eb-b8fe-45d5-85b2-78ee442478",Rating:"4",Issues:issuesArr,Notes:"Call quality was good"})iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!