# Mandrill API

> Mandrill is a reliable, scalable, and secure delivery API for transactional emails from websites and applications. It's ideal for sending data-driven transactional emails, including targeted e-commerce and personalized one-to-one messages.

Mandrill is an email API from mandrillapp.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 90 endpoints.

## At a glance

- Category: [Email](https://www.openparable.com/apis/category/email)
- Provider: mandrillapp.com
- Authentication: None (no API key)
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://mandrillapp.com/api/1.0/
- Documentation: https://mandrillapp.com/api/docs/
- OpenAPI description: https://api.apis.guru/v2/specs/mandrillapp.com/1.0/swagger.json
- Version: 1.0
- Specification updated: 2021-06-21

## Example request

```bash
curl -X POST "https://mandrillapp.com/api/1.0/exports/activity.json" \
  -H "Accept: application/json"
```

## Endpoints

- `POST /exports/activity.json` — Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you
- `POST /exports/info.json` — Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every e
- `POST /exports/list.json` — Returns a list of your exports.
- `POST /exports/rejects.json` — Begins an export of your rejection blacklist. The blacklist will be exported to a zip archive containing a single file named rejects.csv that includes the follo
- `POST /exports/whitelist.json` — Begins an export of your rejection whitelist. The whitelist will be exported to a zip archive containing a single file named whitelist.csv that includes the fol
- `POST /inbound/add-domain.json` — Add an inbound domain to your account
- `POST /inbound/add-route.json` — Add a new mailbox route to an inbound domain
- `POST /inbound/check-domain.json` — Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call
- `POST /inbound/delete-domain.json` — Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
- `POST /inbound/delete-route.json` — Delete an existing inbound mailbox route
- `POST /inbound/domains.json` — List the domains that have been configured for inbound delivery
- `POST /inbound/routes.json` — List the mailbox routes defined for an inbound domain
- `POST /inbound/send-raw.json` — Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP
- `POST /inbound/update-route.json` — Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
- `POST /ips/cancel-warmup.json` — Cancels the warmup process for a dedicated IP.
- `POST /ips/check-custom-dns.json` — Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
- `POST /ips/create-pool.json` — Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
- `POST /ips/delete-pool.json` — Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
- `POST /ips/delete.json` — Deletes a dedicated IP. This is permanent and cannot be undone.
- `POST /ips/info.json` — Retrieves information about a single dedicated ip.
- `POST /ips/list-pools.json` — Lists your dedicated IP pools.
- `POST /ips/list.json` — Lists your dedicated IPs.
- `POST /ips/pool-info.json` — Describes a single dedicated IP pool.
- `POST /ips/provision.json` — Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 h
- `POST /ips/set-custom-dns.json` — Configures the custom DNS name for a dedicated IP.
- `POST /ips/set-pool.json` — Moves a dedicated IP to a different pool.
- `POST /ips/start-warmup.json` — Begins the warmup process for a dedicated IP. During the warmup process, Mandrill will gradually increase the percentage of your mail that is sent over the warm
- `POST /messages/cancel-scheduled.json` — Cancels a scheduled email.
- `POST /messages/content.json` — Get the full content of a recently sent message
- `POST /messages/info.json` — Get the information for a single recently sent message
- `POST /messages/list-scheduled.json` — Queries your scheduled emails by sender or recipient, or both.
- `POST /messages/parse.json` — Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces
- `POST /messages/reschedule.json` — Reschedules a scheduled email.
- `POST /messages/search-time-series.json` — Search the content of recently sent messages and return the aggregated hourly stats for matching messages
- `POST /messages/search.json` — Search the content of recently sent messages and optionally narrow by date range, tags and senders. This method may be called up to 20 times per minute. If you
- `POST /messages/send-raw.json` — Take a raw MIME document for a message, and send it exactly as if it were sent through Mandrill's SMTP servers
- `POST /messages/send-template.json` — Send a new transactional message through Mandrill using a template
- `POST /messages/send.json` — Send a new transactional message through Mandrill
- `POST /metadata/add.json` — Add a new custom metadata field to be indexed for the account.
- `POST /metadata/delete.json` — Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion proc
- `POST /metadata/list.json` — Get the list of custom metadata fields indexed for the account.
- `POST /metadata/update.json` — Update an existing custom metadata field.
- `POST /rejects/add.json` — Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from you
- `POST /rejects/delete.json` — Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on yo
- `POST /rejects/list.json` — Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expir
- `POST /senders/add-domain.json` — Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
- `POST /senders/check-domain.json` — Checks the SPF and DKIM settings for a domain. If you haven't already added this domain to your account, it will be added automatically.
- `POST /senders/domains.json` — Returns the sender domains that have been added to this account.
- `POST /senders/info.json` — Return more detailed information about a single sender, including aggregates of recent stats
- `POST /senders/list.json` — Return the senders that have tried to use this account.
- `POST /senders/time-series.json` — Return the recent history (hourly stats for the last 30 days) for a sender
- `POST /senders/verify-domain.json` — Sends a verification email in order to verify ownership of a domain. Domain verification is an optional step to confirm ownership of a domain. Once a domain has
- `POST /subaccounts/add.json` — Add a new subaccount
- `POST /subaccounts/delete.json` — Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will
- `POST /subaccounts/info.json` — Given the ID of an existing subaccount, return the data about it
- `POST /subaccounts/list.json` — Get the list of subaccounts defined for the account, optionally filtered by a prefix
- `POST /subaccounts/pause.json` — Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed.
- `POST /subaccounts/resume.json` — Resume a paused subaccount's sending
- `POST /subaccounts/update.json` — Update an existing subaccount
- `POST /tags/all-time-series.json` — Return the recent history (hourly stats for the last 30 days) for all tags
- `POST /tags/delete.json` — Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this
- `POST /tags/info.json` — Return more detailed information about a single tag, including aggregates of recent stats
- `POST /tags/list.json` — Return all of the user-defined tag information
- `POST /tags/time-series.json` — Return the recent history (hourly stats for the last 30 days) for a tag
- `POST /templates/add.json` — Add a new template
- `POST /templates/delete.json` — Delete a template
- `POST /templates/info.json` — Get the information for an existing template
- `POST /templates/list.json` — Return a list of all the templates available to this user
- `POST /templates/publish.json` — Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
- `POST /templates/render.json` — Inject content and optionally merge fields into a template, returning the HTML that results
- `POST /templates/time-series.json` — Return the recent history (hourly stats for the last 30 days) for a template
- `POST /templates/update.json` — Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
- `POST /urls/add-tracking-domain.json` — Add a tracking domain to your account
- `POST /urls/check-tracking-domain.json` — Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call
- `POST /urls/list.json` — Get the 100 most clicked URLs
- `POST /urls/search.json` — Return the 100 most clicked URLs that match the search query given
- `POST /urls/time-series.json` — Return the recent history (hourly stats for the last 30 days) for a url
- `POST /urls/tracking-domains.json` — Get the list of tracking domains set up for this account
- `POST /users/info.json` — Return the information about the API-connected user
- `POST /users/ping.json` — Validate an API key and respond to a ping
- `POST /users/ping2.json` — Validate an API key and respond to a ping (anal JSON parser version)
- `POST /users/senders.json` — Return the senders that have tried to use this account, both verified and unverified
- `POST /webhooks/add.json` — Add a new webhook
- `POST /webhooks/delete.json` — Delete an existing webhook
- `POST /webhooks/info.json` — Given the ID of an existing webhook, return the data about it
- `POST /webhooks/list.json` — Get the list of all webhooks defined on the account
- `POST /webhooks/update.json` — Update an existing webhook
- `POST /whitelists/add.json` — Adds an email to your email rejection whitelist. If the address is currently on your blacklist, that blacklist entry will be removed automatically.
- `POST /whitelists/delete.json` — Removes an email address from the whitelist.
- `POST /whitelists/list.json` — Retrieves your email rejection whitelist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results.

## Questions

### Does the Mandrill API need an API key?

No. The Mandrill API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

### Does the Mandrill API support HTTPS?

Yes, the Mandrill API is served over HTTPS.

### How many endpoints does the Mandrill API have?

Its OpenAPI description lists 90 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the Mandrill API?

Other Email APIs include Sendgrid, Sendinblue, mail.tm, Guerrilla Mail, Postmark Account-level API.

## Similar email APIs

- [Sendgrid](https://www.openparable.com/apis/sendgrid): A cloud-based SMTP provider that allows you to send emails without having to maintain email servers
- [Sendinblue](https://www.openparable.com/apis/sendinblue): A service that provides solutions relating to marketing and/or transactional email and/or SMS
- [mail.tm](https://www.openparable.com/apis/mail-tm): Temporary Email Service
- [Guerrilla Mail](https://www.openparable.com/apis/guerrilla-mail): Disposable temporary Email addresses
- [Postmark Account-level API](https://www.openparable.com/apis/postmark-account-level): Postmark makes sending and receiving email incredibly easy. The Account-level API allows users to configure all Servers, Domains, and Sender Signatures associated with an Account.
- [ImprovMX](https://www.openparable.com/apis/improvmx): API for free email forwarding service
- [Mailtrap](https://www.openparable.com/apis/mailtrap): Email API and SMTP for sending transactional and bulk emails, with email testing sandbox for safe development
- [Postmark API](https://www.openparable.com/apis/postmark): Postmark makes sending and receiving email incredibly easy.
- [DropMail](https://www.openparable.com/apis/dropmail): GraphQL API for creating and managing ephemeral e-mail inboxes
- [Kickbox](https://www.openparable.com/apis/kickbox): Email verification API
- [Email Validation](https://www.openparable.com/apis/email-validation): Validate email addresses for deliverability and spam
- [Resend](https://www.openparable.com/apis/resend): Email API for developers

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/mandrill (OpenParable). Cite the canonical URL above.
