Appearance
Download Document
Download a document.
Endpoints
Environment | API Endpoint |
---|---|
Sandbox | https://onprem-test.streamline.laboremus.ug/doc-store/api/docs/download/{id} |
Request
Request Type : GET
Authorization
INFO
Always add your Subscription key
to the request.
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
v | string | yes | The version of the API |
Path Parameters Values
Name | Type | Required | Description |
---|---|---|---|
id | string(uuid) | yes | The Unique ID of a document |
Response
Content type
application/json
Response Body
Name | Type | Description |
---|---|---|
id | string (uuid) | A GUID/UUID, a set of unique alphanumerical characters assigned to this verification request. |
createdAt | string (ISO 8601 date-time) | The timestamp when the document was created in ISO 8601 format. |
lastUpdated | string (ISO 8601 date-time) | The timestamp when the document was last updated in ISO 8601 format. |
name | string | The name of the document. |
contentType | string | The MIME type of the document (e.g., text/csv , application/pdf ). |
originalName | string | The original name of the file before it was uploaded. |
documentType | string | The type of document (e.g., Passport , National ID ). |
size | string | The size of the document file, typically in bytes or KB. |
length | number | The length of the document in bytes. |
description | string | A brief description of the document. |
reference | string | A unique reference identifier for tracking purposes. |
contents | string | The contents of the document, if applicable (e.g., text data extracted from the file). |
metadata | object | Additional metadata associated with the document, containing various key-value pairs. |
additionalProp1 | string | An additional property that can hold extra information related to the document. |
additionalProp2 | string | Another additional property that can hold extra information related to the document. |
Example Response Body
json
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2024-09-30T13:06:22.163Z",
"lastUpdated": "2024-09-30T13:06:22.163Z",
"name": "string",
"contentType": "string",
"originalName": "string",
"documentType": "string",
"size": "string",
"length": 0,
"description": "string",
"reference": "string",
"contents": "string",
"metadata": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2024-09-30T13:06:22.163Z",
"lastUpdated": "2024-09-30T13:06:22.163Z",
"name": "string",
"contentType": "string",
"originalName": "string",
"documentType": "string",
"size": "string",
"length": 0,
"description": "string",
"reference": "string",
"contents": "string",
"metadata": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
Error Response
400 Bad Request
application/json
Name | Type | Description |
---|---|---|
type | string or null | Type of error response |
title | string or null | The title of the error response |
status | integer(int32) | The status of the error response |
traceId | string or null | The traceId of the error request producing the error |
errors | object | Object defining the errors |
errors
Name | Type | Description |
---|---|---|
property | Array of strings | The definition of the errors |
401 Unauthorized
application/json
Name | Type | Description |
---|---|---|
error | object(Error) | Type of error response |
Error
Name | Type | Description |
---|---|---|
code | string or null | The Error code |
message | string or null | The Error message |
403 Forbidden
application/json
Name | Type | Description |
---|---|---|
error | object(Error) | Type of error response |
Error
Name | Type | Description |
---|---|---|
code | string or null | The Error code |
message | string or null | The Error message |
404 Not Found
application/json
Name | Type | Description |
---|---|---|
error | object(Error) | Type of error response |
Error
Name | Type | Description |
---|---|---|
code | string or null | The Error code |
message | string or null | The Error message |
500 Server Error
application/json
Name | Type | Description |
---|---|---|
error | object(Error) | Type of error response |
Error
Name | Type | Description |
---|---|---|
code | string or null | The Error code |
message | string or null | The Error message |