AgentController

Extract text from a scoped email attachment for an agent

Extracts bounded text only after verifying both the email scope and that the attachment belongs to that email. List attachments first instead of guessing IDs.

post/agent/emails/{emailId}/attachments/{attachmentId}/text

Request

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

Path parameters

emailIdstring uuid required
attachmentIdstring required

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.