World-class support

How can we help you today?

Device API

The device API gives access to devices. A device is typically a phone on the network, but also can represent a SIP server.

https://www.babblevoice.com/api/device

Returns a table of devices (phones or servers) the authenticated user has access to.

https://www.babblevoice.com/api/device/simplecall

  • 'f' device full address, for example 1000@omniis.babblevoice.com
  • 'd' destination, the number you wish the phone to call

Example:

https://www.babblevoice.com/api/device/simplecall?f=1000@omniis.babblevoice.com&d=somephonenumber

https://www.babblevoice.com/api/device/stats

Returns statistics for the specified device.

  • 'f' device full address, for example 1000@omniis.babblevoice.com (or comma delimited, urlencoded)
  • 's' the stat we are interested in
  • 'calls'
  • 'callsmade'
  • 'callsreceived'
  • 'quality'
  • 'callsanswered'
  • 'callspend'
  • 'x' the xform (transformation) we are interested in (i.e. average (mean) over 1 hour), if left it will return the raw data - meanhour, minhour, maxhour (for quality) sumbillday, sumbillhour, sumdurationday, sumdurationhour, countday, counthour, avhourbillsec, avdaybillsec, avhourduration, avdayduration, sumringday, sumringhour, avhourring, avdayring (available for callsanswered only), maxspendhour, maxspendday, sumspendhour, sumspendday (for callspend)
  • 't' timespan - time in seconds since unix epoch that we want to see data after
  • 'o' offset - time in seconds offset from now you want to see the data up to

https://www.babblevoice.com/api/device/secret

Returns the secret for the specified device.

https://www.babblevoice.com/api/device/spy

Spy on a call which is in progress for a specified device.

https://www.babblevoice.com/api/device/xfer

Transfer a call which is in progress for a specified device.

https://www.babblevoice.com/api/device/intercept

Intercept (pick up) a call ringing on the specified device.

https://www.babblevoice.com/api/device/phonebook

Returns the phonebook for the device.