Skip to content

Retrieve Document Export Results

After submitting a request to export documents from your Vault, you can query your Vault to determine the results of the request.

Before submitting this request:

  • You must have previously requested a document export job (via the API) which is no longer active.
  • You must have a valid job_id value (retrieved from the document export binder request).
  • You must be a Vault Owner, System Admin or the user who initiated the job.
GET/api/{version}/objects/documents/batch/actions/fileextract/{jobid}/results
NameDescription
Acceptapplication/json (default) or application/xml
NameDescription
{job_id}The id value of the requested export job. This is returned with the export document requests.
curl -X GET -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v25.3/objects/documents/batch/actions/fileextract/82701/results
{
    "responseStatus": "SUCCESS",
    "data": [
        {
            "responseStatus": "SUCCESS",
            "id": 23,
            "major_version_number__v": 0,
            "minor_version_number__v": 1,
            "file": "/82701/23/0_1/New Document.png",
            "user_id__v": 88973
        }
    ]
}

On SUCCESS, the response includes the following information:

Field NameDescription
job_idThe Job ID value of the document export request.
idThe id value of the exported document.
major_version_number__vThe major version number of the exported document.
minor_version_number__vThe minor version number of the exported document.
fileThe path on the file staging.
user_id__vThe id value of the Vault user who initiated the document export job.