API

Mailgun

The Email Service for Developers and their Apps.

Overview

The Mailgun API is built on HTTP. Their API is RESTful and it:

  • Uses predictable, resource-oriented URLs.
  • Uses built-in HTTP capabilities for passing parameters and authentication.
  • Responds with standard HTTP response codes to indicate errors.
  • Returns JSON.

Mailgun has published Libraries for various languages. You may use our libraries, or your favorite HTTP/REST library available for your programming language, to make HTTP calls to Mailgun. Visit our Libraries page to see HTTP REST libraries we recommend.

To give you an idea of how to use the API, we have annotated our documentation with code samples written in several popular programming languages. Use the language selector at the top to switch between them.

Our samples from quickstart, User Manual, and API Reference provide examples that will function. You’re welcome to copy/paste and run the script to see the API in action.

For the full reference please check this site.