ReferenceFilesExtract text

    Extract the text of a file

    Multipart upload: `file` (required), optional `format` (`markdown` default, flattened prose; `html` keeps headings, lists and tables for `.docx`/`.html`),…

    POST
    /files/extract-text

    Multipart upload: file (required), optional format (markdown default, flattened prose; html keeps headings, lists and tables for .docx/.html), optional fileName / mimeType overrides. Reads .docx, .pdf, images, .html and text files as text; PDFs and images are transcribed by AI and billed to the organization. Nothing is stored. Max 25 MB. API keys need attachments:analyze. Same pipeline as MCP extract_file_text.

    Authorization

    bearerAuth
    AuthorizationBearer <token>

    In: header

    Response Body

    application/json

    application/json

    application/json

    application/json

    application/json

    curl -X POST "https://example.com/files/extract-text"
    {  "bytes": 0,  "fileName": "string",  "format": "markdown",  "mimeType": "string",  "text": "string"}