Skip to main content

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 review
    • approved: Approved by administration
    • rejected: Rejected with reason

Usage Flow

  1. Get available document types (/documents/types)
  2. List documents with optional filters
  3. Analyze metadata and statuses
  4. 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

Paginated document list