Chabad Library Text Processing API
  1. Processing
Chabad Library Text Processing API
  • System
    • Health Check
      GET
  • Search
    • Search Chabad Library
      GET
  • Texts
    • List All Texts
      GET
    • Get Text by Slug
      GET
  • Extraction
    • Test Chabad Library API
      GET
    • Extract Text from Document
      POST
  • Processing
    • Generate Document Outline
      POST
    • Process Complete Document
      POST
    • Translate Document Segment
      POST
  • Schemas
    • HealthResponse
    • ErrorResponse
    • SourceMetadata
    • OutlineSegment
    • DocumentOutline
    • TranslationData
    • Footnote
    • TranslatedSegment
    • EnrichedSegment
    • ProcessedDocument
    • SearchResult
    • SearchResultsResponse
    • WorkByIdResponse
    • NavSearchResult
    • TextListItem
    • NavSearchResultsResponse
    • PaginationInfo
    • PaginatedTextsResponse
  1. Processing

Process Complete Document

POST
/api/process
Complete document processing pipeline: uploads file, generates outline, translates all segments, creates HTML documents, and uploads to Google Drive. This is a comprehensive endpoint that performs the full workflow from PDF to translated HTML documents.

Request

Query Params

Body Params multipart/form-dataRequired

Responses

馃煝200Success
application/json
Processing complete with Google Drive links
Body

馃煚400400
馃敶500500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/process?provider' \
--form 'file=@""'
Response Response Example
200 - Example 1
{
    "success": true,
    "outline": {
        "source_metadata": {
            "publication_title": "诇拽讜讟讬 砖讬讞讜转",
            "work_title": "转专讜诪讛 - 砖讬讞讛 讗",
            "author_name": "讻\"拽 讗讚诪讜\"专"
        },
        "outline_segments": [
            {
                "sequence_id": 0,
                "chapter_number": "string",
                "chapter_title": "string",
                "segment_title": "string",
                "summary": "string",
                "page_ref": "string",
                "start_phrase_hebrew": "string",
                "end_phrase_hebrew": "string"
            }
        ]
    },
    "documents": {
        "full": {},
        "englishOnly": {}
    }
}
Modified at聽2025-12-03 11:51:17
Previous
Generate Document Outline
Next
Translate Document Segment
Built with