v2

latestOpenAPI 3.1.02026-07-262937191.0 MB
beta.libraries.documents

Retrieve the text content of a specific document.

Given a library and a document in that library, you can retrieve the text content of that document if it exists. For documents like pdf, docx and pptx the text content results from our processing using Mistral OCR.

get/v1/libraries/{library_id}/documents/{document_id}/text_content

Path parameters

library_idstring uuid required
document_idstring uuid required

Query parameters

page_startinteger nullable
page_endinteger nullable

Response

Successful Response

textstring required