beta.libraries.documents
Retrieve the text content of a specific document.
Changed onGiven 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
Request
- Base URLhttps://api.mistral.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
library_idstring uuid required
document_idstring uuid required
Query parameters
page_startinteger nullable
page_endinteger nullable
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterpage_end - info
added the new optional
queryrequest parameterpage_start
- info
- info
endpoint added
- info