Skip to content

eVault Management

This endpoint returns an eVault object. The top-level id is the eVault ID.

GET https://sandbox.reggora.io/vendor/evault/<evault_id>

ParameterDescription
evault_idThe ID of the evault.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/vendor/evault/<evault_id>', headers=headers)
{
"data": {
"id": "5c4f16764672bb00105ea5f9",
"documents": [{
"document_name": "test.pdf",
"document_id": "24bab39a-4404-11e8-ba10-02420a050006",
"upload_datetime": "2018-04-19T15:02:02.157Z"
}]
},
"status": 200
}

This endpoint returns a file object specified by the evault ID and the document ID.

GET https://sandbox.reggora.io/vendor/evault/<evault_id>/<document_id>

ParameterDescription
evault_idThe ID of the eVault.
document_idThe ID of the document.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/vendor/evault/<evault_id>/<document_id>', headers=headers)

The above command returns a file object. The file sending is implemented with the flask send_file extension.

This endpoint allows you to upload a document to an evault. The data field in the response is the new document ID.

PUT https://sandbox.reggora.io/vendor/evault/<evault_id>

ParameterDescription
evault_idThe ID of the eVault.
ParameterDescriptionRequired
fileThe file you want to uploadTrue
file_nameThe name of the file to be uploadedFalse
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
"file": File, # Required
"file_name": "my_test.pdf" #This is an optional parameter
}
response = requests.put('https://sandbox.reggora.io/vendor/evault/<evault_id>', data=body, headers=headers)
{
"data": "24bab39a-4404-11e8-ba10-02420a050006",
"status": 200
}

This endpoint removes a document from an evault.

DELETE https://sandbox.reggora.io/vendor/evault/<evault_id>/<document_id>

ParameterDescription
evault_idThe ID of the eVault.
document_idThe ID of the document.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.delete('https://sandbox.reggora.io/vendor/evault/<evault_id>/<document_id>', headers=headers)
{
"data": "Your document has been deleted",
"status": 200
}