Install the SDK
One package, typed end to end. npm install @forge/sdk, pip install forge, go get or composer require; all eight SDKs ship from the same spec on the same day.
Forge is the transactional email API for teams shipping to the UAE and Saudi Arabia. One POST, a signed webhook back, and your receipts, OTPs and magic links land in the inbox from a region you chose: UAE or Bahrain.
$ curl -X POST https://api.forge.ae/v1/emails \
-H "Authorization: Bearer fg_live_9k2mQ" \
-H "Forge-Region: uae" \
-d '{
"from": "Qasr <hello@qasr.ae>",
"to": ["noor@example.ae"],
"subject": "Your receipt #1042",
"html": "<p>Thanks for your order.</p>"
}'
// 202 Accepted · stored in ae-abudhabi-1
{ "id": "em_8f3kq2", "status": "queued" }
import { Forge } from '@forge/sdk';
const forge = new Forge(process.env.FORGE_API_KEY, { region: 'uae' });
const { id } = await forge.emails.send({
from: 'Qasr <hello@qasr.ae>',
to: ['noor@example.ae'],
subject: 'Your receipt #1042',
html: '<p>Thanks for your order.</p>',
});
console.log(id); // em_8f3kq2
from forge import Forge
forge = Forge(api_key="fg_live_9k2mQ", region="uae")
email = forge.emails.send(
from_="Qasr <hello@qasr.ae>",
to=["noor@example.ae"],
subject="Your receipt #1042",
html="<p>Thanks for your order.</p>",
)
print(email.id) # em_8f3kq2
Official SDKs, generated from one OpenAPI spec
Scroll through the steps. The code on the left follows along.
One package, typed end to end. npm install @forge/sdk, pip install forge, go get or composer require; all eight SDKs ship from the same spec on the same day.
Pass region: 'uae' or region: 'bahrain'. Message bodies, recipient addresses and event logs are stored and processed in that region only. Nothing is replicated outside the GCC.
One call. Add an Idempotency-Key and the same OTP is never sent twice, even if your worker crashes halfway through and replays the job.
Delivered, opened, bounced, complained. Every event is HMAC-signed, carries the region it was processed in, and is retried for 72 hours if your endpoint is down.
Built by people who have been paged at 3 a.m. over a stuck queue. Every feature exists because a real outage, or a real compliance review, asked for it.
Two regions, UAE and Bahrain, each with its own storage, queue and sending infrastructure. Pick per API key or per request; the region is echoed back on every event.
Data Processing Agreement aligned with the UAE PDPL and the Saudi PDPL out of the box, 13-month retention controls, and a one-call erase endpoint for subject requests.
Pass an Idempotency-Key header and retry as hard as you like. The same key never produces two emails, even across regions.
Delivered, opened, bounced, complained. Every event is HMAC-signed, retried with backoff for 72 hours, and replayable from the dashboard.
Version-controlled templates with RTL layouts, Arabic and English variants under one slug, and a preview endpoint so product can edit copy without touching your deploy.
Inbox placement by provider, bounce classification and spam-rate alerts before Gmail or Outlook throttles you, not after. Dedicated IPs warm up over 14 days on their own.
Reference a template by slug, pass the variables and the locale, and let Forge render both HTML and plain text, right to left when it should be.
/v1/templates/:slug/previewawait forge.emails.send({
from: 'Qasr Billing <billing@qasr.ae>',
to: user.email,
template: 'invoice-paid',
locale: user.locale, // 'ar-AE' renders RTL
data: {
name: user.firstName,
amount: 'AED 176.00',
invoiceUrl: invoice.url,
},
headers: {
'Idempotency-Key': `invoice-${invoice.id}`,
},
});
Every event carries a signature and a timestamp. verify() checks both and throws on a mismatch or a replay older than five minutes. You get a typed event object, not a raw body to parse.
app.post('/webhooks/forge', async (req, res) => {
const event = forge.webhooks.verify(
req.rawBody,
req.headers['forge-signature']
);
switch (event.type) {
case 'email.delivered':
await db.emails.update(event.data.id, { status: 'delivered' });
break;
case 'email.bounced':
await db.contacts.suppress(event.data.to);
break;
}
res.sendStatus(200);
});
Auditors ask one question: where was this processed? Every email, event and log line carries its region, and the erase endpoint answers subject requests in one call.
const email = await forge.emails.get('em_8f3kq2');
// { id: 'em_8f3kq2', region: 'ae-abudhabi-1', status: 'delivered' }
// Data-subject request under the UAE PDPL
await forge.privacy.erase({
recipient: 'noor@example.ae',
reason: 'subject-request',
});
// Export the audit trail for the compliance review
const trail = await forge.audit.export({
region: 'uae',
since: '2026-01-01',
format: 'jsonl',
});
Every plan includes both regions, the full API, all SDKs, webhooks and the deliverability dashboard. Billed in USD; AED shown for reference. Overage is $1 per 1,000 emails. Pay by card, Apple Pay or Mada.
Side projects and staging environments.
≈ 0 AED
Production apps with real users.
≈ 73 AED
High volume and strict compliance.
≈ 330 AED
"We migrated 1.2M monthly sends off a legacy SMTP relay in an afternoon. The idempotency keys alone killed a class of duplicate-receipt bugs we had lived with for two years."
"Our compliance review asked where OTP emails were processed. We answered with one API response: ae-abudhabi-1. That closed a question that had been open for a quarter."
"The webhook replay button has saved us during two separate incidents. Our consumer went down, we fixed it, hit replay, and nothing was lost. That is the whole review."
Message bodies, recipient addresses, template data, event logs and audit logs are stored and processed in the region you chose: uae (Abu Dhabi) or bahrain (Manama). Billing records and your account profile live in the UAE for every customer. Nothing is replicated outside the GCC.
Every plan comes with a Data Processing Agreement aligned with the UAE PDPL (Federal Decree-Law 45 of 2021) and the Saudi PDPL. Retention is configurable per region, the /v1/privacy/erase endpoint handles subject requests in one call, and the audit log records who accessed what and from where.
Send any string up to 255 characters in the Idempotency-Key header. Forge stores the first response for that key for 24 hours and replays it, with the same email ID and status code, for every identical request. A request with the same key but a different body returns a 422.
Each delivery carries a Forge-Signature header containing a timestamp and an HMAC-SHA256 of the raw body using your endpoint secret. If we get anything other than a 2xx we retry with exponential backoff for 72 hours, then park the event so you can replay it from the dashboard or the API.
Plans are priced in USD and the AED equivalent is shown on every invoice. Cards issued in the UAE and Saudi Arabia are charged in local currency at your bank's rate; Apple Pay and Mada are supported. Scale customers can be invoiced in AED or SAR with a UAE VAT invoice.
Create a free account, grab a key, and send 3,000 emails a month from Abu Dhabi for nothing. No card, no sales call.
$ npm install @forge/sdk