Menu

Expand
Rate this page:

Add-on Results API

The Add-on Results API allows you to list and retrieve Add-on results.

Currently, the API only provides results for Recording Analysis Add-onsm and the data is persisted for no more than 30 days.

Recording analysis Add-on results

Add-on results exist as a subresource under the integration point with which the Add-on was configured. For Recordings, this is the Recording resource.

/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/AddOnResults/

These subresources require HTTP basic authentication to access using your Account SIS and Auth Token.

GET requests on Recording Add-on Results subresources can return one of the following representations with the appropriate extensions:

Extension Representation
.xml or none XML
.json JSON
.csv CSV

Add-on Result instance subresource

The Add-on Result instance subresource represents the result from an Add-on invoked on a specific Recording.

Sub-Resource URI

/AddOnResults/{RequestSid}

Resource properties

An Add-on Result resource is represented by the following properties:

Resource Properties in REST API format
sid
sid<XR> Not PII

The unique string that that we created to identify the Recording AddOnResult resource.

account_sid
sid<AC> Not PII

The SID of the Account that created the Recording AddOnResult resource.

status
enum:status Not PII

The status of the result. Can be: canceled, completed, deleted, failed, in-progress, init, processing, queued.

add_on_sid
sid<XB> Not PII

The SID of the Add-on to which the result belongs.

add_on_configuration_sid
sid<XE> Not PII

The SID of the Add-on configuration.

date_created
date_time<rfc2822> Not PII

The date and time in GMT that the resource was created specified in RFC 2822 format.

date_updated
date_time<rfc2822> Not PII

The date and time in GMT that the resource was last updated specified in RFC 2822 format.

date_completed
date_time<rfc2822> Not PII

The date and time in GMT that the result was completed specified in RFC 2822 format.

reference_sid
sid<RE> Not PII

The SID of the recording to which the AddOnResult resource belongs.

subresource_uris
uri_map Not PII

A list of related resources identified by their relative URIs.

subresource_uris contains the following properties :

Property Description
payloads URL pointing to the Payload sub-resource

HTTP GET

Returns a single instance of an Add-on Result associated with the given parent resource.

Loading Code Sample...
        
        

        Get Add-on Result for a recording

        HTTP POST

        Unsupported.

        HTTP DELETE

        Deleting the Add-on Result will delete the result record and purge all associated Payloads. Successful responses will return no content.

        Add-on Results List subresource

        The Add-on Results list subresource represents the set of results from Add-ons invoked on a specific recording.

        Subresource URI

        /AddOnResults/
        

        Resource properties

        The Add-on Results list subresource is represented by the following properties:

        Property Description
        add_on_results List of Add-on Result Instances

        HTTP GET

        Returns a list of Add-on Result instances associated with the given parent resource.

        Loading Code Sample...
              
              

              Get all Add-on results for a given recording

              HTTP POST

              Unsupported.

              HTTP DELETE

              Unsupported.

              Add-on Result Payload instance subresource

              The Add-on Results Payload subresource exposes the multiple types of Payloads that may be included in an Add-on Result.

              Subresource URI

              /AddOnResults/{RequestSid}/Payloads/{PayloadSid}
              

              Resource properties

              An Add-on Results Payload resource is represented by the following properties:

              Resource Properties in REST API format
              sid
              sid<XH> Not PII

              The unique string that that we created to identify the Recording AddOnResult Payload resource.

              add_on_result_sid
              sid<XR> Not PII

              The SID of the AddOnResult to which the payload belongs.

              account_sid
              sid<AC> Not PII

              The SID of the Account that created the Recording AddOnResult Payload resource.

              label
              string Not PII

              The string provided by the vendor that describes the payload.

              add_on_sid
              sid<XB> Not PII

              The SID of the Add-on to which the result belongs.

              add_on_configuration_sid
              sid<XE> Not PII

              The SID of the Add-on configuration.

              content_type
              string Not PII

              The MIME type of the payload.

              date_created
              date_time<rfc2822> Not PII

              The date and time in GMT that the resource was created specified in RFC 2822 format.

              date_updated
              date_time<rfc2822> Not PII

              The date and time in GMT that the resource was last updated specified in RFC 2822 format.

              reference_sid
              sid<RE> Not PII

              The SID of the recording to which the AddOnResult resource that contains the payload belongs.

              subresource_uris
              uri_map Not PII

              A list of related resources identified by their relative URIs.

              subresource_uris contains the following properties :

              Property Description
              data URL pointing to the Data sub-resource

              HTTP GET

              Returns a single instance of a Payload associated with the given Add-on Result.

              Loading Code Sample...
                    
                    

                    Get Add-on Result Payload metadata

                    HTTP POST

                    Unsupported.

                    HTTP DELETE

                    Unsupported.

                    Add-on Result Payloads List subresource

                    The Add-on Results Payload List subresource exposes the multiple types of Payloads that may be in included in an Add-on Result.

                    Subresource URI

                    /AddOnResults/{RequestSid}/Payloads
                    

                    Resource properties

                    The Add-on Result Payloads list subresource is represented by the following properties:

                    Property Description
                    payloads List of Add-on Result Payload Instances

                    HTTP GET

                    Returns a list of Payload resource instances describing the data returned by Vendors as part of the Add-on Result.

                    Loading Code Sample...
                          
                          

                          Get all Add-on Result Payloads

                          HTTP POST

                          Unsupported.

                          HTTP DELETE

                          Unsupported.

                          Add-on Result Payload Data subresource

                          The Payload Data subresource hosts the actual data returned by the Add-on. GET requests issued to this subresource will receive a 307 redirect to a signed URL to the Payload. Clients will need to follow the redirect to receive the data associated with a Payload resource.

                          Subresource URI

                          /AddOnResults/{RequestSid}/Payloads/{PayloadSid}/Data
                          

                          HTTP GET

                          Returns a 307 redirect to a signed URL to the Payload.

                          Example

                          GET /2010-04-01/Accounts/AC...../Recordings/RE.../AddOnResults/XR000.../Payloads/XH000.../Data

                          HTTP/1.1 307
                          Server: nginx
                          Date: Tue, 08 Nov 2016 22:43:19 GMT
                          Location: {SignedUrl}
                          
                          Loading Code Sample...
                                
                                

                                Get Add-on Result Payload Data

                                HTTP POST

                                Unsupported.

                                HTTP DELETE

                                Unsupported.

                                Rate this page:

                                Need some help?

                                We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                                Loading Code Sample...
                                      
                                      
                                      

                                      Thank you for your feedback!

                                      Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                                      Sending your feedback...
                                      🎉 Thank you for your feedback!
                                      Something went wrong. Please try again.

                                      Thanks for your feedback!

                                      thanks-feedback-gif