MailSlurp API reference
Search MailSlurp REST endpoints, inspect request and response schemas, copy HTTP snippets, and jump to SDK guides.
API key
Send your MailSlurp API key in the x-api-keyheader. Create and rotate keys from the dashboard, then use the snippets below to call the same REST endpoints used by MailSlurp SDKs.
Tools and SDKs
Use the REST API directly, import the OpenAPI definition, run requests in Postman, or start with an official SDK.
653 endpoints, 642 schemas
API guides
Endpoints
Search operations by path, method, controller, parameter, schema, or operation ID. Each endpoint has a stable anchor for deep links.
Showing 653 endpoints and 642 schemas
No API reference results match that filter.
Inbox
67 operations from InboxController
/inboxesDelete all inboxes
Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxesList Inboxes and email addresses
List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxesCreate an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes.
Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}Delete inbox
Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}Get Inbox. Returns properties of an inbox.
Returns an inbox's properties, including its email address and ID.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}Update Inbox. Change name and description. Email address is not editable.
Update editable fields on an inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}Send Email
Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/confirmSend email and return sent confirmation
Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/deleteAllInboxEmailsDelete all emails in a given inboxes.
Deletes all emails in an inbox. Be careful as emails cannot be recovered
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/delivery-statusgetDeliveryStatusesByInboxId
Get all email delivery statuses for an inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/emailsGet emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead.
List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/emails/countGet email count in inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/emails/importImport email into inbox from base64 MIME
Imports a raw RFC822/MIME email into the specified inbox regardless of the original `To` header. V1 accepts MIME-family formats such as `.eml`, `message/rfc822`, and raw MIME bytes only. Outlook `.msg`, `mbox`, and `maildir` are not supported in V1. By default MailSlurp rewrites the MIME `Message-ID` header to avoid imported message identity clashes. Set `runPipeline=true` to run the normal inbound receive pipeline after persistence.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/emails/import/multipartImport email into inbox from multipart EML upload
Imports an uploaded RFC822/MIME file into the specified inbox regardless of the original `To` header. Intended for `.eml` uploads and other MIME-family raw email files. V1 does not support Outlook `.msg`, `mbox`, or `maildir`. By default MailSlurp rewrites the MIME `Message-ID` header to avoid imported message identity clashes.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/emails/import/rawImport email into inbox from raw MIME bytes
Imports a raw RFC822/MIME email stream into the specified inbox regardless of the original `To` header. Supports `message/rfc822` and `application/octet-stream`. V1 does not support Outlook `.msg`, `mbox`, or `maildir`. By default MailSlurp rewrites the MIME `Message-ID` header to avoid imported message identity clashes.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/emails/paginatedGet inbox emails paginated
Get a paginated list of emails in an inbox. Does not hold connections open.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/favouriteSet inbox favourited state
Set and return new favorite state for an inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/plus-addressesGet sub address plus address aliases for an inbox
Returns paginated list of all plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/plus-addresses/{plusAddressId}Get sub address plus address for an inbox
Returns a plus address object based on emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/plus-addresses/{plusAddressId}/emailsGet emails for a given inbox plus address
Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/plus-addresses/emailsGet emails for a given inbox plus address
Returns paginated list of all emails for a given plus alias addresses found for an inbox based on received emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/plus-addresses/get-or-createGet or create a plus address by full address
Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/rulesetsList inbox rulesets
List all rulesets attached to an inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/rulesetsCreate an inbox ruleset
Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/scheduled-jobsGet all scheduled email sending jobs for the inbox
Schedule sending of emails using scheduled jobs.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/send-test-emailSend a test email to inbox
Send an inbox a test email to test email receiving is working
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/sentGet Inbox Sent Emails
Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/sent/countGet sent email count in inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/smtp-envelopeSend email using an SMTP mail envelope and message body and return sent confirmation
Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/tracking-pixelsList inbox tracking pixels
List all tracking pixels sent from an inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/with-queueSend email with queue
Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/with-scheduleSend email with with delay or schedule
Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/automationsDoes inbox have automations
Check if an inbox has automations.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/availableIs email address available
Returns whether an email address is available
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/by-descriptionDelete inboxes by description
Permanently delete all inboxes by description
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/by-nameDelete inboxes by name
Permanently delete all inboxes by name
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/by-tagDelete inboxes by tag
Permanently delete all inboxes by tag
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/byEmailAddressSearch for an inbox with the provided email address
Get a inbox result by email address
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/existsDoes inbox exist
Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/expiredRemove expired inboxes
Remove any expired inboxes for your account (instead of waiting for scheduled removal on server)
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/get-or-create-plus-addressGet or create a plus address by full address without inbox ID
Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Resolves the base inbox from the full address for the authenticated user, then returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/getLatestEmailGet latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
Get the newest email in an inbox or wait for one to arrive
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/imap-accessgetImapAccess
Get IMAP access usernames and passwords
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/imap-accessupdateImapAccess
Update IMAP access usernames and passwords
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/imap-smtp-accessgetImapSmtpAccess
Get IMAP and SMTP access usernames and passwords
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/imap-smtp-access/envgetImapSmtpAccessEnv
Get IMAP and SMTP access details in .env format
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/imap-smtp-access/serversgetImapSmtpAccessServers
Get IMAP and SMTP server hosts
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/offset-paginatedList All Inboxes Offset Paginated
List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/organizationList Organization Inboxes Paginated
List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/outboxesList all inboxes with sent emails
List inboxes that have sent emails
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/paginatedList All Inboxes Paginated
List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/plus-addressesGet all sub address plus address aliases for an inbox
Returns paginated list of all plus alias addresses found for in account based on received emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/plus-addresses/{plusAddressId}Get sub address plus address by ID
Returns a plus address object based on emails that used the inbox address with a +xyz alias.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/scheduled-jobsGet all scheduled email sending jobs for account
Schedule sending of emails using scheduled jobs. These can be inbox or account level.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/scheduled-jobs/{jobId}Cancel a scheduled email job
Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/scheduled-jobs/{jobId}Get a scheduled email job
Get a scheduled email job details.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/searchSearch all inboxes and return matching inboxes
Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/smtp-accessgetSmtpAccess
Get SMTP access usernames and passwords
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/smtp-accessupdateSmtpAccess
Update SMTP access usernames and passwords
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/withDefaultsCreate an inbox with default options. Uses MailSlurp domain pool address and is private.
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/withOptionsCreate an inbox with options. Extended options for inbox creation.
Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
51 operations from EmailController
/emailsDelete all emails in all inboxes.
Deletes all emails for the authenticated account context. This operation is destructive and cannot be undone.
Parameters and SDK references
Responses
HTTP and code snippets
/emailsGet all emails in all inboxes in paginated form. Email API list all.
Primary paginated email listing endpoint. Returns emails across inboxes with support for inbox filters, unread-only, search, date boundaries, favourites, connector sync, and plus-address filtering.
Parameters and SDK references
Responses
HTTP and code snippets
/emailsSend email
Sends an email from an existing inbox, or creates a temporary inbox when `inboxId` is not provided. Supports `useDomainPool` and `virtualSend` inbox creation behavior for convenience sends.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}Delete an email
Deletes a single email from account scope. Operation is destructive and not reversible.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}Get hydrated email (headers and body)
Returns parsed email content including headers and body fields. Accessing hydrated content may mark the email as read depending on read-state rules.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}Reply to an email
Sends a reply using the original conversation context (subject/thread headers). Reply target resolution honors sender/reply-to semantics.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/attachmentsList attachment metadata for an email
Returns metadata for all attachment IDs associated with the email (name, content type, size, and IDs).
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/attachments/{attachmentId}Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string.
Returns attachment bytes by attachment ID. Use attachment IDs from email payloads or attachment listing endpoints.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/attachments/{attachmentId}/base64Get email attachment as base64 encoded string as an alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`.
Returns attachment payload as base64 in JSON. Useful for clients that cannot reliably consume binary streaming responses.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/attachments/{attachmentId}/metadataGet email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods.
Returns metadata for a specific attachment ID (name, content type, and size fields).
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/auditPersist aggregate email audit for a stored email
Runs the aggregate audit bundle for the target email and stores the resulting audit record for later review and history tracking.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/bodyGet email body as string. Returned as `plain/text` with content type header.
Returns hydrated email body text as a string with content type aligned to the underlying body format.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/body-bytesGet email body in bytes. Returned as `octet-stream` with content type header.
Streams hydrated email body bytes with content type derived from the message body format.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/check-email-auditRun aggregate email audit for a stored email
Runs the same message-level audit bundle used by the email audit dashboard in one request. Combines content checks, HTML validation, compatibility analysis, and reputation verdict rollup when available.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/check-email-bodyCheck email body for broken links, images, and spelling issues
Runs content quality checks against hydrated email body content. This endpoint performs outbound HTTP checks for linked resources, so avoid use with sensitive or stateful URLs.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/check-email-body-feature-supportCheck client support for features used in a stored email body
Detects HTML/CSS features in the target email body and reports compatibility across major email clients and devices.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/codesExtract verification codes from an email
Extracts one-time passcodes and similar tokens from email content using the selected extraction method and fallback options.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/contentMatchRun regex against hydrated email body and return matches
Executes a Java regex pattern over hydrated email body text and returns the full match plus capture groups. Pattern syntax follows Java `Pattern` rules.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/contentPartGet email content part by content type
Extracts one MIME body part by `contentType` and optional `index`, returned in a structured DTO with metadata.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/contentPart/rawGet multipart content part as raw response
Extracts one MIME body part by `contentType` and optional `index`, and returns raw content with matching response content type when valid.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/favouriteSet email favourited state
Sets favourite state for an email for dashboard/search workflows.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/forwardForward email to recipients
Forwards an existing email to new recipients. Uses the owning inbox context unless overridden by allowed sender options.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/htmlGet hydrated email HTML for browser rendering
Returns hydrated HTML body directly with `text/html` content type. Supports temporary access/browser usage and optional CID replacement for inline asset rendering.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/html/jsonGet hydrated email HTML wrapped in JSON
Returns hydrated HTML body and subject in a JSON DTO. Useful for API clients that need structured response payloads instead of raw HTML responses.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/htmlQueryQuery hydrated HTML body and return matching text lines
Applies a JSoup/CSS selector to hydrated HTML email body and returns matching text lines.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/imap-flag-operationSet IMAP flags associated with a message. Only supports '\Seen' flag.
Applies RFC3501 IMAP flag operations on a message. Current implementation supports read/unread semantics via the `\\Seen` flag only.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/linksExtract links from an email HTML body
Parses HTML content and extracts link URLs (`href`). For non-HTML emails this endpoint returns a validation error.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/rawGet raw email string. Returns unparsed raw SMTP message with headers and body.
Returns the original unparsed SMTP/MIME message as `text/plain`. Use JSON variant if your client expects JSON transport.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/raw/jsonGet raw email in JSON. Unparsed SMTP message in JSON wrapper format.
Returns the original unparsed SMTP/MIME message wrapped in a JSON DTO for API clients that avoid plain-text stream responses.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/readMark an email as read or unread
Sets read state for one email. Useful when implementing custom mailbox workflows that treat viewed messages as unread.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/screenshot/base64Take a screenshot of an email in a browser and return base64 encoded string
Renders the email in a browser engine and returns PNG data as base64. Useful for APIs and dashboards that cannot easily stream binary responses.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/screenshot/binaryTake a screenshot of an email in a browser
Renders the email in a browser engine and returns PNG bytes. Intended for visual QA and rendering regression checks.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/signatureExtract signature from an inbound email
Attempts to parse a sender signature block from an email body. Uses raw MIME content parts when possible and falls back to hydrated body parsing. This is heuristic and may not be accurate for all email clients or formats.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/summaryGet email summary (headers/metadata only)
Returns lightweight metadata and headers for an email. Use `getEmail` for hydrated body content or `getRawEmail` for original SMTP content.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/textLinesExtract normalized text lines from email body
Converts email body content to line-based plain text with optional HTML entity decoding and custom line separator.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/urlsGet email URLs for viewing in browser or downloading
Returns precomputed URLs for preview and raw message access for the specified email.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/{emailId}/validateValidate email HTML contents
Runs HTML validation on the email body when HTML is present. Non-HTML emails are treated as valid for this check.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/can-sendCheck whether an email send would be accepted
Validates sender/inbox context and recipient eligibility before attempting a send. Useful for preflight checks in UI or test workflows.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/check-email-client-supportCheck email-client support for a provided HTML body
Evaluates HTML/CSS features in the supplied body and reports support coverage across major email clients and platforms.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/emails/countGet email count
Returns total email count for the authenticated user, or count scoped to a specific inbox when `inboxId` is provided.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/gravatarForGet Gravatar URL for an email address
Builds a Gravatar image URL from the provided email address and optional size. This endpoint does not fetch image bytes; it only returns the computed URL.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/latestGet latest email in all inboxes. Most recently received.
Returns the most recently received email across all inboxes or an optional subset of inbox IDs.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/latestInGet latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
Returns the newest email for the specified inbox ID. For polling/wait semantics use wait endpoints.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/offset-paginatedGet all emails in all inboxes in paginated form. Email API list all.
Offset-style pagination endpoint for listing emails across inboxes. Supports inbox filters, unread-only, search, date boundaries, favourites, connector sync, plus-address filtering, and explicit include IDs.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/organizationList organization-visible emails
Returns paginated emails visible through organization/team access. Supports inbox filtering, unread-only filtering, search, favourites, plus-address filtering, and optional connector sync.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/readMark all emails as read or unread
Sets read state for all emails, optionally scoped to one inbox. Use `read=false` to reset unread state in bulk.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/searchGet all emails by search criteria. Return in paginated form.
Searches emails by sender/recipient/address/subject/id fields and returns paginated matches. Does not perform full-text body search.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/threadsList email threads in paginated form
Lists conversation threads inferred from `Message-ID`, `In-Reply-To`, and `References`. Supports filtering by inbox, search text, and time range.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/threads/{threadId}Get email thread metadata by thread ID
Returns thread metadata built from RFC 5322 `Message-ID`, `In-Reply-To`, and `References` headers. Use `getEmailThreadItems` to fetch the thread messages.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/threads/{threadId}/itemsGet messages in a specific email thread
Returns all messages in a thread ordered by `createdAt` using the requested sort direction.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/unreadCountGet unread email count
Returns unread email count. An email is considered read after dashboard/API retrieval depending on your read workflow.
Parameters and SDK references
Responses
HTTP and code snippets
Wait For
8 operations from WaitForController
/waitForWait for an email to match the provided filter conditions such as subject contains keyword.
Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/waitForEmailCountWait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
Parameters and SDK references
Responses
HTTP and code snippets
/waitForLatestEmailFetch inbox's latest email or if empty wait for an email to arrive
Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`.
Parameters and SDK references
Responses
HTTP and code snippets
/waitForLatestSmsWait for the latest SMS message to match the provided filter conditions such as body contains keyword.
Wait until a phone number meets given conditions or return immediately if already met
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/waitForMatchingEmailsWait or return list of emails that match simple matching patterns
Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/waitForMatchingFirstEmailWait for or return the first email that matches provided MatchOptions array
Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/waitForNthEmailWait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur.
If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
Parameters and SDK references
Responses
HTTP and code snippets
/waitForSmsWait for an SMS message to match the provided filter conditions such as body contains keyword.
Generic waitFor method that will wait until a phone number meets given conditions or return immediately if already met
Parameters and SDK references
Request body
Responses
HTTP and code snippets
SMS
22 operations from SmsController
/smsDelete all SMS messages
Delete all SMS messages or all messages for a given phone number
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}Delete SMS message.
Delete an SMS message
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController.
Returns a SMS summary object with content.
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}/codesExtract verification codes from an SMS
Extract one-time passcodes and verification tokens from SMS body content. Deterministic `PATTERN` extraction is available now. Use method flags to control fallback behavior for QA.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}/readMark an SMS as read or unread
Sets read state for one SMS message. Useful when building custom inbox flows that need to restore unread state after inspection.
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}/replyGet reply for an SMS message
Get reply for an SMS message.
Parameters and SDK references
Responses
HTTP and code snippets
/sms/{smsId}/replySend a reply to a received SMS message. Replies are sent from the receiving number.
Reply to an SMS message.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/sms/readMark all SMS messages as read or unread
Sets read state for all SMS messages, optionally scoped to a single phone number. Use `read=false` to reset unread state in bulk.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/sms/sentDelete all sent SMS messages
Delete all sent SMS messages or all messages for a given phone number
Parameters and SDK references
Responses
HTTP and code snippets
/sms/sentGet all SMS messages in all phone numbers in paginated form. .
By default returns all SMS messages across all phone numbers sorted by ascending created at date. Responses are paginated. You can restrict results to a list of phone number IDs. You can also filter out read messages
Parameters and SDK references
Responses
HTTP and code snippets
/sms/sent/{sentSmsId}Delete sent SMS message.
Delete a sent SMS message
Parameters and SDK references
Responses
HTTP and code snippets
/sms/sent/{sentSmsId}Get sent SMS content including body. Expects sent SMS to exist by ID.
Returns an SMS summary object with content.
Parameters and SDK references
Responses
HTTP and code snippets
/sms/sent/countGet sent SMS count
Get number of sent SMS
Parameters and SDK references
Responses
HTTP and code snippets
/sms/unreadCountGet unread SMS count
Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response
Parameters and SDK references
Responses
HTTP and code snippets
Phone
60 operations from PhoneController
/phoneAdd phone number to your account. Only works if you have already added a plan and an initial phone number in your account and acknowledged the pricing and terms of service by enabling API phone creation.
Create new phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/consentGet consent status
Get the status of phone usage consent
Parameters and SDK references
Responses
HTTP and code snippets
/phone/consentSet consent status
Give or revoke consent for phone usage
Parameters and SDK references
Responses
HTTP and code snippets
/phone/emergency-addressesGet emergency addresses
List emergency addresses
Parameters and SDK references
Responses
HTTP and code snippets
/phone/emergency-addressesCreate an emergency address
Add an emergency address to a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/emergency-addresses/{addressId}Delete an emergency address
Delete an emergency address
Parameters and SDK references
Responses
HTTP and code snippets
/phone/emergency-addresses/{addressId}Get an emergency address
Fetch an emergency address by ID
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/media/{mediaId}/base64downloadPhoneNumberMediaBase64
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbersDelete all phone numbers
Remove all phone number from account
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}Delete a phone number
Remove phone number from account
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}Get a phone number by ID
Get a phone number by ID
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}Update a phone number
Set field for phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/favouriteSet phone favourited state
Set and return new favorite state for a phone
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/message-threadsGet the latest message preview for a thread
List message threads for a phone
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/message-threads/{otherNumber}Delete messages in a phone thread
Delete all messages in an SMS thread
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/message-threads/{otherNumber}Get messages in a phone thread
List message thread messages for a phone message thread
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/smsList SMS messages for a phone number
Get SMS messages for a phone number
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/smsSend TXT message from a phone number
Send SMS from a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/sms-sentList sent TXT messages for a phone number
Get sent SMS messages for a phone number
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/tagsRemove phone number tags
Remove one or more tags from a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/tagsGet phone number tags
Get tags for a specific phone number
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/tagsAdd phone number tags
Add one or more tags to a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/tagsSet phone number tags
Replace all tags on a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/testTest sending an SMS to a number
Test a phone number by sending an SMS to it. NOTE this is only for internal use to check that a phone number is working. For end-to-end phone testing see /docs/txt-sms/
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/numbers/by-nameGet a phone number by name
Get a phone number by name
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/by-phone-numberGet a phone number by phone number
Get a phone number by phone number
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/csvExport phone numbers CSV
Download all active phone numbers for account as CSV
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/message-threadsGet the latest messages for all phones
List all message threads for all phones
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/poolsGet phone pools
List phone pools for the authenticated user
Parameters and SDK references
Responses
HTTP and code snippets
/phone/poolsCreate phone pool
Create a reusable pool of phone numbers for coordinated leasing
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/pools/{poolId}Delete phone pool
Delete a phone pool and release any active leases from that pool
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/pools/{poolId}Update phone pool
Update phone pool metadata such as name or description
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/pools/{poolId}/leasesAcquire phone pool lease
Acquire an available phone number from the pool and mark it leased
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/pools/{poolId}/leases/{leaseId}Release phone pool lease
Release an active phone pool lease
Parameters and SDK references
Responses
HTTP and code snippets
/phone/pools/{poolId}/numbersAdd phone numbers to phone pool
Add one or more owned phone numbers to a pool
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/pools/{poolId}/numbers/{phoneNumberId}Remove phone number from phone pool
Remove a phone number from a pool. If the number is leased from this pool the lease is released.
Parameters and SDK references
Responses
HTTP and code snippets
/phone/pools/{poolId}/numbers/add-allAdd all phone numbers to phone pool
Add all active owned phone numbers to a pool
Parameters and SDK references
Responses
HTTP and code snippets
/phone/pools/by-nameGet phone pool by name
Get phone pool details by name
Parameters and SDK references
Responses
HTTP and code snippets
/phone/pools/get-or-createGet or create phone pool
Get a phone pool by name or create it if it does not exist
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/provisioning/capabilitiesGet phone provisioning capabilities
Get supported provider-country variant capabilities for advanced provisioning
Parameters and SDK references
Responses
HTTP and code snippets
/phone/provisioning/jobsCreate a phone provisioning job
Create an advanced phone provisioning job from shortlisted numbers
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/provisioning/jobs/{jobId}Get phone provisioning job
Get advanced phone provisioning job status
Parameters and SDK references
Responses
HTTP and code snippets
/phone/provisioning/searchSearch available phone numbers
Search available numbers for advanced provisioning
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/releasesGet all phone number releases
List released or deleted phone numbers
Parameters and SDK references
Responses
HTTP and code snippets
/phone/releases/{releaseId}Get phone number release
Get a released or deleted phone numbers
Parameters and SDK references
Responses
HTTP and code snippets
/phone/releases/{releaseId}/reassignReassign phone number release
Reassign phone number that was released or deleted
Parameters and SDK references
Responses
HTTP and code snippets
/phone/sms-prepaid-creditsGet SMS prepaid credits
List SMS prepaid credits for the authenticated account
Parameters and SDK references
Responses
HTTP and code snippets
/phone/sms-prepaid-credits/{creditId}Get SMS prepaid credit
Get a specific SMS prepaid credit balance for the authenticated account
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/phone/tagsGet phone tags
List all unique tags used by your phone numbers
Parameters and SDK references
Responses
HTTP and code snippets
/phone/validateVerify validity of a phone number
Validate a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/phone/validate/line-type-intelligenceGet line type intelligence for a phone number
Lookup line type intelligence for a phone number
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Webhook
40 operations from WebhookController
/ai-transformers/{transformerId}/webhooksAttach a WebHook URL to an AI transformer
Get notified whenever AI transformation pipeline converts and email or SMS into structured data via a WebHook URL.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/webhooksGet all webhooks for an Inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/webhooksAttach a WebHook URL to an inbox
Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/inboxes/{inboxId}/webhooks/{webhookId}Delete and disable a Webhook for an Inbox
Parameters and SDK references
Responses
HTTP and code snippets
/inboxes/{inboxId}/webhooks/paginatedGet paginated webhooks for an Inbox
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneId}/webhooks/paginatedGet paginated webhooks for a phone number
Parameters and SDK references
Responses
HTTP and code snippets
/phone/numbers/{phoneNumberId}/webhooksAttach a WebHook URL to a phone number
Get notified whenever a phone number receives an SMS via a WebHook URL.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooksAttach a WebHook URL to an inbox
Get notified of account level events such as bounce and bounce recipient.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/{webhookId}Update a webhook
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/webhooks/{webhookId}/examplegetTestWebhookPayloadForWebhook
Get example payload for webhook
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/webhooks/{webhookId}/resultsGet a webhook results for a webhook
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/{webhookId}/schemagetJsonSchemaForWebhookPayload
Get JSON Schema definition for webhook payload
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/{webhookId}/waitWait for webhook results for a webhook
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/account/paginatedList account webhooks Paginated
List account webhooks in paginated form. Allows for page index, page size, and sort direction.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/endpointsList Webhooks endpoints Paginated
List webhooks URL in paginated form. Allows for page index, page size, and sort direction.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/paginatedList Webhooks Paginated
List webhooks in paginated form. Allows for page index, page size, and sort direction.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/resultsGet results for all webhooks
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/results/{webhookResultId}/redriveGet a webhook result and try to resend the original webhook payload
Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/results/redriveRedrive all webhook results that have failed status
Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/results/unseen-countGet count of unseen webhook results with error status
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/schemagetJsonSchemaForWebhookEvent
Get JSON Schema definition for webhook payload by event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/testgetTestWebhookPayload
Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default.
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/delivery-status-payloadGet webhook test payload for delivery status event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/email-bounce-payloadgetTestWebhookPayloadBounce
Get webhook test payload for bounce
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/email-bounce-recipient-payloadgetTestWebhookPayloadBounceRecipient
Get webhook test payload for bounce recipient
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/email-opened-payloadgetTestWebhookPayloadEmailOpened
Get webhook test payload for email opened event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/email-read-payloadgetTestWebhookPayloadEmailRead
Get webhook test payload for email opened event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/new-ai-transform-result-payloadGet webhook test payload for new ai transform result event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/new-attachment-payloadGet webhook test payload for new attachment event
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/new-email-payloadGet webhook test payload for new email event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/test/new-sms-payloadGet webhook test payload for new sms event
Parameters and SDK references
Responses
HTTP and code snippets
/webhooks/verifyVerify a webhook payload signature
Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Domain
12 operations from DomainController
Parameters and SDK references
Responses
HTTP and code snippets
/domainsCreate Domain
Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domains/{id}Delete a domain
Delete a domain. This will disable any existing inboxes that use this domain.
Parameters and SDK references
Responses
HTTP and code snippets
/domains/{id}Get a domain
Returns domain verification status and tokens for a given domain
Parameters and SDK references
Responses
HTTP and code snippets
/domains/{id}Update a domain
Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domains/{id}/health-eventsGet domain health events
List recent health events for a custom domain using MailSlurp domain-health terminology.
Parameters and SDK references
Responses
HTTP and code snippets
/domains/{id}/wildcardGet catch all wild card inbox for domain
Get the catch all inbox for a domain for missed emails
Parameters and SDK references
Responses
HTTP and code snippets
/domains/{id}/wildcardAdd catch all wild card inbox to domain
Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated
Parameters and SDK references
Responses
HTTP and code snippets
/domains/available-domain-regionsGet all usable domains with account region status
List all domains available for use with email address creation, including account-region and create/send enablement flags.
Parameters and SDK references
Responses
HTTP and code snippets
/domains/available-domainsGet all usable domains
List all domains available for use with email address creation
Parameters and SDK references
Responses
HTTP and code snippets
/domains/issuesGet domain issues
List domain issues for domains you have created
Parameters and SDK references
Responses
HTTP and code snippets
/domains/mailslurp-domainsGet MailSlurp domains
List all MailSlurp domains used with non-custom email addresses
Parameters and SDK references
Responses
HTTP and code snippets
Alias
11 operations from AliasController
/aliasesGet all email aliases you have created
Get all email aliases in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/aliasesCreate an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.
Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/aliases/{aliasId}/emailsGet emails for an alias
Get paginated emails for an alias by ID
Parameters and SDK references
Responses
HTTP and code snippets
/aliases/{aliasId}/emailsSend an email from an alias inbox
Send an email from an alias. Replies to the email will be forwarded to the alias masked email address
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/aliases/{aliasId}/emails/{emailId}Reply to an email
Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/aliases/{aliasId}/threadsGet threads created for an alias
Returns threads created for an email alias in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/aliases/threadsGet all threads
Returns threads created for all aliases in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/aliases/threads/{threadId}Get a thread
Return a thread associated with an alias
Parameters and SDK references
Responses
HTTP and code snippets
AI
21 operations from AIController
/ai/structured-content/attachmentGenerate structured content for an attachment
Use output schemas to extract data from an attachment using AI
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/structured-content/emailGenerate structured content for an email
Use output schemas to extract data from an email using AI
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/structured-content/smsGenerate structured content for a TXT message
Use output schemas to extract data from an SMS using AI
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/structured-content/validateValidate structured content schema
Check if a schema is valid and can be used to extract data using AI
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/transformerDelete all transformers
Delete all AI transformers and schemas
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformerCreate a transformer for reuse in automations
Save an AI transform instructions and schema for use with webhooks and automations
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/transformer/{id}Delete a transformer
Delete an AI transformer and schemas by ID
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/{id}Get a transformer
Get AI transformer and schemas by ID
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/invokeInvoke a transformer
Execute an AI transformer to generate structured content
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/transformer/mappingsDelete all transformer mapping
Delete all AI transformer mappings
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/mappingsGet transformer mappings
Get AI transformer mappings to other entities
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/mappingsCreate transformer mapping
Create AI transformer mappings to other entities
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/transformer/mappings/{id}Delete transformer mapping
Delete an AI transformer mapping
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/mappings/{id}Get transformer mapping
Get an AI transformer mapping
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/mappings/{id}/matchTest transformer mapping match result
Evaluate transform mapping match conditions for given email, sms, or attachment
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/resultsGet transformer results
Get AI transformer results
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/results/{id}Get transformer result
Get AI transformer result
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/results/exportExport transformer results
Export AI transformer results in formats such as Excel, CSV, XML etc.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/ai/transformer/results/export/{id}Get export transformer results job
Get the job status for an export
Parameters and SDK references
Responses
HTTP and code snippets
/ai/transformer/results/tableGet transformer results table
Get AI transformer results in table format
Parameters and SDK references
Responses
HTTP and code snippets
Attachment
11 operations from AttachmentController
/attachmentsDelete all attachments
Delete all attachments
Parameters and SDK references
Responses
HTTP and code snippets
/attachmentsGet 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.
Parameters and SDK references
Responses
HTTP and code snippets
/attachmentsUpload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/attachments/{attachmentId}Delete an attachment
Delete an attachment
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/attachments/{attachmentId}/base64Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
Parameters and SDK references
Responses
HTTP and code snippets
/attachments/{attachmentId}/bytesDownload 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.
Parameters and SDK references
Responses
HTTP and code snippets
/attachments/{attachmentId}/metadataGet email attachment metadata information
Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment.
Parameters and SDK references
Responses
HTTP and code snippets
/attachments/{attachmentId}/textExtract 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.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/attachments/bytesUpload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
Parameters and SDK references
Responses
HTTP and code snippets
/attachments/multipartUpload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Audit Log
3 operations from api-audit-log-controller
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/audit-logs/searchsearchAuditLogs
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Bounce
12 operations from BounceController
/bounce/account-blockCan account send email
Check if account block status prevents sending
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/complaintsGet paginated list of complaints.
SMTP complaints made against your account
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/emailsGet paginated list of bounced emails.
Bounced emails are email you have sent that were rejected by a recipient
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/emails/{id}Get a bounced email.
Bounced emails are email you have sent that were rejected by a recipient
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/filter-recipientsFilter a list of email recipients and remove those who have bounced
Prevent email sending errors by remove recipients who have resulted in past email bounces or complaints
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/bounce/list-unsubscribe-recipientsGet paginated list of unsubscribed recipients.
Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again.
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/recipientsGet paginated list of bounced recipients.
Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address.
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/recipients/{id}Get a bounced email.
Bounced emails are email you have sent that were rejected by a recipient
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/reputation-itemsGet paginated list of reputation items.
List of complaints and bounces
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/tenant-findingsGet SES tenant reputation findings
Get SES tenant reputation recommendations/findings for this user.
Parameters and SDK references
Responses
HTTP and code snippets
/bounce/tenant-statusGet SES tenant status summary
Get SES tenant sending and reputation status rows for this user. Includes complaint and bounce rates from CloudWatch.
Parameters and SDK references
Responses
HTTP and code snippets
Bulk Actions
3 operations from BulkActionsController
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/bulk/inboxesBulk create Inboxes (email addresses)
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Campaign Probe
12 operations from CampaignProbeController
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probesCreate campaign probe
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}Get campaign probe
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}Update campaign probe
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/insightsGet campaign probe insights
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/run-nowRun campaign probe now
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/runsList campaign probe runs
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/runs/{runId}Get campaign probe run
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/runs/{runId}/compare/{otherRunId}Compare two campaign probe runs
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/{probeId}/seriesGet campaign probe trend series
Parameters and SDK references
Responses
HTTP and code snippets
/campaign-probe/probes/run-dueRun due campaign probes for user
Parameters and SDK references
Responses
HTTP and code snippets
Common Actions
6 operations from CommonActionsController
/createInboxCreate new random inbox
Returns an Inbox with an `id` and an `emailAddress`
Parameters and SDK references
Responses
HTTP and code snippets
/deleteEmailAddressDelete inbox email address by inbox id
Deletes inbox email address
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/newEmailAddressCreate new random inbox
Returns an Inbox with an `id` and an `emailAddress`
Parameters and SDK references
Responses
HTTP and code snippets
/sendEmailSend an email
If no senderId or inboxId provided a random email address will be used to send from.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/sendEmailQuerySend an email using query parameters
If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
Parameters and SDK references
Responses
HTTP and code snippets
Connector
31 operations from ConnectorController
Parameters and SDK references
Responses
HTTP and code snippets
/connectorsGet inbox connectors
List inbox connectors that sync external emails to MailSlurp inboxes
Parameters and SDK references
Responses
HTTP and code snippets
/connectorsCreate an inbox connector
Sync emails between external mailboxes and MailSlurp inboxes
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/eventsGet an inbox connector events
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/imapDelete an inbox connector IMAP connection
Delete IMAP connection for external inbox
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/imapGet an inbox connector IMAP connection
Get IMAP connection for external inbox
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/imapUpdate an inbox connector IMAP connection
Update IMAP connection for external inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/imapCreate an inbox connector IMAP connection
Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/imap/testTest an inbox connector IMAP connection
Test the IMAP connection for a connector
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/sendSend from an inbox connector
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/smtpDelete an inbox connector SMTP connection
Delete SMTP connection for external inbox
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/smtpGet an inbox connector SMTP connection
Get SMTP connection for external inbox
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/smtpUpdate an inbox connector SMTP connection
Update SMTP connection for external inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/smtpCreate an inbox connector SMTP connection
Allows sending via connector and email is routed to connected inbox and sent via SMTP
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/smtp/testTest an inbox connector SMTP connection
Test the SMTP connection for a connector
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/{id}/syncSync an inbox connector
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/sync-settingsCreate an inbox connector sync settings
Configure automatic pull or emails from external inboxes using an interval or schedule
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/sync-settingsGet an inbox connector sync settings
Get sync settings for connection with external inbox
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/{id}/sync-settingsCreate an inbox connector sync settings
Configure automatic pull or emails from external inboxes using an interval or schedule
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/by-email-addressGet connector by email address
Find an inbox connector by email address
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/by-inbox-idGet connector by inbox ID
Find an inbox connector by inbox ID
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/connections/imap/testTest an inbox connector IMAP connection options
Test the IMAP connection options for a connector
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/connections/smtp/testTest an inbox connector SMTP connection options
Test the SMTP connection options for a connector
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/connectors/eventsGet all inbox connector events
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/events/{id}Get an inbox connector event
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/provider-settingsGet SMTP and IMAP connection settings for common mail providers
Get common mail provider SMTP and IMAP connection settings
Parameters and SDK references
Responses
HTTP and code snippets
/connectors/withOptionsCreate an inbox connector with options
Sync emails between external mailboxes and MailSlurp inboxes
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Consent
4 operations from ConsentController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/consent/opt-in/sendSend a verification code to a user once they have explicitly submitted their email address
Send double-opt in consent for an email address
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Contact
6 operations from ContactController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/contacts/{contactId}/downloadGet contact vCard vcf file
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Deliverability Test
22 operations from DeliverabilityTestController
/test/deliverabilityList load tests
List load tests for the authenticated account.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverabilityCreate load test
Create a load test for inboxes or phone numbers using ALL, PATTERN, or EXPLICIT selector scope.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/test/deliverability/{testId}Delete load test
Delete test and all persisted entity-level results.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}Get load test
Get load-test configuration and latest progress counters.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}Update load test
Update metadata, timeout, and expectations for a non-running non-terminal test.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/test/deliverability/{testId}/duplicateDuplicate load test
Create a fresh load test using an existing test configuration, including selector scope, exclusions, and expectations.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/pausePause load test
Pause a RUNNING or SCHEDULED load test.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/report/exportExport load-test report as PDF
Export a PDF report for a terminal load test (COMPLETE, FAILED, or STOPPED), including configuration, summary outcomes, and detailed entity-level results.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/resultsGet load-test entity results
Get paged per-entity expectation results with optional matched/unmatched filtering.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/results/exportExport load-test entity results as CSV
Export per-entity deliverability results including expectation-level pass/fail counts. The latest status is evaluated with the same polling safeguards before export.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobsCreate deliverability simulation job
Create and start a simulation job for a running load test. Only one active simulation job is allowed per user.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/{jobId}Get deliverability simulation job
Get simulation job status and progress counters.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/{jobId}/cancelCancel deliverability simulation job
Cancel a running or paused simulation job.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/{jobId}/eventsGet deliverability simulation job events
Get paged simulation events including send successes and failures.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/{jobId}/pausePause deliverability simulation job
Pause a running simulation job.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/{jobId}/resumeResume deliverability simulation job
Resume a paused simulation job.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/simulation-jobs/latestGet latest deliverability simulation job
Get the most recent simulation job for a load test.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/startStart or resume load test
Start a CREATED test or resume a PAUSED/SCHEDULED test.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/statusPoll load-test status
Poll test progress. Evaluation is throttled with a 5-second cache window to protect backing data stores.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/{testId}/stopStop load test
Stop a load test and mark it terminal.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/analytics/hotspotsGet deliverability failure hotspots
Find commonly failing entities and phone country/variant dimensions across deliverability runs in a time range.
Parameters and SDK references
Responses
HTTP and code snippets
/test/deliverability/analytics/seriesGet deliverability analytics time series
Compare deliverability runs over a time range with bucketed chart metrics and run-level rows for table views.
Parameters and SDK references
Responses
HTTP and code snippets
Device Previews
42 operations from DevicePreviewsController
/device-preview-targetsList device preview targets
Returns visible native device preview target metadata without worker availability, queue, or health fields.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/device-previews/latestReturn active run for email or create one when none exists
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/{emailId}/device-previews/offset-paginatedList previous device preview runs for an email in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/{runId}/providers/{provider}Get provider-level progress for a device preview run
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/{runId}/screenshots/{screenshotId}/imageGet a device preview screenshot image
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/{runId}/targets/rerunRerun selected failed device preview targets in the same run
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/{runId}/waitWait for device preview run to complete
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/email-domainReturn account device preview email domain setup or create one
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/email-domain/subdomainUpdate account device preview email subdomain
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/email-runsList device preview runs created from account email domains
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/email-runs/waitWait for device preview runs created from account email domains
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/email-submissionsList received device preview email submissions
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/email-submissions/waitWait for received device preview email submissions
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/feedbackCreate device preview feedback
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/feedback/{feedbackId}Get a single device preview feedback item
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/feedback/{feedbackId}Update device preview feedback
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/importCreate a device preview run from imported raw MIME
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/import-addressesCreate a temporary email address for device preview import
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/import-addresses/{sessionId}Get temporary device preview import address status
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/import/htmlCreate a device preview run from HTML
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/import/multipartCreate a device preview run from multipart EML upload
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/native-targets/availabilityGet native device preview target availability
Returns live native device preview target availability for authenticated API clients, including worker health, queue, timeout, and status fields. Use `/device-preview-targets` when you need the stable catalog without transient availability data.
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/offset-paginatedList previous device preview runs for account in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/profilesList device preview profiles
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/profilesCreate a device preview profile
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/emails/device-previews/profiles/{profileId}Delete a device preview profile
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/profiles/{profileId}Get a device preview profile
Parameters and SDK references
Responses
HTTP and code snippets
/emails/device-previews/profiles/{profileId}Update a device preview profile
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Domain Monitor
22 operations from DomainMonitorController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}Delete domain monitor
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/alert-sinksList alert sinks for monitor
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/alert-sinksCreate alert sink for monitor
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/alert-sinks/{sinkId}Delete monitor alert sink
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/auth-stackGet current auth stack for monitor domain
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/email-verificationGet domain monitor email verification setup
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/email-verification-addressCreate or rotate domain monitor email verification address
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/observed-auth-samplesList domain monitor observed authentication samples
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/observed-auth-samples/{sampleId}Delete domain monitor observed authentication sample
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/runs/{runId}/compare/{otherRunId}Compare two monitor runs
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/monitors/{monitorId}/runs/{runId}/results/exportExport monitor run results as CSV
Export one row per domain monitor check, including run-level score metadata and per-check pass, fail, or not-checked status.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Domain Monitor Postmaster
8 operations from DomainMonitorPostmasterController
/domain-monitor/postmaster/connectCreate Postmaster OAuth connection URL
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/domain-monitor/postmaster/connectionDisconnect Postmaster OAuth
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/postmaster/domains/{domain}/traffic-statsGet local Postmaster traffic stats
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/postmaster/domains/{domain}/traffic-stats/syncSync Postmaster traffic stats
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/domain-monitor/postmaster/oauth-exchangeExchange Postmaster OAuth authorization code
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Email Audit
5 operations from EmailAuditController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Email Verification
6 operations from EmailVerificationController
/email-verificationDelete all validation requests
Remove validation requests
Parameters and SDK references
Responses
HTTP and code snippets
/email-verification/{id}Delete a validation record
Delete a validation record
Parameters and SDK references
Responses
HTTP and code snippets
/email-verification/domain-reputationCheck email/domain reputation signals including configured DNS blacklists.
Run reputation-oriented checks for an email address, domain, IP address, or MX host. This is separate from address validation.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/email-verification/email-address-listValidate a list of email addresses. Per unit billing. See your plan for pricing.
Verify a list of email addresses is valid and can be contacted.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/email-verification/intelligenceGet intelligence score and breakdown for email/domain targets. Per unit billing for non-cached evaluations.
Run email intelligence scoring for one or more email addresses or domains. Submitting a single target in the list supports one-off checks.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/email-verification/validation-requestsValidate a list of email addresses. Per unit billing. See your plan for pricing.
List email verification requests
Parameters and SDK references
Responses
HTTP and code snippets
Expired
4 operations from ExpiredController
/expiredList records of expired inboxes
Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
Parameters and SDK references
Responses
HTTP and code snippets
/expired/{expiredId}Get an expired inbox record
Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
Parameters and SDK references
Responses
HTTP and code snippets
/expired/defaultsGet default expiration settings
Return default times used for inbox expiration
Parameters and SDK references
Responses
HTTP and code snippets
/expired/inbox/{inboxId}Get expired inbox record for a previously existing inbox
Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
Parameters and SDK references
Responses
HTTP and code snippets
Export
2 operations from ExportController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Form
1 operations from FormController
/formsSubmit a form to be parsed and sent as an email to an address determined by the form fields
This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-fo...
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Group
9 operations from GroupController
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/groups/{groupId}/contactsRemove contacts from a group
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/groups/{groupId}/contactsGet group and contacts belonging to it
Parameters and SDK references
Responses
HTTP and code snippets
/groups/{groupId}/contactsAdd contacts to a group
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/groups/{groupId}/contacts-paginatedgetGroupWithContactsPaginated
Get group and paginated contacts belonging to it
Parameters and SDK references
Responses
HTTP and code snippets
/groups/paginatedGet all Contact Groups in paginated format
Parameters and SDK references
Responses
HTTP and code snippets
Guest Portal
8 operations from GuestPortalController
Parameters and SDK references
Responses
HTTP and code snippets
/guest-portalCreate a portal page for your customers or clients to log into email accounts and view emails.
Create a guest login page for customers or clients to access assigned email addresses
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/guest-portal/{portalId}Get a client email portal
Fetch a customer guest portal
Parameters and SDK references
Responses
HTTP and code snippets
/guest-portal/{portalId}/userGet all guest users for portal
Get customers for a portal
Parameters and SDK references
Responses
HTTP and code snippets
/guest-portal/{portalId}/userCreate a portal guest user
Add customer to portal
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/guest-portal/{portalId}/user/{guestId}Get guest user for portal
Get customer for portal
Parameters and SDK references
Responses
HTTP and code snippets
/guest-portal/userGet all guest users for portal
Get all customers for a portal
Parameters and SDK references
Responses
HTTP and code snippets
/guest-portal/user/{guestId}Get guest user
Get customer by ID
Parameters and SDK references
Responses
HTTP and code snippets
IMAP
7 operations from ImapController
/imap/server/fetchFetch message in an inbox
Parameters and SDK references
Responses
HTTP and code snippets
/imap/server/getGet a message by email ID
Parameters and SDK references
Responses
HTTP and code snippets
/imap/server/listList messages in an inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/imap/server/mailboxCreate a new mailbox if possible
Parameters and SDK references
Responses
HTTP and code snippets
/imap/server/searchSearch messages in an inbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/imap/server/statusGet status for mailbox
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/imap/server/update-flagsimapServerUpdateFlags
Update message flags
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Inbox Forwarder
13 operations from InboxForwarderController
/forwardersDelete inbox forwarders
Delete inbox forwarders. Accepts optional inboxId filter.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/forwardersCreate an inbox forwarder
Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/forwarders/{id}Delete an inbox forwarder
Delete inbox forwarder
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/forwarders/{id}/eventsGet an inbox forwarder event list
Get inbox forwarder events
Parameters and SDK references
Responses
HTTP and code snippets
/forwarders/{id}/events/{eventId}Get an inbox forwarder event
Get inbox forwarder event
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/forwarders/eventsGet all inbox forwarder events
Get all inbox forwarder events
Parameters and SDK references
Responses
HTTP and code snippets
/forwarders/events/{eventId}Get a forwarder event
Get forwarder event
Parameters and SDK references
Responses
HTTP and code snippets
Inbox Placement Test
10 operations from api-inbox-placement-test-controller
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/inbox-placement-tests/{id}/results/exportExport inbox placement test results as CSV
Export one row per placement target, including run-level delivery totals, 0-10 placement scores, and target placement outcome fields.
Parameters and SDK references
Responses
HTTP and code snippets
/inbox-placement-tests/analytics/breakdownGet inbox placement analytics breakdowns
Return aggregated folder, provider, sender-domain, and from-email breakdowns for inbox placement runs in a time range.
Parameters and SDK references
Responses
HTTP and code snippets
/inbox-placement-tests/analytics/seriesGet inbox placement analytics time series
Return chart-ready inbox placement metrics over time, with optional sender/domain filters and grouped comparisons for sender domains or from-email addresses.
Parameters and SDK references
Responses
HTTP and code snippets
Inbox Replier
8 operations from InboxReplierController
/repliersDelete inbox repliers
Delete inbox repliers. Accepts optional inboxId filter.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/repliersCreate an inbox replier
Create a new inbox rule for reply toing, blocking, and allowing emails when sending and receiving
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/repliers/{id}Delete an inbox replier
Delete inbox replier
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/repliers/{id}/eventsGet an inbox replier event list
Get inbox ruleset events
Parameters and SDK references
Responses
HTTP and code snippets
/repliers/eventsGet inbox replier event list
Get all inbox ruleset events
Parameters and SDK references
Responses
HTTP and code snippets
Mail Server
5 operations from MailServerController
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/mail-server/describe/domainGet DNS Mail Server records for a domain
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/mail-server/verify/email-addressDeprecated. Use the EmailVerificationController methods for more accurate and reliable functionality. Verify the existence of an email address at a given mail server.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
MFA
9 operations from MFAController
/mfa/totp/deviceList TOTP devices
List Time-Based One-Time Password (TOTP) devices for the calling account.
Parameters and SDK references
Responses
HTTP and code snippets
/mfa/totp/device/{id}Delete a TOTP device
Delete a Time-Based One-Time Password (TOTP) device by ID.
Parameters and SDK references
Responses
HTTP and code snippets
/mfa/totp/device/{id}Get a TOTP device by ID
Get Time-Based One-Time Password (TOTP) device by its ID.
Parameters and SDK references
Responses
HTTP and code snippets
/mfa/totp/device/{id}Update a TOTP device
Update stored metadata and TOTP settings for a device by ID.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/mfa/totp/device/{id}/codeGet a TOTP device code by device ID
Get Time-Based One-Time Password for a device by its ID.
Parameters and SDK references
Responses
HTTP and code snippets
/mfa/totp/device/base32SecretKeyCreate a TOTP device from an base32 secret key
Create a virtual TOTP device for a given secret key. This is usually present as an alternative login option when pairing OTP devices.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/mfa/totp/device/byGet a TOTP device by username, issuer, or name. Returns empty if not found.
Get Time-Based One-Time Password (TOTP) device by its username and issuer mapping.
Parameters and SDK references
Responses
HTTP and code snippets
/mfa/totp/device/customCreate a TOTP device from custom options
Create a virtual TOTP device for custom options specifying all parameters of the TOTP device.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/mfa/totp/device/otpAuthUrlCreate a TOTP device from an OTP Auth URL
Create a virtual TOTP device for a given OTP Auth URL such as otpauth://totp/MyApp:alice@example.com?secret=ABC123&issuer=MyApp&period=30&digits=6&algorithm=SHA1. You can provider overrides in the options for each component of the URL.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Missed Email
5 operations from MissedEmailController
/missed-emailsGet all MissedEmails in paginated format
Parameters and SDK references
Responses
HTTP and code snippets
/missed-emails/{missedEmailId}Get MissedEmail
List emails that were missed due to plan limits.
Parameters and SDK references
Responses
HTTP and code snippets
/missed-emails/restoreRestore missed emails
If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method.
Parameters and SDK references
Responses
HTTP and code snippets
/missed-emails/unknownGet all unknown missed emails in paginated format
Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox.
Parameters and SDK references
Responses
HTTP and code snippets
/missed-emails/waitForNthMissedEmailWait for Nth missed email
Wait for 0 based index missed email
Parameters and SDK references
Responses
HTTP and code snippets
Missed SMS
3 operations from MissedSmsController
Parameters and SDK references
Responses
HTTP and code snippets
/missed-sms/{missedSmsId}Get missed SMS content
Returns a missed SMS with full content.
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Ruleset
10 operations from RulesetController
/rulesetsDelete rulesets
Delete rulesets. Accepts optional inboxId or phoneId filters.
Parameters and SDK references
Responses
HTTP and code snippets
/rulesetsList rulesets block and allow lists
List all rulesets attached to an inbox or phone or account
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/rulesetsCreate a ruleset
Create a new inbox or phone number rule for forwarding, blocking, and allowing emails or SMS when sending and receiving
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/rulesets/{id}/testTest a ruleset
Test an inbox or phone ruleset
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/rulesets/test-receivingTest receiving with rulesets
Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets or test if phone number can receive SMS
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/rulesets/test-sendingTest sending with rulesets
Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets or whether a phone number can send SMS
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Sent Emails
16 operations from SentEmailsController
Parameters and SDK references
Responses
HTTP and code snippets
/sentGet all sent emails in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/sent/{emailId}/rawGet raw sent email string. Returns unparsed raw SMTP message with headers and body.
Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint
Parameters and SDK references
Responses
HTTP and code snippets
/sent/{emailId}/raw/jsonGet raw sent email in JSON. Unparsed SMTP message in JSON wrapper format.
Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/sent/{id}/tracking-pixelsgetSentEmailTrackingPixels
Get all tracking pixels for a sent email in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/sent/{id}/urlsGet sent email URL for viewing in browser or downloading
Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
Parameters and SDK references
Responses
HTTP and code snippets
/sent/{sentId}/delivery-statusgetSentDeliveryStatusesBySentId
Get all sent email delivery statuses
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/sent/delivery-status/{deliveryId}getSentDeliveryStatus
Get a sent email delivery status
Parameters and SDK references
Responses
HTTP and code snippets
/sent/delivery-status/wait-forwaitForDeliveryStatuses
Wait for delivery statuses
Parameters and SDK references
Responses
HTTP and code snippets
/sent/organizationgetSentOrganizationEmails
Get all sent organization emails in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/sent/queue-resultsGet results of email sent with queues in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/sent/tracking-pixelsgetAllSentTrackingPixels
Get all sent email tracking pixels in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
Spam Email
1 operations from SpamEmailController
/spam-emailsGet blocked inbound spam email records in paginated format
Parameters and SDK references
Responses
HTTP and code snippets
Template
8 operations from TemplateController
Parameters and SDK references
Responses
HTTP and code snippets
/templatesCreate a Template
Create an email template with variables for use with templated transactional emails.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/templates/{templateId}Delete email template
Delete template
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/templates/{templateId}/preview/htmlGet template preview HTML
Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params.
Parameters and SDK references
Responses
HTTP and code snippets
/templates/{templateId}/preview/jsonGet template preview Json
Get email template preview with passed template variables in JSON format. Pass template variables as query params.
Parameters and SDK references
Responses
HTTP and code snippets
/templates/paginatedList templates
Get all templates in paginated format
Parameters and SDK references
Responses
HTTP and code snippets
Tools
35 operations from ToolsController
/tools/analyze-dmarc-reportParse and summarize a DMARC aggregate XML report
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/analyze-email-headersAnalyze email headers for auth results and delivery path
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-campaign-probeRun a one-shot free campaign probe preflight check
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-dns-propagationCheck DNS propagation for a host and record type across configured resolvers
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-domain-monitorRun a one-shot free domain monitor posture check
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-email-auditRun a one-shot free email audit across links, images, HTML, and client support
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-email-auth-stackRun a one-shot combined SPF, DKIM, DMARC, BIMI, MX, MTA-STS, and TLS-RPT check
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-email-blacklistsCheck whether a domain or IP appears on configured DNS blacklists
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/check-email-features-client-supportCheck email client support for email HTML and CSS features
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/device-render-testCreate a public email render test
Creates an unauthenticated free email render test and returns a short-lived generated email address.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/device-render-test/{id}Get a public email render test
Returns status for a free email render test and the public share redirect when the render run is ready.
Parameters and SDK references
Responses
HTTP and code snippets
/tools/fake-emailDelete a fake email address using the fake email domains
Delete a fake email address using the fake email domains
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/tools/fake-emailCreate a new email address using the fake email domains
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/tools/fake-email/htmlGet raw fake email content
Retrieve the raw content of a fake email by its ID
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/tools/generate-bimi-recordCreate a BIMI record policy
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/generate-mta-sts-recordCreate a TLS reporting record policy
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/generate-tls-reporting-recordCreate a TLS reporting record policy
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/lookup-ptrLookup PTR records for an IP address
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/lookup-tls-reporting-domainLookup a TLS reporting domain policy
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/spam-testCreate a public spam test
Create an unauthenticated inbox placement run for public tools users. Returns seed addresses and a tracking token immediately.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/spam-test/{id}Get a public spam test run
Returns public spam test run status, token, seed addresses, and free-limit state.
Parameters and SDK references
Responses
HTTP and code snippets
/tools/spam-test/{id}/resultsGet public spam test results
Returns public spam test run status and any available inbox placement results.
Parameters and SDK references
Responses
HTTP and code snippets
/tools/spam-test/{id}/submitMark a public spam test as submitted
Marks a previously created public spam test as submitted after the caller has sent the test email to the seed addresses.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/tools/test-smtp-serverRun a conservative SMTP connectivity, TLS, and AUTH diagnostic
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Tracking
3 operations from TrackingController
/tracking/pixelsGet tracking pixels
List tracking pixels in paginated form
Parameters and SDK references
Responses
HTTP and code snippets
/tracking/pixelsCreate tracking pixel
Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
User
11 operations from UserController
/user/automationsgetEntityAutomations
Parameters and SDK references
Responses
HTTP and code snippets
/user/eventsgetEntityEvents
Parameters and SDK references
Responses
HTTP and code snippets
Parameters and SDK references
Responses
HTTP and code snippets
/user/inbox-retention-policies/accountdeleteInboxRetentionPolicyForAccount
Delete inbox retention policy for your global account
Parameters and SDK references
Responses
HTTP and code snippets
/user/inbox-retention-policies/accountgetInboxRetentionPolicyForAccount
Get inbox retention policy for your global account
Parameters and SDK references
Responses
HTTP and code snippets
/user/inbox-retention-policies/accountcreateOrUpdateInboxRetentionPolicyForAccount
Create inbox retention policy for your global account
Parameters and SDK references
Request body
Responses
HTTP and code snippets
/user/inbox-retention-policies/account/runcreateInboxRetentionPolicyRun
Start an asynchronous inbox retention policy run for your account
Parameters and SDK references
Responses
HTTP and code snippets
/user/inbox-retention-policies/runsgetInboxRetentionPolicyRuns
List recent inbox retention policy runs for your account
Parameters and SDK references
Responses
HTTP and code snippets
/user/inbox-retention-policies/runs/{runId}getInboxRetentionPolicyRun
Get a previously submitted inbox retention policy run for your account
Parameters and SDK references
Responses
HTTP and code snippets
/user/infogetUserInfo
Get account information for your user
Parameters and SDK references
Responses
HTTP and code snippets
/user/json/pluckgetJsonPropertyAsString
Utility function to extract properties from JSON objects in language where this is cumbersome.
Parameters and SDK references
Request body
Responses
HTTP and code snippets
Schemas
Schema anchors are stable so endpoint responses, SDK docs, and existing API links can point to the same definitions.
AbstractWebhookPayload
objectAbstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events.
AbstractWebhookPayload
AccountBounceBlockDto
object
AccountBounceBlockDto
AcquirePhonePoolLeaseOptions
object
AcquirePhonePoolLeaseOptions
AddPhonePoolNumbersOptions
object
AddPhonePoolNumbersOptions
AIMappingMatchOption
objectOptions for matching when an AI transform mapping should trigger. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `SUBJECT` should `CONTAIN` value.
AIMappingMatchOption
AIMappingMatchOptions
objectOptional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController.
AIMappingMatchOptions
AITransformCreateOptions
object
AITransformCreateOptions
AITransformDto
object
AITransformDto
AITransformMappingDto
object
AITransformMappingDto
AITransformMappingMatchResult
object
AITransformMappingMatchResult
AITransformMappingProjection
object
AITransformMappingProjection
AITransformProjection
object
AITransformProjection
AITransformResultDto
object
AITransformResultDto
AITransformResultProjectionDto
object
AITransformResultProjectionDto
AliasDto
objectEmail alias representation
AliasDto
AliasProjection
objectRepresentation of a alias
AliasProjection
AliasThreadProjection
objectA thread is a message thread created for a message received by an alias
AliasThreadProjection
AnalyzeDmarcReportOptions
object
AnalyzeDmarcReportOptions
AnalyzeDmarcReportResults
objectAggregate analysis results for an uploaded DMARC XML report
AnalyzeDmarcReportResults
AnalyzeEmailHeadersOptions
object
AnalyzeEmailHeadersOptions
AnalyzeEmailHeadersResults
object
AnalyzeEmailHeadersResults
AttachmentEntityDto
objectDTO representation of an attachment.
AttachmentEntityDto
AttachmentMetaData
objectMeta data associated with an attachment. Attachments are stored as byte blobs so the meta data is stored separately.
AttachmentMetaData
AttachmentProjection
objectEmail attachment data
AttachmentProjection
AuditLogEventDto
object
AuditLogEventDto
AuditLogPageDto
object
AuditLogPageDto
AuditLogSearchOptions
object
AuditLogSearchOptions
AvailablePhoneNumberDto
object
AvailablePhoneNumberDto
AvailablePhoneNumbersResult
object
AvailablePhoneNumbersResult
BasicAuthOptions
objectBasic Authentication options for webhooks. Will be used is present when calling webhook endpoints.
BasicAuthOptions
BouncedEmailDto
objectBounced email
BouncedEmailDto
BouncedRecipientDto
objectBounced recipient
BouncedRecipientDto
BounceProjection
objectBounced email event
BounceProjection
BounceRecipientProjection
objectBounced recipient
BounceRecipientProjection
BulkSendEmailOptions
objectOptions for bulk sending an email from multiple addresses. See regular `sendEmail` methods for more information.
BulkSendEmailOptions
CampaignProbeDto
object
CampaignProbeDto
CampaignProbeInsightsDto
object
CampaignProbeInsightsDto
CampaignProbeRunComparisonDto
object
CampaignProbeRunComparisonDto
CampaignProbeRunDto
object
CampaignProbeRunDto
CampaignProbeRunDueResult
object
CampaignProbeRunDueResult
CampaignProbeRunNowResult
object
CampaignProbeRunNowResult
CampaignProbeSeriesDto
object
CampaignProbeSeriesDto
CampaignProbeSeriesPointDto
object
CampaignProbeSeriesPointDto
CancelDevicePreviewRunOptions
object
CancelDevicePreviewRunOptions
CancelDevicePreviewRunResult
object
CancelDevicePreviewRunResult
CanSendEmailResults
object
CanSendEmailResults
CheckCampaignProbeOptions
objectOne-shot public campaign probe preflight check options
CheckCampaignProbeOptions
CheckCampaignProbeResults
objectOne-shot public campaign probe preflight results
CheckCampaignProbeResults
CheckDnsPropagationOptions
object
CheckDnsPropagationOptions
CheckDnsPropagationResults
objectDNS propagation status across configured resolvers
CheckDnsPropagationResults
CheckDomainMonitorOptions
objectOne-shot public domain monitor check options
CheckDomainMonitorOptions
CheckDomainMonitorResults
objectOne-shot public domain monitor check results
CheckDomainMonitorResults
CheckEmailAuditOptions
objectAnonymous one-shot email audit request
CheckEmailAuditOptions
CheckEmailAuthStackOptions
object
CheckEmailAuthStackOptions
CheckEmailAuthStackResults
objectCombined authentication and deliverability DNS results for a domain
CheckEmailAuthStackResults
CheckEmailBlacklistOptions
objectCheck a domain, IP address, or specific MX host against configured DNS blacklists
CheckEmailBlacklistOptions
CheckEmailBlacklistResults
objectPublic blacklist lookup results for a domain or IP address
CheckEmailBlacklistResults
CheckEmailBodyFeatureSupportResults
object
CheckEmailBodyFeatureSupportResults
CheckEmailBodyResults
object
CheckEmailBodyResults
CheckEmailClientSupportOptions
objectOptions for the email to be validated
CheckEmailClientSupportOptions
CheckEmailClientSupportResults
object
CheckEmailClientSupportResults
CheckEmailFeaturesClientSupportOptions
object
CheckEmailFeaturesClientSupportOptions
CheckEmailFeaturesClientSupportResults
object
CheckEmailFeaturesClientSupportResults
CodeCandidate
objectCandidate verification code extracted from content
CodeCandidate
Complaint
object
Complaint
ConditionalStructuredContentResult
object
ConditionalStructuredContentResult
ConditionOption
objectOptions for matching emails in an inbox based on a condition such as `HAS_ATTACHMENTS=TRUE`
ConditionOption
ConnectorDto
object
ConnectorDto
ConnectorEventDto
object
ConnectorEventDto
ConnectorEventProjection
objectConnectorEventProjection
ConnectorEventProjection
ConnectorImapConnectionDto
object
ConnectorImapConnectionDto
ConnectorImapConnectionTestResult
object
ConnectorImapConnectionTestResult
ConnectorProjection
objectConnector
ConnectorProjection
ConnectorProviderSettingsDto
object
ConnectorProviderSettingsDto
ConnectorSmtpConnectionDto
object
ConnectorSmtpConnectionDto
ConnectorSmtpConnectionTestResult
object
ConnectorSmtpConnectionTestResult
ConnectorSyncRequestResult
object
ConnectorSyncRequestResult
ConnectorSyncResult
object
ConnectorSyncResult
ConnectorSyncSettingsDto
object
ConnectorSyncSettingsDto
ConsentStatusDto
object
ConsentStatusDto
ContactDto
objectContact object. For saving a user in contact book.
ContactDto
ContactProjection
objectEmail contact for address book
ContactProjection
ContentMatchOptions
objectOptions for matching content using regex patterns based on Java Pattern syntax
ContentMatchOptions
CountDto
objectNumber of elements
CountDto
CreateAITransformerMappingOptions
object
CreateAITransformerMappingOptions
CreateAliasOptions
objectCreate email alias options. Email aliases can be used to mask real email addresses behind an ID. You can also attach an inbox to an alias so that any email received by the inbox email address if forwarded to the alias email address.
CreateAliasOptions
CreateCampaignProbeOptions
objectCreate options for a campaign probe
CreateCampaignProbeOptions
CreateCampaignProbeRunOptions
objectDirect invoke options for campaign probe analysis
CreateCampaignProbeRunOptions
CreateConnectorImapConnectionOptions
objectOptions for IMAP connection to external email inbox. Allows syncing emails via IMAP.
CreateConnectorImapConnectionOptions
CreateConnectorOptions
objectOptions for creating an inbox connection with an external mail provider
CreateConnectorOptions
CreateConnectorSmtpConnectionOptions
object
CreateConnectorSmtpConnectionOptions
CreateConnectorSyncSettingsOptions
objectOptions for creating automatic syncing between an inbox connection and an external mail provider
CreateConnectorSyncSettingsOptions
CreateConnectorWithOptions
objectOptions for creating an inbox connection with an external mail provider including extra settings
CreateConnectorWithOptions
CreateContactOptions
objectOptions for creating an email contact in address book
CreateContactOptions
CreateDeliverabilitySimulationJobOptions
objectCreate a simulation job for a load test
CreateDeliverabilitySimulationJobOptions
CreateDeliverabilityTestOptions
objectCreate a new load test
CreateDeliverabilityTestOptions
CreateDevicePreviewFeedbackOptions
object
CreateDevicePreviewFeedbackOptions
CreateDevicePreviewHtmlImportOptions
object
CreateDevicePreviewHtmlImportOptions
CreateDevicePreviewImportOptions
object
CreateDevicePreviewImportOptions
CreateDevicePreviewIngestAddressOptions
object
CreateDevicePreviewIngestAddressOptions
CreateDevicePreviewOptions
object
CreateDevicePreviewOptions
CreateDevicePreviewProfileOptions
object
CreateDevicePreviewProfileOptions
CreateDevicePreviewRunResult
object
CreateDevicePreviewRunResult
CreateDomainMonitorAlertSinkOptions
object
CreateDomainMonitorAlertSinkOptions
CreateDomainMonitorOptions
objectCreate options for a domain monitor
CreateDomainMonitorOptions
CreateDomainOptions
objectOptions for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not function correctly until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. Domains can be either `HTTP` or `SMTP` type. The type of domain determines which inboxes can be used with it. `SMTP` inboxes use a mail server running `mxslurp.click` while `HTTP` inboxes are handled by AWS SES.
CreateDomainOptions
CreateEmailAuditOptions
objectAuthenticated saved email audit request
CreateEmailAuditOptions
CreateEmergencyAddressOptions
object
CreateEmergencyAddressOptions
CreateGroupOptions
objectCreate contact group options
CreateGroupOptions
CreateInboxDto
objectOptions for creating an inbox. An inbox has a real email address that can send and receive emails. Inboxes can be permanent or expire at a given time. Inboxes are either `SMTP` or `HTTP` mailboxes. `SMTP` inboxes are processed by a mail server running at `mailslurp.mx` while `HTTP` inboxes are processed by AWS SES backed mailservers. An inbox email address is randomly assigned by default ending in either `mailslurp.com` or (if `useDomainPool` is enabled) ending in a similar domain such as `mailslurp.xyz` (selected at random). To specify an address use a custom domain: either pass the `emailAddress` options with ` @ `. To create a randomized address for your domain set the `domainName` to th...
CreateInboxDto
CreateInboxForwarderOptions
objectOptions for creating an inbox forwarder
CreateInboxForwarderOptions
CreateInboxOptions
Current OpenAPI schema: CreateInboxDto
objectOptions for creating inboxes, including email address, domain settings, name, tags, expiration, team access, and inbox type.
CreateInboxOptions
Current OpenAPI schema: CreateInboxDto