GET /api/user-documents 🔒 Auth Required

Get a list of all user documents for the authenticated user

📋 Endpoint Details

Method: GET
Path: /api/user-documents
Authentication: Required - Include Authorization: Bearer <token> header

📥 Response Example

{ "success": true, "message": "User documents 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 \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home