Get Document by ID
Method: GET
/api/v1/documents/{documentId}
Description
This endpoint retrieves a specific document based on the provided documentId.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
userId | {{userId}} | string |
tenantId | {{tenantId}} | string |
Path Parameter
| Name | Type | Description |
|---|---|---|
documentId | string | The unique ID of the document to retrieve. |
Response: 200 OK
A successful response returns the requested document details.
Example Response:
{
"documentId": "12345",
"name": "Invoice",
"type": "PDF",
"createdAt": "2025-02-12T04:04:39.986Z",
"url": "https://example.com/document.pdf",
"metadata": {
"description": "Monthly invoice document",
"tags": ["invoice", "monthly", "financial"]
}
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/documents/{documentId} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!