Insight allows users to configure their outbound calls to automatically send the status of each outbound call to a REST service upon completion. To do so, it is necessary to provide a result_url when queuing the outbound calls.
Insight provides three different ways to accomplish this: queuing through the Outbound UI, queuing a single outbound call through the Queue Call API , and queuing multiple outbound calls via the Bulk Queue API.
The result_url callback will be POSTed to when the outbound call completes, when all outbound attempts are exhausted, or when the outbound call is canceled. The body of this request will be identical to the
call_details element in the Outbound Call Status API method.
The following parameters will be POSTed to your result_url:
Call outcome: 'completed', 'canceled', 'failed', 'rejected'
Number of outbound attempts that were made
Total number of call attempts to be made
Timestamp of when the call was queued
Timestamp of the last time the call was attempted
Timestamp of when the calls were scheduled to begin. If not supplied when queuing, this will be an empty value
Timestamp of when the calls were scheduled to no longer make attempts. If not supplied when queuing, this will be an empty value
Time (in seconds) to wait between call re-try attempts
Array of call events, including the timestamp of the event