Search
Close this search box.

< / >

APIs Configuration

21. Upload file to Mr. Wizard

URL:

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/configuration.php?api=edit_licenses

Description:

This API allows uploading files in PDF, DOCX, TXT, and PNG formats, which help enrich and optimize Mr. Wizard’s knowledge, thereby improving the quality of interactions with customers.

Note: The quality of Mr. Wizard’s responses depends on the accuracy and relevance of the content in the uploaded documents.

Benefit:

You can streamline the document upload process for training, eliminating the need to do it manually in wolkvox Manager. You can even integrate a custom user interface to manage Mr. Wizard’s training, tailored to the specific needs of your team.

How it works?

  • This API is consumed via the POST method.
  • To use this API, replace {{wolkvox_server}} in the URL with the server designation for your operation.
  • The `wolkvox-token: {{token}}` must be included in the Header for authorization.
  • Please note that a single token cannot be used simultaneously for multiple requests, so you may program the next API call to proceed only when the previous one is successful.
  • For operation tracking, data can be retrieved every 5 minutes.
  • Records download limit per call: 60,000 records.
  • Records upload limit per call: 10,000 records.
  • Date range limit for queries: 31 days.
  • Response size limit: 256 MB.
  • API consumption time limit: 60 seconds.
  • Simultaneous requests per token: 2 requests.
  • Daily token limit: Number of licenses multiplied by 1,000 tokens per day.

Request

NAMEDESCRIPTIONTYPE
wolkvox-token
Token de acceso a wolkvox Manager.
String
file
“File” field where you must upload the file to be submitted.
File

Response

NAMEDESCRIPTIONTYPE
codeResponse code.int
errorError.String
msgResponse description.String
dataArray of objects containing information about each notification.String
filenameSuccessfully uploaded file name.String
Possible response codes
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/configuration.php?api=upload_file',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('file'=> new CURLFILE('/path/to/file')),
  CURLOPT_HTTPHEADER => array(
    'wolkvox-token: {{wolkvox-token}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			

RESPONSE

				
					{
    "code": "201",
    "error": null,
    "msg": "Removed successfully"
}
				
			
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