Basic information
phonebridge® provides an RESTful API to be able to use its backend without using the public frontend. You can download API description (*.yml) and upload it for example to Swagger Editor in order to see and test functionality. Furthermore there you can even generate working client code written in nearly any programming or script language (Java, Python, C#, PHP, JavaScript,...).
Authorization
You need to register a free account first to use this API.
Afterwards you can authenticate with common JWT mechanism with Bearer token:
- Send username and password to endpoint /api/authenticate and receive a token.
Example:
curl -X POST "https://app.phonebridge.io:443/api/authenticate" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"email\":\"XXX@XXX.de\",\"password\":\"XXX\"}"
Result:
{"id_token":"XXX-XXX"} - Use any endpoint by providing your token. Replace "XXX-XXX" with the token received with step 1.
Example:
curl -X GET "https://app.phonebridge.io:443/api/users/me/connectors" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer XXX-XXX"
phonebridge® Full API
Releases
Release date | Version | Download | Changelog |
---|---|---|---|
29.01.2020 | 1.0.1 | phonebridge-webapp-API-1.0.1.yml |
|
18.02.2020 | 1.2 | phonebridge-webapp-API-1.2.yaml |
|
19.02.2020 | 1.2.2 | phonebridge-webapp-API-1.2.2.yaml |
|
19.02.2020 | 1.2.3 | phonebridge-webapp-API-1.2.3.yaml |
|
26.02.2020 | 1.3.2 | phonebridge-webapp-API-1.3.2.yaml |
|
28.02.2020 | 1.3.4 | phonebridge-webapp-API-1.3.4.yaml |
|
19.03.2020 | 1.3.5 | phonebridge-webapp-API-1.3.5.yaml |
|
27.03.2002 | 1.3.7 | phonebridge-webapp-API-1.3.7.yaml |
|
06.08.2020 | 1.3.8 | phonebridge-webapp-API-1.3.8.yaml |
|
Connector config parameters
Direction | Connector type | Key | Examples |
Source | Public Exchange | application.source.public-exchange.enabled |
|
application.source.public-exchange.server.url | |||
application.source.public-exchange.server.email | |||
application.source.public-exchange.server.password | |||
application.source.public-exchange.server.auto-discovery-enabled |
|
||
application.source.public-exchange.contacts.folders |
|
||
Personal Exchange | application.source.personal-exchange.enabled |
|
|
application.source.personal-exchange.server.url | see application.source.public-exchange.server.url | ||
application.source.personal-exchange.server.email | |||
application.source.personal-exchange.server.password | |||
application.source.personal-exchange.server.auto-discovery-enabled |
|
||
Target | Deutsche Telefon | application.target.dtst.enabled |
|
application.target.dtst.login | |||
application.target.dtst.password | |||
application.target.dtst.service-id | |||
application.target.dtst.base-url |
|
||
application.target.dtst.client-id | |||
application.target.dtst.client-secret | |||
LDAP |
application.target.ldap.enabled |
|
|
application.target.ldap.url |
|
||
application.target.ldap.user |
|
||
application.target.ldap.company |
|
||
application.target.ldap.password |
phonebridge® CLIENT API
The phonebridge® CLIENT API is a subset of the complete phonebridge® API. It only contains endpoints and entities required by 3rd party vendors for creating and managing the phonebridge® CLIENT.
Its aim is to simplify development specifically for the phonebridge® CLIENT, which does not require a 3rd party developer to implement the whole phonebridge® API.
Releases
Release date | Version | Download | Changelog |
---|---|---|---|
04.08.2020 | 1.3.8 | phonebridge-client-API-1.3.8.yml |
|
cURL Example
Use this commandline example to see how authentication, creating a phonebridge® CLIENT and deleting the same works:
First authenticate and receive a Bearer token for this session:
curl -d '{"email":"YOUR_EMAIL_ADDRESS","password":"YOUR_PASSWORD"}' -H "Content-Type: application/json" -X POST https://app.phonebridge.io:443/api/authenticate
Then use this Bearer token to create a phonebridge® CLIENT with the memo "Max Mustermann" and to receive the CLIENT ID:
curl -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_BEARER_TOKEN" -d '{"name": "Max Mustermann"}' -X POST https://app.phonebridge.io:443/api/users/me/clients
Then use Bearer token again to delete this phonebridge® CLIENT by ID:
curl -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_BEARER_TOKEN" -X DELETE https://app.phonebridge.io:443/api/clients/YOUR_CLIENT_ID
Technical support
Visit our website to see all available channels to get in touch with us.