Document Classification UI

Secure document viewer with backend API authentication

PDF Viewer
View PDF documents with extracted field data and confidence scores
Secure Authentication
Multiple auth methods: JWT tokens, API keys, and document tokens
Backend API Integration
All document data fetched from secure backend API endpoints
Document Assignment
Time-limited document access with assignment tracking
Authentication Methods
Three authentication methods supported (in priority order)

1JWT Token Authentication

User-based authentication with documents:read permission

2API Key Authentication

Service-to-service authentication for automated workflows

3Document Access Token

Temporary, single-document access with expiration

Backend API Integration
All document data fetched from backend API

API Endpoint

GET https://dc-api.rnd.2bv.io/api/documents/[document_id]

Response Structure

fieldsDataExtracted document fields with confidence scores
pdfUrlSecure PDF document URL
statusDocument status (assigned, completed, expired)
assignedToCurrent reviewer assignment
Built With
Next.js 15React 19TypeScriptTailwind CSSshadcn/uiBackend APIJWT/API Key Auth