AttachmentController

Download attachments. 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.

get/attachments/{attachmentId}/bytes

Request

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

Path parameters

attachmentIdstring required

ID of attachment

Response

default response

Changes

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