How to download files via different authorization types and CORS domain whitelisting
The document describes how to download files (call recordings, voicemails, faxes) via different types of authorization (e.g. OAuth2 token / Simple token) and via CORS domain whitelisting, which can be used to allow external integrations to access the files
Created: October 2023
Permalink: https://wildix.atlassian.net/wiki/x/B4AfEQ
Introduction
Starting from WMS 6.04.20230803.1, it is possible to download files (call recordings, voicemails, faxes) via different types of authorization (e.g. OAuth2 token / Simple token) and via CORS domain whitelisting. This can be used to allow external integrations to access the files.
How to download files
There are several ways to download files:
a) Using token:
To download a file from the PBX, add the following part to the file URL:
?token={your token}
Note: To have the possibility to download recording by OAuth2 token, the token should be placed on the Authorisation header or GET parameter “token“.
b) Using domain whitelisting:
1. Go to WMS -> PBX -> Security -> CORS
2. Enter the domain you wish to whitelist and click Save
By whitelisting the domain, you allow the domain to download files (call recordings, voicemails, faxes) for the domain.