List company documents
GET/company/documents
Retrieves a paginated list of all documents associated with the authenticated user's company.
Access Requirements
- Authentication: Requires a valid JWT token
- Minimum Role: Company Manager (isGestor)
Key Features
- Pagination with per-page limit control
- Filtering by document type (/documents/types)
- Full history view with statuses:
pending: Pending reviewapproved: Approved by administrationrejected: Rejected with reason
Usage Flow
- Get available document types (/documents/types)
- List documents with optional filters
- Analyze metadata and statuses
- Access associated files (/files)
Technical Considerations
- All timestamps are in UTC
- Maximum of 100 documents per page
- Default sorting by creation date descending
Request
Responses
- 200
Paginated document list