Download Extraction
user-extractions
Download Extraction
Download an extraction in the specified format.
This endpoint:
- Fetches user_extractions record (validates ownership)
- Downloads JSON from extraction-files bucket using storage_path
- Parses JSON array of lead objects
- Filters columnValues.* fields and strips prefix
- Converts to requested format (CSV/Excel/JSON)
- Returns as streaming response
Args: extraction_id: The ID of the extraction to download format: Download format (csv, excel, or json) current_user: Authenticated user information settings: Application settings
Returns: File as a streaming response in the requested format
Raises: HTTPException: If extraction not found or access denied
GET
Download Extraction
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Download format: csv, excel, or json
Pattern:
^(csv|excel|json)$Response
Successful Response