Search
Close this search box.
Search
Close this search box.

< / >

APIs

15. Total audio storage

URL:

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/information.php?api=storage

Description:

This API provides detailed information about the amount of disk space occupied by the audio files generated and stored in the system.

Benefits:

It allows you to monitor and manage storage usage, ensuring efficient management of available resources.

How does it work:

  • This API is consumed using the GET method.
  • To consume this API, you must replace {{wolkvox_server}} in the URL with the server nomenclature of the operation.
  • You must use the wolkvox-token: {{token}} in the Header to use the authorization token.
  • Please note that the same token cannot be consumed simultaneously, so you can program the next API to be consumed when the result of the previous one is successful.
  • In terms of time, to track your operation, you can consume the information every 5 minutes.
  • Limit of records that can be downloaded per consumption: 60,000 records.
  • Limit of records that can be uploaded per consumption: 10,000 records.
  • Limit of days consulted in dates: 31 days.
  • Limit of result weight: 256 MB.
  • Limit of API consumption time: 60 seconds.
  • Limit of simultaneous consumption of a token: 2 simultaneous requests.
  • Daily token limit: Number of licenses multiplied by 1000 daily tokens.

Request

NAMEDESCRIPTIONTYPE
apiType of report required.String
wolkvox-tokenAccess token.String
wolkvox_serverOperation server.String

Response

NAMEDESCRIPTIONTYPE
codeResponse status code. String
errorError message, if any.String
msgInformative message about the response.String
dataArrangement of objects containing information about each notification. array
storageAmount of space occupied measured in Gigabytes. String
Possible response codes
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/information.php?api=storage',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'wolkvox-token: {{wolkvox-token}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			

RESPONSE

				
					{
    "code": "200",
    "error": null,
    "msg": "x records were found",
    "data": [
        {
            "storage": ""
        }
    ]
}
				
			
We use cookies, if you continue browsing we will assume that you agree. You can read more about the use of cookies in our privacy policies and treatment of personal data