Mailgun API (v3)

v3.0 Base URL: https://mg-api.omnivery.net/v3

Omnivery API allows you to send messages, retrieve delivery stats, check and configure your sending domains and more in multiple formats. This documentation covers the Mailgun v3 compatible API of Omnivery.

As this API is fully compatible with the Mailgun (v3) API any existing software or library supporting Mailgun (v3) API should work without any changes required. The only change that may be required would be the change of the endpoint and API token

This REST API requires all requests to be authenticated using Basic authenticaiton with username api and your access token as a password. API tokens can be found in the UI under Credentials menu in API Keys tab (for domain specific/sending tokens) or under API keys menu. For security reasons we strongly suggest using domain specific API keys rather than account API keys whenever possible.

All data to the API endpoint must be posted in form-data format.

Available endpoints

Global (automatic geo-selection): https://mg-api.omnivery.net/v3
Europe: https://eu.mg-api.omnivery.net/v3
US: https://us.mg-api.omnivery.net/v3

Unlike Mailgun, Omnivery doesn't require you to have different credentials for different geographic zones. The endpoint is only used for selecting the server closest to you or to minimize transfers between zones. The actual data will be always stored in location according to the zone set for each respective domain used. You can use the same credentials for all the zones.

Authentication

  • basic: HTTP basic

Enter your credentials below to use the Try it feature:

Domains

PATCH /{domain}/disable Disable domain
GET /domains/{domain}/tracking Get domain tracking settings
GET /domains/{domain}/credentials Get SMTP credentials for a domain
POST /domains/{domain}/credentials Create new SMTP credentials
GET /domains Get domains
POST /domains Create new domain
DELETE /domains/{domain}/credentials/{login} Delete SMTP credentials
PUT /domains/{domain}/credentials/{login} Update SMTP credentials
DELETE /domains/{domain} Delete domain
GET /domains/{domain} Get single domain
PUT /domains/{domain}/verify Verify domain

Bounces

GET /{domain}/bounces Get bounces
POST /{domain}/bounces Add single bounce
DELETE /{domain}/bounces Delete bounce list
DELETE /{domain}/bounces/{address} Delete bounce
GET /{domain}/bounces/{address} Get single bounce

Complaints

GET /{domain}/complaints Get all complaints
POST /{domain}/complaints Add single complaint
GET /{domain}/complaints/{address} Get single complaint
DELETE /{domain}/complaints/{address} Delete single complaint

Whitelists

DELETE /{domain}/whitelists/{address} Delete record from whitelist
GET /{domain}/whitelists/{address} Get whitelist record
POST /{domain}/whitelists Add record to whitelist
GET /{domain}/whitelists Get whitelist

Messages

POST /{domain}/messages.mime Send message with MIME
POST /{domain}/messages Send message

Stats

GET /{domain}/stats/total Get domain stats

Unsubscribes

GET /{domain}/unsubscribes Get domain unsubscribes
POST /{domain}/unsubscribes Add single unsubscribe
GET /{domain}/unsubscribes/{address} Get single unsubscribe
DELETE /{domain}/unsubscribes/{address} Delete single unsubscribe

Email Validation

GET /address/private/validate Validate address
GET /address/private/parse Parse email address

Webhooks

GET /domains/{domain}/webhooks Get webhooks
POST /domains/{domain}/webhooks Create webhook
GET /domains/{domain}/webhooks/{webhookname} Get webhook details
PUT /domains/{domain}/webhooks/{webhookname} Update webhook
DELETE /domains/{domain}/webhooks/{webhookname} Delete webhook