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:

Webhooks

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

Complaints

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

Domains

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

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

Stats

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

Whitelists

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

Messages

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

Email Validation

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

Bounces

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