You're seeing just the function download_attachment, go back to MailSlurpAPI.Api.EmailController module for more information.
Link to this function

download_attachment(connection, attachment_id, email_id, opts \\ [])


download_attachment(Tesla.Env.client(), String.t(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, Tesla.Env.t()}

Get email attachment bytes. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints. Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.


  • connection (MailSlurpAPI.Connection): Connection to server
  • attachment_id (String.t): ID of attachment
  • email_id (String.t): ID of email
  • opts (KeywordList): [optional] Optional parameters
    • :api_key (String.t): Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly.


} on success {:error, info} on failure