imports

Analyze Import

Analyze import request to determine add/update/skip status for each document.

This endpoint receives file metadata (not file contents) from the frontend and analyzes which documents should be added, updated, skipped, or failed based on existing documents in the workspace.

Args: analysis_request: Request containing workspace_id and documents metadata db: Database session current_user: Authenticated user

Returns: ImportAnalysisResponse with document statuses and summary

Raises: HTTPException: If workspace doesn't exist or other validation errors occur

post/imports/analyze

Request

  • Base URL
    https://extralit-public-demo.hf.space/api/v1
  • URL
    https://extralit-public-demo.hf.space/api/v1/imports/analyze
  • Auth
    • API key in header X-Extralit-Api-Key
    • or HTTP bearer

Request body

workspace_idstring uuid required

Target workspace ID

documentsobject required

Reference key to file metadata mapping

Response

Successful Response

documentsobject required

Reference key to document info mapping

Changes

No recorded changes to this operation across all 7 revisions of this API.