📋 Endpoint Details
Method:
GET
Path:
/api/user-documents/:id
Authentication:
Required - Include Authorization: Bearer <token> header
📥 Response Example
{
"success": true,
"message": "Document fetched successfully",
"data": {
"_id": "...",
"userId": "...",
"templateId": "...",
"currencyId": {
"_id": "...",
"currencyName": "US Dollar",
"currencyCode": "USD",
"status": "active"
},
"status": "free",
"content": [],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
💡 Usage Tips
cURL Example:
curl -X GET \
http://localhost:3000/api/user-documents/:id \
-H "Authorization: Bearer YOUR_TOKEN_HERE"