Transactional Email via API | Interweb Mozambique

Transactional Email

Invoices, confirmations and password resets sent through our API, from your verified domain, with every step logged.

An email your system writes on its own

Invoices, order confirmations, password resets and account notices: emails your system sends one by one, the very moment something happens to a customer.

From Your Company <[email protected]>
Subject Invoice {{number}} is ready
09:41
Hello {{name}},
invoice {{number}} for {{amount}} is now ready and is due on {{date}}.
View the invoice
invoice.pdf 84 KB
Sent 09:41:02Delivered 09:41:04Webhook notice
  1. A sender on your domain

    Send from invoices@, info@ or any other address on your own verified domain, always with DKIM, SPF and DMARC.

  2. Templates with variables

    Save the subject and body once, with {{name}}, {{amount}} and {{date}}; each request only carries the values.

  3. Attachments in the request

    Add invoices, receipts and tickets as PDF files, encoded in base64, up to 5 MB in total per email, in the same request.

  4. Every step logged

    Sent, delivered, bounced or marked as spam: each status goes into the log and reaches you by webhook, right away.

Price per 1,000 emails

Tiered bands: each band only charges the emails of the month that fall in it.

  • First 1,000$5.25per 1,000
  • 1,001 to 10,000$0.83per 1,000
  • Best priceAbove 10,000$0.53per 1,000

One credit balance shared with E-mail Marketing and SMTP Relay, with no monthly fee.

Your first email in minutes

Start with a Sandbox key, which validates your requests without sending anything or using credits. When you are ready, switch to a Production key.

  1. Add your domain in the Email Center and publish the DKIM, SPF and DMARC records we give you.
  2. Create a key sandbox_ in the API Center, with the email_center:write scope, and keep it on your server.
  3. Send the request POST /v1/email/messages and, once the Sandbox response is right, switch to the prod_ key.
  • Idempotency-Key: never the same email twice.
  • Signed webhook: a notice for every delivery and bounce.
  • JSON response: status, recipients and cost.
curl https://api.interweb.co.mz/v1/email/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: invoice-2026-214" \
  -d '{"from": "[email protected]",
       "to": "[email protected]",
       "template_id": 12,
       "variables": {"name": "João", "number": "FT 2026/214"}}'
201 CreatedSandboxAPI response
{
  "data": {
    "id": "5120", "status": "simulated", "simulated": true,
    "to": ["[email protected]"], "recipients": 1,
    "subject": "Invoice FT 2026/214 is ready",
    "template_id": 12, "charged": false, "suppressed": []
  }
}

25 operations, neatly grouped by area

They all start at https://api.interweb.co.mz, with the key in the Authorization: Bearer header. The full list, with every field and response, is in the documentation.

  • Messages

    • POST/v1/email/messages
    • POST/v1/email/messages/batch
    • GET/v1/email/messages
    • GET/v1/email/messages/{id}
    • POST/v1/email/messages/{id}/cancel
  • Domains

    • GET/v1/email/domains
    • POST/v1/email/domains
    • GET/v1/email/domains/{domain}
    • DELETE/v1/email/domains/{domain}
    • POST/v1/email/domains/{domain}/verify
    • PUT/v1/email/domains/{domain}/mail-from
  • Templates

    • GET/v1/email/templates
    • POST/v1/email/templates
    • GET/v1/email/templates/{id}
    • PATCH/v1/email/templates/{id}
    • DELETE/v1/email/templates/{id}
  • Webhook

    • GET/v1/email/webhook
    • PUT/v1/email/webhook
    • DELETE/v1/email/webhook
    • POST/v1/email/webhook/test
  • Suppression list

    • GET/v1/email/suppressions
    • POST/v1/email/suppressions
    • DELETE/v1/email/suppressions/{email}
  • Account

    • GET/v1/email/balance
    • GET/v1/email/stats

A verified domain, the right inbox

Before the first send, your domain is verified. That is what separates an email that lands in the inbox from one that ends up in the spam folder.

RecordWhat it doesExample
DKIMRequiredSigns every email, to prove it was not changed on the way.em…._domainkey TXT v=DKIM1; k=rsa; p=…
SPFRecommendedSays that our servers may send on behalf of your domain.TXT v=spf1 include:… ~all
DMARCRecommendedTells the receiver what to do if a message fails the check._dmarc TXT v=DMARC1; p=none
MAIL FROMOptionalA subdomain of yours for bounces, which aligns SPF.bounce CNAME …

The exact values appear in Email Center when you add the domain, and the verification checks them for you.

Transactional email in every operation

When an invoice is issued, an account is created or an order ships, the customer gets the right message straight away. Nobody has to remember to write it.

  • Invoices and receipts

    Send the invoice with the PDF attached once it is issued, the receipt when payment comes in and a reminder before it is due.

    Invoice FT 2026/214 is readyHello João, your invoice is due on 30/11.invoice.pdf · now
    Read the full guide
  • Accounts and passwords

    Welcome emails, address confirmation, new sign-in alerts and password resets, with a link that only works once and expires soon.

    Reset your passwordUse this link within the next 30 minutes.Your Company · 1 min
    Read the full guide
  • Orders and deliveries

    Confirm the paid order, send a summary of what was bought and let the customer know when it leaves for delivery.

    Order No. 8812 confirmedYour order leaves for delivery today.Your Company · 2 min
    Read the full guide

Know what happened to every email

Each message goes through a series of statuses. The log keeps them and the webhook tells your system, so it can react without anyone watching.

The statuses of an email:

  • scheduled
  • queued
  • sent
  • delivered
  • bounced
  • complained
  • failed
  • simulated
  • A log of every email

    Who it went to, when it left and what happened to it, with filters and the stats for the month.

  • Automatic blocking

    Addresses that bounce or complain stop receiving your emails, to protect your sender reputation.

  • Signed webhooks

    A notice to your HTTPS address for every event, with a signature so you can confirm where it came from.

  • Scheduled sends

    Set the time with send_at, up to 30 days ahead, and cancel if plans change.

  • Batch sending

    Many emails in one request, each with its own recipient and variables.

  • SMTP as well

    If your software only speaks SMTP, use SMTP Relay with the very same domains.

Sandbox or Production: click to compare

Both keys use the same address and the same operations. The difference is what happens when you send.

Key prefix
sandbox_
Is the email sent?
No: the request is validated and returns simulated: true.
Credits
None are used.
Bounces and complaints
Simulate with [email protected] and [email protected].
What it is for
Building and testing without risk.

Secure keys, rules made to measure

Each key has its own scopes and can be revoked at any time. Requests always travel over HTTPS, with no exceptions.

  • Separate scopes

    email_center:read to look things up and email_center:write to send.

  • IP allowlist

    Optional: the key only works from the addresses that you list.

  • Expiry and revocation

    30, 90 or 365 days, or no expiry at all. Revoke it whenever you like.

  • Safe retries

    With Idempotency-Key, the same request sent twice never sends twice.

  • Signed webhook

    Every notice carries X-Webhook-Signature, an HMAC-SHA256 with your secret.

  • Checked attachments

    Up to 5 MB per email, and executable files are always refused outright.

Transactional Email pricing, in bands

Pay only for the emails you send, at a price per 1,000. Each band charges only the emails that fall in it, and the price per 1,000 drops as you send more.

  • Up to 1,000$5.25per 1,000 emailsBase price
  • 1,001 to 10,000$0.83per 1,000 emailsSave 84%
  • Over 10,000$0.53per 1,000 emailsSave 90%

Each recipient counts as one email, and the bands start again at the beginning of each month. No monthly fee, and credits never expire.

Emails your system sends on its own

Templates ready to copy. The inbox shows how they reach the customer.

  • Invoice issued

    Subject Invoice {{number}} is ready

    Hello {{name}}, invoice {{number}} for {{amount}} is now ready and is due on {{date}}. It is attached, and you can pay it at {{link}}.

    When the invoice is issued.
  • Password reset

    Subject Reset your password

    Hello {{name}}, we received a request to change your password. Use this link within the next 30 minutes: {{link}}. Not you? Just ignore this email.

    Right after the request.
  • Order confirmed

    Subject Order No. {{number}} confirmed

    Hello {{name}}, order No. {{number}} has been paid and is already being prepared. You will get another email when it leaves for delivery, with the courier's contact.

    After the payment.
  • Your CompanyInvoice FT 2026/214 is readyYour MZN 2,450.00 invoice is due on 30/11/2026.
  • Your CompanyReset your passwordUse this link within the next 30 minutes.
  • Your CompanyOrder No. 8812 confirmedOrder No. 8812 is already being prepared.
From Your Company
Subject Invoice FT 2026/214 is ready

Hello João, invoice FT 2026/214 for MZN 2,450.00 is now ready and is due on 30/11/2026. It is attached, and you can pay it at yourcompany.co.mz/pay.

invoice.pdf 84 KB

Click a template or an email to see how it arrives.

Emails that arrive and get read

The habits that keep your emails in the inbox and well away from the spam folder.

Best practices

  • Verify the domain with DKIM, SPF and DMARC before sending.
  • Always use the same sender, such as invoices@.
  • Send the HTML along with a plain text version.
  • Always send an Idempotency-Key on retries.

Common mistakes

  • Mixing promotions into a service or account email.
  • Sending from a free address on behalf of the company.
  • Heavy attachments when a link would do.
  • Insisting on addresses that bounce or complain.

F.A.Q Transactional Email

Interweb

The most frequent questions about transactional email through the API

It is an email sent to one person because of something they did or something that concerns them: an invoice, an order confirmation, a password reset or an account notice. It is not advertising.

Yes. Add the domain in Email Center and publish the DKIM record we give you (required) and, ideally, SPF and DMARC too. The verification checks them for you, and after that you can send from any address on that domain.

Yes, such as invoices, receipts or tickets in PDF, sent in base64 inside the request itself. By default, up to 5 MB in total per email; executable files are refused.

The API is the most complete option, with templates, attachments and JSON responses. SMTP Relay is for software and websites that can only send over SMTP. For newsletters and promotions, use Email Marketing.

Yes, with the send_at field (ISO 8601, up to 30 days ahead), and cancel it before the time with POST /v1/email/messages/{id}/cancel. Credits are only used when the email goes out.

Buy credits with the “Buy credits” button, add your domain in Email Center and create a key in API Center. The price is per 1,000 emails a month, in tiered bands: $5.25 for the first 1,000, $0.83 per 1,000 from 1,001 to 10,000 and $0.53 per 1,000 above that. The maths is under Pricing. Credits are one single balance, shared with E-mail Marketing and SMTP Relay, and each transactional e-mail uses 1 credit.

Yes. Save templates with the subject, the HTML and the text, with variables such as {{name}}, and send by giving the template_id and the values for each email in variables.

Hard bounces and complaints go straight to the suppression list, and those addresses stop receiving. Sends to them are dropped from the request before sending and are never charged. You can view and manage the list through the API.

Yes. With a Sandbox key the request is validated and the full response comes back, but no email is sent and nothing is charged. Send to [email protected] or [email protected] to simulate a bounce or a complaint.

Sent, delivered, bounced, complained and failed, one notice per event and recipient, signed with X-Webhook-Signature. If your server does not answer within 5 seconds, we try again up to five more times.

Lightning OFFER

Web Hosting + FREE Domain **

:
:
:
Stay Online!
keyboard_arrow_up Drag Up
Logo Interweb

Premium OFFER

Web Hosting + FREE Domain **

Offer ends in:
:
:
:
Stay Online!
Close