Process file enrichment request from the agent.
This endpoint is called by the agent’s process_file_enrichment tool to trigger background processing of LinkedIn URLs with comprehensive validation and error handling.
Features:
Args: request: File processing request details with validation current_user: Authenticated user with credit information redis_cache: Redis cache instance for session management supabase_service: Supabase service instance for job tracking
Returns: ProcessFileResponse with comprehensive job details
Raises: HTTPException: For validation errors, insufficient credits, or processing failures
Documentation Index
Fetch the complete documentation index at: https://bavlio.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Response model for file enrichment processing.
Background job ID
Processing session ID
Processing status
^(queued|processing|completed|failed)$Status message
Number of URLs to process
x >= 0Estimated processing duration in minutes
Credits required for this operation
Job priority level