AttachmentController

Get email attachments

Get all attachments in paginated response. Each entity contains meta data for the attachment such as name and content-type. Use the attachmentId and the download endpoints to get the file contents.

get/attachments

Request

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

Query parameters

pageinteger

Optional page index for list pagination

sizeinteger

Optional page size for list pagination

sort'ASC' | 'DESC'

Optional createdAt sort direction ASC or DESC

fileNameFilterstring

Optional file name and content type search filter

sincestring date-time

Filter by created at after the given timestamp

beforestring date-time

Filter by created at before the given timestamp

inboxIdstring uuid

Optional inboxId to filter attachments by

emailIdstring uuid

Optional emailId to filter attachments by

sentEmailIdstring uuid

Optional sentEmailId to filter attachments by

includestring[]

Optional list of IDs to include in result

Response

OK

Changes

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