Skip to content
KVKK & GDPR Compliant Turkey Data Center 24/7 Technical Support destek@mxgate.com.tr
New: IP reputation monitoring is now free on every plan Start your 1-month free trial →
REST (Web) API · Amazon SES v2 compatible

Email API: send straight from your code

Send your application’s email with an HTTPS request, without running an SMTP server. The REST (web) API and the Amazon SES compatible endpoint are included on every plan; only monthly sending volume and the number of sender domains separate the plans. When the limit is reached sending stops, so there is no surprise overage bill.

API Starter
$19 USD / mo + VAT
MONTHLY SENDING 50,000 emails / month · 1 sender domain per 1,000 emails $0.38
REST (Web) API and MXGate SES — both included Amazon SES v2 compatible: just change the endpoint Turkish IP pool and Turkish data centre Sender domains verified with DKIM and SPF
API Business
$149 USD / mo + VAT
MONTHLY SENDING 500,000 emails / month · 10 sender domains per 1,000 emails $0.30
REST (Web) API and MXGate SES — both included Amazon SES v2 compatible: just change the endpoint Turkish IP pool and Turkish data centre Sender domains verified with DKIM and SPF
API Scale
$279 USD / mo + VAT
MONTHLY SENDING 1,000,000 emails / month · Unlimited sender domains per 1,000 emails $0.28
REST (Web) API and MXGate SES — both included Amazon SES v2 compatible: just change the endpoint Turkish IP pool and Turkish data centre Sender domains verified with DKIM and SPF

For volumes above 1,000,000 emails a month, request a quote; a dedicated IP is available on request. Mail gateway and smarthost plans are on a separate pricing page.

ON EVERY PLAN

Two doors, one key, one sending allowance

You do not pick the access method by plan; both are open and share the same monthly allowance with the same key. For a new application the REST API, and for a system already on Amazon SES the MXGate SES endpoint, is the shortest path.

REST (Web) API

Send one message, or one template to many recipients, as JSON; templates, the suppression list and message status live in the same API. Authentication is a single header: Authorization: Bearer key:secret.

Keys and IP restrictions

Open a separate key per application (up to 20) and set allowed IPs; pausing or revoking one does not affect the others. All from the client area.

MXGate SES

An endpoint compatible with the Amazon SES v2 API. In your AWS SDK you change only the endpoint and the key; your sending code stays as it is.

FIRST MESSAGE

Sending email with the REST API is one request

The response returns a message ID; you query delivery status with it or receive it instantly through a webhook.

curl -X POST https://your-api-host/v1/email/send \
  -H "Authorization: Bearer $MXGATE_KEY:$MXGATE_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"from": "info@your-domain.com",
       "to": "customer@example.com",
       "subject": "Your order is confirmed",
       "text": "Thank you!"}'

# → 202 {"message_id": "…", "status": "accepted"}

Your API address and keys arrive in your email and client area after ordering.

REGARDLESS OF PLAN

What is the same on every plan

Delivery status and logs

Per-recipient accepted, delivered, deferred, bounced and rejected states. Message logs are kept for 90 days.

Signed webhooks

Send, delivery, bounce and delay events are POSTed to your server in the Amazon SES event format; you verify their origin with an HMAC-SHA256 signature.

Templates and bulk sending

Save a template once and send it to each recipient with their own data in a single request.

Suppression list

Bounced or unsubscribed addresses are not sent to again; you manage the list from the API.

Domains verified with DKIM and SPF

Sending is allowed only from domains whose DKIM and SPF records are verified; the records and a “Check DNS” button are in the client area.

Turkish IP pool

Mail leaves from the IP pool in Turkey; data is processed in the data centre in Turkey.

If you send from your server over SMTP, the right product is smarthost; the API plans are for sending from inside an application.

FAQ

Questions about the email API

What is the difference between the Web API and the REST API?

There is none: MXGate’s web API is the REST API, which works with JSON over HTTPS. MXGate SES is a second, Amazon SES v2 compatible door to the same account. Both come with every plan and use the same key and the same monthly allowance. Calls must come from your server; calling from the browser (JavaScript) is not supported, because the secret key would be exposed in the page.

What happens when the monthly limit is reached?

Once the limit is reached new sends are refused; there is no surprise overage bill. The allowance renews at the start of the month. To continue without waiting, move to a higher plan in the client area; you pay only the difference for the remaining days and the new limit opens right after payment.

What do I need to change to move an application that uses Amazon SES?

MXGate SES speaks the Amazon SES v2 API. In your AWS SDK you change the endpoint to the one MXGate gives you and use your MXGate access key; your sending code stays the same. Event records also arrive in the Amazon SES event format.

What do I need to do before sending?

Your sender address must be on a verified domain. You enter the DKIM and SPF records shown for your domain into your DNS; until both are verified, sends from that domain are refused. Verification runs automatically every few minutes and you can also check right away in the client area. If the domain is already used by a smarthost service, you pick a subdomain such as notify.yourcompany.com for the API.

How do I track delivery?

Every send returns a message ID that you use to query per-recipient status (accepted, delivered, deferred, bounced, rejected). Send, delivery, bounce and delay events are pushed to your server instantly through a signed webhook or can be read from the API for 7 days. Message logs are kept for 90 days.

How many domains can I send from?

It depends on the plan: API Starter includes 1 sender domain, API Growth 3 and API Business 10; API Scale has no limit. You add domains yourself in the client area and verify each by entering its DKIM and SPF records into your DNS. All domains share the same monthly allowance. When you need more domains, you move to a higher plan. If you move to a plan with fewer domains, your domains are paused and you choose which to keep in the client area; the others are not deleted and reopen when you upgrade again.

Can I get a dedicated IP?

Yes, on request. Standard sending leaves from the shared IP pool in Turkey; for high-volume, regular sending a dedicated IP is assigned with a routing rule our team sets up for your sender domain. Contact us for the terms.

In which currency are the prices?

Prices are in US dollars, monthly and exclude VAT, with no long-term commitment. A quote is prepared for volumes above 1,000,000 emails a month.

Not sure about your monthly volume?

Start with a small plan; the panel warns you as the limit approaches and you upgrade in one click, paying only the difference for the remaining days.

Start with API Starter Talk to sales
Prices USD · monthly · Last updated: