Voice VoIP APIs

The Voice VoIP API Cluster contains a set of APIs that helps us to obtain information of voice services like VoIP.

get

Used to retrieve the RAML file in plain text form
Scopes: Not secured

get

This API allows to get the phone numbers of a VoIP group.
Scopes: To use this API, the scope read-voip-numbers is needed.

get

Used to retrieve the phonebooks of the specific voip account.
Scopes: To use this API, the scope read-voip-phonebook is needed.

get

This API contains the call history of a customers phone. The call history contains placed, received and missed calls.
Scopes: To use this API, the scope read-voip-calls is needed.

post

This API innitiates an call.
Scopes: To use this API, the scope write-voip-calls is needed and the Attribute sso.bwserialnumber bound to the token.

get

This API allows to get the current settings for the call forwarding of a phone number.
Scopes: To use this API, the scope read-voip-callforwardings is needed.

put

This API it allows to set the call forwarding configuration of a specific type.
Scopes: To use this API, the scope write-voip-callforwardings is needed.

delete

Used to delete all forwarding entries.
A further GET will deliver an empty list.

patch

This resource allows adding new phone numbers to the resource, which shall ring simultaneously. PATCH of JSON objects according to this IETF spec: https://tools.ietf.org/html/rfc7386

get

This resource returns the list of phone numbers, which ring simultaneously.

put

This resource allows to set a list of phone numbers, which ring simultaneously. The list sent in the body replaces the content of the resource. Empty lists are not allowed to be sent.

delete

Used to delete all simRing entries.
A further GET will deliver an empty list.

The callback with default body template will look as follows:

curl -ik -X POST "http://yourserver.com/call-log-notifications" -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" { "type" : "voip-call-log-change", "target" : "0312223344", "href" : "https://api.swisscom.com/voice/v1/voip/me/phonenumbers/0312223344/calls" }



The Authorization: The header wich was send during the creation of subscription in the callback object.

get

Retrieve all subscriptions for requesting user.

post

Create a new subscription.

get

Retrieve a subscription by id.

put

Edit a given subscription.

delete

Used to delete event subscription.