By using the Aculab site, you agree with our use of cookies.
right  Talk To Us!

Http Request

Each HTTP request made to your web application includes an instance info object represented as a JSON format string. You can POST or GET to make your request. The default is POST. When using POST the request body contains just the instance info JSON string. When using GET the query string contains an instance_info argument.

See also: HTTP response, actions

language wrappers and examples

The instance info properties are:

PropertyAvailabilityDescription
application instance idalwaysA string that uniquely identifies the application instance associated with this request.
tokenalwaysA user-defined string as supplied in your application's HTTP response. This defaults to null. This token will be empty for speech transcription results sent to a results page.
log filenamealwaysThe filename of the diagnostic log associated with this application instance, in on your REST Log Files store.
this callalways, except for notifications or start transcription resultsA call info object containing details of the call associated with this request. Actions returned in the corresponding response will act on this call.
action resultrequests to next page (excluding redirect) and interrupted actionsAn action result object containing a result property from the previous action or no result property if the action was interrupted by a call to the rest_interrupt web service.
action progressonly for applications that support progress notifications and only if a progress page is suppliedAn action progress object containing information on the fax session currently running.
is notification
from API V2.0
alwaysWhether this page request is a notification only and cannot determine the application call flow. If true the response to this request should be a 204 response code indicating no content.
dropped callsrequest to the final page of a connect actionAn array of call info objects containing details of any outbound calls attempted during a connect action that were dropped automatically.
error resultrequest to error page.An error result object pertaining to a previous response.
  • Examples:

    • instance info for an inbound call:

          {
              "token" : "my token id 13324",
              "application_instance_id" : "058d242936dcc5f9.47610",
              "log_filename" : "/2013/11/07/rest_16_39_23_058d242936dcc5f9.47610.log",
              "this_call" : 
              {
                  "call_id" : "058d242936dcc5f9.47610.663748630",
                  "call_direction" : "in",
                  "call_from" : "443069999876",
                  "call_to" : "443069990123",
                  "call_target" : "443069990123",
                  "call_divert": "",
                  "seconds_call_duration" : 23.9,
                  "call_state" : "answered",
                  "application_parameters" : ""
              },
              "is_notification" : false
          }