API
Last updated
Kudra supports fully programmatic file upload for data extraction. The API feature is available on all packages.
Upload Files with API using Python requests:
In order to automate the upload process, Kudra offers fully programmatic file upload. Below are the file formats that can be uploaded by API:
PDF, PNG/JPG (OCR), DOCX, CSV, and TXT
In order to upload files with API to a project, simply click on the three dots on the project card and select "Preview API Code".
Select the Language type (currently support Python requests). Press Copy API Code button and paste the code into your application. Please note that the KudraCloudClient need to be installed by running 'pip install KudraCloudClient'.
To upload the files, enter a path of the directory where the files reside in the files directory variable files_dir.
Upload files with API using cURL requests:
Kudra supports file uploads using cURL requests. To do so, simply run the command below.
curl --location --request POST "<URL PROJECT>" --form "files=@<FULL PATH FILE 1>" --form "files=@<FULL PATH FILE 2>"
Make sure to specify the file paths and the project URL found in the project card by clicking on the three dots and clicking on 'Copy API Code' as shown below.
Upload files with Postman:
To upload files to Kudra with Postman, add your project URL to the POST request address, and add the key 'files' in the Body of the request. Then, add your files in the Value field and press Send.