Documents
GET
/documents/request/{documentRequestId}/get

Retrieves one document request by id, with its progress. Poll this after documents-request-create: the status moves from New through Processing to Completed, when documentId names the document record generation produced, or to Failed, when errorMessage says why. A deleted request is not returned.

When the status is Completed, read the document record named by documentId with documents-document-get, and download the file with documents-document-download by the record's urn — not by documentId. documents-request-create sets out the whole sequence.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

documentRequestId*string

Id of the document request to retrieve, as returned by documents-request-create in result.data.documentRequest.id. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches no document request, or a deleted one, returns 500 DOCUMENT_REQUEST_NOT_FOUND.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/documents/request/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/get"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "documentRequest": {        "id": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",        "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",        "documentTemplateId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",        "dataSourceId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",        "documentId": "16fd2706-8baf-433b-82eb-8c7fada847da",        "documentSolutionConfigurationId": "a3bb189e-8bf9-3888-9912-ace4e6543002",        "documentSolutionId": "d290f1ee-6c54-4b01-90e6-d701748f0851",        "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",        "ownerName": "Jane Doe",        "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",        "documentTemplateName": "Standard Invoice",        "documentSolutionConfigurationName": "Invoice - PDF to Storage",        "documentSolutionName": "Invoicing",        "dataSourceName": "Q3 Sales Report Data",        "name": "Invoice INV-2026-000123",        "title": "INV-2026-000123",        "status": "Completed",        "fileFormat": "pdf",        "deliveryMethod": "Storage",        "path": "root",        "locale": "en_IE",        "timeZone": "Europe/Dublin",        "createdDate": "2026-10-13T09:12:04.000Z",        "completedDate": "2026-10-13T09:12:19.000Z",        "lastModifiedDate": "2026-10-13T09:12:19.000Z"      }    }  },  "origin": "GET https://api.doctavian.com/v1/documents/request/{documentRequestId}/get",  "dateTime": "2026-10-13T09:12:04.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "3a7d9e1f5b2c48a6b0d4e8f2a6c0b4d8"}
{  "error": {    "statusCode": 401,    "message": "The request could not be authenticated.",    "innerErrors": [      {        "code": "UNAUTHORIZED",        "message": "The request could not be authenticated.",        "userMessage": "Your session has expired or is invalid. Please sign in again."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/request/{documentRequestId}/get",  "dateTime": "2026-01-02T12:34:56.000Z",  "operationId": "ec1103945561647246d6d5df9f02af53",  "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}
Empty
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "DOCUMENT_REQUEST_NOT_FOUND",        "message": "The document request was not found.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/request/{documentRequestId}/get",  "dateTime": "2026-10-13T09:12:04.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "6c1e8a3f9d2b47e5a0c6f4b8d2e0a6c4"}