Voice push API

Please note that access to this API is restricted to only those accounts that have voice push service enabled.
Please contact us if you are interested in this service.

HTTP interface

Text to voice requests are processed via our HTTP Post Interface at:

Outbound messages

The text to voice gateway requires an HTTP POST call with the following variables:

ParameterDescription
UsernameYour aql.com username
PasswordYour aql.com password
msisdnThe number to be dialled in international format
messageThe text to be converted to voice
dlrDataDelivery report URL [optional]
dlrTypeType of delivery report (either ‘httpget’ or ’email’) [optional]

Responses

You will receive a response from our gateway as follows:

VP_OK
Message queued for sending

This take the form of a two-line response. The first line is an error code with the second a short string describing the status.
The complete list of possible values are as follows:

Error codeDescription
VP_OKSuccess
VP_ERR_INVALIDMOBNUMThe number provided was invalid
VP_ERR_NOCREDITThere is insufficient credit to send this message
VP_ERR_INVALIDAUTHThe username or password provided were incorrect
VP_ERR_NOAUTHNo username/password pair was provided
VP_ERR_NOMSGNo message was provided

Delivery reports

If delivery reports are required you can specify a URL in the dlrData parameter which will be called when a message is confirmed as being successfully delivered.

The placeholder %code will be translated to the status code of the message which will be one of the following:

Status CodeDescription
1Confirmed Delivered (Acknowledged)
2Unable to deliver the message