attachments

Extract attachment text

Extracts and returns the plain text content of an attachment. Supports PDF, DOCX, XLSX, PPTX, images (via OCR), and other common formats. The result is cached on the message after the first extraction.

get/v1/attachments/{messageId}/{filename}/text

Request

  • Base URL: https://api.openmail.sh
  • URL: https://api.openmail.sh/v1/attachments/{messageId}/{filename}/text
  • Auth: HTTP bearer

Path parameters

messageIdstring required
filenamestring required

Response

Extracted text content

filenamestring
inboxIdstring

Inbox the parent message belongs to

contentTypestring
extractionMethodstring

Method used to extract text (e.g. pdf, docx, ocr)

textstring

Changes

No recorded changes to this operation across all 1 revision of this API.