Application Callout

Introduction

The Application Callout method creates a new outbound call request for a specified application. This could be used to make multiple calls from the application through a simple API.

Parameters

NameTypeDescription
SubscriptionIDstringThe subscription ID to be used
IDstringThe ID of the Application
ModelCallout ModelThe Callout details

Model

The model is passed through as a JSON body. The fields to fill out for the model are below:

NameDescription
CallerIDWhat should appear as the Caller ID
DestinationThe number to be called
ProviderThe call provider (more info - Setting up a provider)
TimeoutThe amount of time to wait before timing out (seconds)
WebhookThe URL to be used for HTTP callback. optional
MessageGroupThe group of messages the call belongs to. optional

Usage

Swagger

To use the callout feature in Swagger, enter your SubscriptionID and the ID of the application you wish to use.

Click the 'Model Schema' and enter the necessary values into the model fields.

Click the 'Try it out! button and check the response or webhook to see if it worked.

Webhook

The webhook can be used to enter a URL that will accept the HTTP callback, allowing you to see the details of the call. MessageID, Status and Message will be returned.

Webhook Model

NameTypeDescription
MessageIdGuid/stringThe unique ID of this request, available in the apps platform during a call too
StatusStatusCurrent status of the call request. See below
MessagestringAssociated message of current status
CallDetailsDetailsModelAdditional information about the call. See below

Status

These are the possible status values:

NameIntegerDescription
Received0The call was received.
Connecting1The call is connecting.
Busy

2

The line was busy when the call was made.
Connected3The call is connected.
Hangup4The call was hung up.
Failed5The call failed.

IP Addresses

Your firewall may block the Webhook, more information can be found on white listing IP Addresses on the general Webhooks page