AttachmentController

Extract text from an attachment

Extract text content from an attachment using the requested method. NATIVE decoding supports text-like files, common Word and spreadsheet documents, and PDFs with embedded text.

post/attachments/{attachmentId}/text

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/attachments/{attachmentId}/text
  • Auth: API key in header x-api-key

Path parameters

attachmentIdstring required

ID of attachment

Request body

method'AUTO' | 'NATIVE' | 'OCR' | 'LLM' | 'OCR_THEN_LLM' nullable

Method for extracting text from attachments.

allowFallbackboolean

Allow fallback to native extraction when the selected method is unavailable.

maxBytesinteger nullable

Maximum bytes to read from attachment for native text extraction.

Response

OK

Changes

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