This method allows you to create a temporary URL (meaning it will expire after a few seconds, so that we can allow access to third-parties without requiring authentication) to be passed to your web apps.
Method parameters
Parameter Name | Description | Allowed Values | Default Value | Optional |
---|---|---|---|---|
file_name | file that you want to allow access to | any valid callrecording file name | none | no |
Examples using curl
Example 1: File exists
$ curl -u 'DOMAIN_NAME:API_TOKEN' https://bcs.brastel.com/basix/api/gen_callrecording_url -X POST -H 'Content-Type: application/json' -d '{"file_name": "ede7b23e-c172-445e-832e-963b11ba2b96.mp3"}'
Example 2: File doesn't exist (expired, deleted):
$ curl -u 'DOMAIN_NAME:API_TOKEN' https://bcs.brastel.com/basix/api/gen_callrecording_url -X POST -H 'Content-Type: application/json' -d '{"file_name": "ede7b23e-c172-445e-832e-963b11ba2b96.mp3"}'
{"result_code": 500, "error": {"id": "file_not_found"}}