#pApiAuth
Referencë e Plote e Fushave API & CLI: Të gjitha 12 Llojet e Objekteve, Pikat Përfundimtare REST & POST /api/v1/send
Ky referencë dokumenton çdo pronë JSON, lloj të dhënash, vlerë enum, cilësim të paracaktuar dhe rol minimal RBAC në të 12 objektet e menaxhimit (/api/admin/cli/objects/{type} & nextxch-cli) si dhe dërgimin e email-eve transaksionale (POST /api/v1/send). Përdorni kutinë e filtrit të menjëhershëm mbi tabelë për të kërkuar çdo pronë si dkimSigningMode, tlsMode, allowedCidrs ose warmingEnabled.
Introspeksion i drejtpërdrejtë në terminalin tuaj ose përmes HTTP: çdo nextxch ekspozon këtë skemë të plotë në JSON të lexueshëm nga makina në GET /api/admin/cli/schema (me kokën SHA-256 X-Nextxch-Schema-Version). Në terminalin tuaj, ekzekutoni nextxch-cli describe <Type> (p.sh. nextxch-cli describe Domain ose nextxch-cli describe SmtpQueue) në çdo kohë.
TransactionalSendRequest (POST /api/v1/send)
27
IntegrationKey (API v1)
9
CalendarEvent (API v1)
12
Rooms & Booking (API v1)
6
Contact, Directory & Sharing (API v1)
9
Webhook (API v1)
5
TransactionalSend & DeliveryInsight (API v1)
16
EmailTemplate & TemplateLayout (API v1)
7
SenderDomain, MessageStream & OutboundIpPool (ESP)
6
InboundParseRoute (API v1)
6
Audience, Topic & BroadcastCampaign (API v1)
6
Tenant
11
Domain
19
Account (Account/User & Account/List)
18
Alias
7
ApiKey
11
Route
10
TransactionalSend (Singleton)
11
ReputationShield (Singleton)
20
SpamGuard (Singleton)
15
SmtpQueue (Singleton)
19
TransportRules & Server (Singletons)
11
TransactionalSendRequest (POST /api/v1/send)
Çelësi: Idempotency-Key
RBAC: User+
Pikë dërgese HTTP JSON me xhiro të lartë për aplikacione ueb, ERP, CRM dhe kode 2FA me prioritizim kategorish, ngrohje IP, kontroll paraprak të bllokimit dhe idempotencë 24h.
/api/v1/send
Vendos në radhë dhe nënshkruan e-mailin transaksional (UTF-8 Multipart/Alternative + bashkëngjitje)
/api/v1/send/batch
Vendos në radhë deri në 1,000 mesazhe të personalizuara në një kërkesë të vetme HTTP
/api/v1/unsubscribe/{token}
Pika përfundimtare publike RFC 8058 One-Click-Unsubscribe (token i nënshkruar me DKIM)
from
string
OPSIONAL
Key senderAddress
fromName
string
OPSIONAL
to
string[]
I DETYRUESHËM
personalizations
Personalizimi[]
OPSIONAL
[]
cc
string[]
OPSIONAL
[]
bcc
string[]
OPSIONAL
[]
replyTo
string | string[]
OPSIONAL
subject
string
OPSIONAL
Template subject
templateSlug
string
OPSIONAL
variables
Record<string, any>
OPSIONAL
{}
locale
string
OPSIONAL
Template defaultLocale
textBody
string
OPSIONAL
htmlBody
string
OPSIONAL
stream
string
OPSIONAL
transactional
category
string
OPSIONAL
transactional
"critical""transactional""notification""marketing"scheduledAtUtc
datetime
OPSIONAL
trackOpens
boolean
OPSIONAL
false
trackClicks
string
OPSIONAL
none
"none""html_only""all"overflowMode
string
OPSIONAL
DeferQueue
"DeferQueue""Reject429"idempotencyKey
string
OPSIONAL
Header Idempotency-Key
batchId
string
OPSIONAL
auto
tags
string[]
OPSIONAL
[]
metadata
Record<string, string>
OPSIONAL
{}
headers
Record<string, string>
OPSIONAL
{}
requestDeliveryReceipt
boolean
OPSIONAL
false
requestReadReceipt
boolean
OPSIONAL
false
attachments
SendAttachmentDto[]
OPSIONAL
[]
{
"from": "Abrechnung <rechnung@firma.de>",
"to": ["einkauf@kunde.de"],
"cc": ["buchhaltung@firma.de"],
"subject": "Ihre elektronische Rechnung RE-2026-90412",
"category": "transactional",
"overflowMode": "DeferQueue",
"textBody": "Guten Tag,\nanbei erhalten Sie Ihre Rechnung RE-2026-90412.",
"htmlBody": "<p>Guten Tag,</p><p>anbei erhalten Sie Ihre Rechnung <strong>RE-2026-90412</strong>.</p>",
"headers": {
"X-ERP-Document-Id": "RE-2026-90412"
},
"attachments": [
{
"fileName": "RE-2026-90412.pdf",
"contentType": "application/pdf",
"contentBase64": "JVBERi0xLjcKJcfs..."
}
]
}
# 1) Kleinstprivilegierten Sende-Key (Role=User) für rechnung@firma.de erstellen:
nextxch-cli create ApiKey \
--set label="ERP Rechnungsversand" \
--set role=User \
--set senderAddress=rechnung@firma.de \
--set defaultCategory=transactional \
--set allowedCidrs=10.20.0.0/16
# 2) Risikofreier Trockentest gegen die integrierte Sandbox-Sink-Domain:
# ok@sink.nextxch.local | bounce@sink.nextxch.local | defer@sink.nextxch.local
curl -fsS -X POST "https://mail.firma.de/api/v1/send" \
-H "Authorization: Bearer smk_01968f2a_..." \
-H "Idempotency-Key: inv-2026-90412" \
-H "Content-Type: application/json" \
-d '{
"from": "rechnung@firma.de",
"to": ["einkauf@kunde.de"],
"subject": "Ihre Rechnung RE-2026-90412",
"category": "transactional",
"textBody": "Guten Tag, anbei Ihre Rechnung RE-2026-90412.",
"htmlBody": "<p>Guten Tag, anbei Ihre Rechnung <b>RE-2026-90412</b>.</p>"
}'
using System.Net.Http.Headers;
using System.Net.Http.Json;
using var http = new HttpClient { BaseAddress = new Uri("https://mail.firma.de") };
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "smk_01968f2a_...");
http.DefaultRequestHeaders.Add("Idempotency-Key", "inv-2026-90412");
var response = await http.PostAsJsonAsync("/api/v1/send", new
{
from = "rechnung@firma.de",
to = new[] { "einkauf@kunde.de" },
subject = "Ihre Rechnung RE-2026-90412",
category = "transactional",
textBody = "Guten Tag, anbei Ihre Rechnung RE-2026-90412.",
htmlBody = "<p>Guten Tag, anbei Ihre Rechnung <strong>RE-2026-90412</strong>.</p>"
});
response.EnsureSuccessStatusCode();
IntegrationKey (API v1)
Çelësi: id
RBAC: TenantAdmin+
Çelësi i integrimit me skope për /api/v1. Një çelës vepron për një përdorues ose, si integrim qiramarrësi, për përdoruesin e emërtuar në kokën X-Nextxch-Act-As. Pa skopin, API përgjigjet me 403; një përdorues i një qiramarrësi tjetër kthen 404. Kredencialet opsionale të klientit OAuth 2.0 (token i vlefshëm për 1 orë).
/api/admin/integrations/keys
Krijo një çelës (admin, shfaqet një herë)
/api/admin/integrations/keys/{id}
Modifiko fushat e veprimit
/api/admin/integrations/keys/{id}
Revoko një çelës (dhe tokenët e tij OAuth)
/api/v1/oauth/token
OAuth 2.0 client_credentials: ID e çelësit + çelësi për një token aksesi
/api/v1/me
Çelësi, skopet dhe përdoruesi veprues
/api/v1/openapi.json
Dokumenti OpenAPI 3.1 i instalimit
label
string
I DETYRUESHËM
mode
string
I DETYRUESHËM
user
"user""tenant"userEmail
string
OPSIONAL
scopes
string[]
I DETYRUESHËM
"calendar.read""calendar.write""rooms.read""booking.read""booking.write""contacts.read""contacts.write""directory.read""sharing.manage""webhooks.manage""mail.send""delivery.read""delivery.write""templates.read""templates.write""domains.manage""inbound.manage""audiences.read""audiences.write""campaigns.manage""config.read""config.write""deploy.restore"domainId
guid
OPSIONAL
allowedCidrs
string[]
OPSIONAL
[]
expiresInDays
integer
OPSIONAL
senderAddress
string
OPSIONAL
apiKey
string
VETËM PËR LEXIM
{
"label": "CRM",
"mode": "tenant",
"scopes": ["calendar.write", "rooms.read", "contacts.write", "webhooks.manage"],
"allowedCidrs": ["203.0.113.0/24"],
"expiresInDays": 365
}
# Integrations-Schlüssel: Admin > API & Integrationen > Neuer Schlüssel
# Danach z. B. ein Access-Token per OAuth 2.0 Client Credentials holen:
curl -fsS -X POST "https://mail.firma.de/api/v1/oauth/token" \
-d grant_type=client_credentials \
-d client_id=0196c3a2-5f1e-7c11-9a20-1c2d3e4f5a6b \
-d client_secret=smk_0196c3a25f1e7c119a201c2d3e4f5a6b_... \
-d scope="calendar.read rooms.read"
curl -fsS "https://mail.firma.de/api/v1/me" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "X-Nextxch-Act-As: anna@firma.de"
using var http = new HttpClient { BaseAddress = new Uri("https://mail.firma.de") };
http.DefaultRequestHeaders.Authorization = new("Bearer", "smk_0196c3a2...");
http.DefaultRequestHeaders.Add("X-Nextxch-Act-As", "anna@firma.de");
var me = await http.GetFromJsonAsync<JsonElement>("/api/v1/me");
CalendarEvent (API v1)
Çelësi: hrefName
RBAC: User+
Ngjarje me seri dhe përjashtime, pjesëmarrës, dhoma, ftesa, përgjigje, të lira/të zëna, kalendarë të pëasrbashkuar dhe globalë dhe thekse ftesash. Fusha veprimi calendar.read dhe calendar.write. Kohët në UTC (ISO-8601), zonat kohore si emra IANA.
/api/v1/calendars
Kalendarë vetjakë, të pëagištuar, globalë dhe burimore
/api/v1/calendar/events?from&to&calendarId&limit&cursor
Ndodhitë në një dritare (seritë e zgjeruara)
/api/v1/calendar/events
Krijo një ngjarje (fto njerëz dhe dhoma)
/api/v1/calendar/events/{hrefName}
Ngjarje me seri dhe përjashtime
/api/v1/calendar/events/{hrefName}
Modifiko; scope=occurrence|following për pjesët e një serie
/api/v1/calendar/events/{hrefName}
Fshini, opsionalisht me anulime (notify=true)
/api/v1/calendar/events/{hrefName}/respond
Përgjigjuni një ftese
/api/v1/calendar/events/{hrefName}/invite-link
Lidhje ftese e nënshkruar
/api/v1/calendar/events/{hrefName}/ics
iCalendar i Papërpunuar
/api/v1/calendar/freebusy
Koha e lirë/e zënë e personave dhe dhomave
title
string
I DETYRUESHËM
startUtc
datetime
I DETYRUESHËM
endUtc
datetime
I DETYRUESHËM
timeZone
string
OPSIONAL
Europe/Berlin
allDay
boolean
OPSIONAL
false
attendees
Attendee[]
OPSIONAL
[]
sendInvitations
boolean
OPSIONAL
false
recurrence
Përsëritja
OPSIONAL
showAs
string
OPSIONAL
busy
"free""tentative""busy""oof""workingElsewhere"isPrivate
boolean
OPSIONAL
false
calendarId
string
OPSIONAL
teamsMeeting
boolean
OPSIONAL
{
"title": "Projektstart",
"startUtc": "2026-12-03T09:00:00Z",
"endUtc": "2026-12-03T10:00:00Z",
"timeZone": "Europe/Berlin",
"attendees": [
{ "email": "bernd@firma.de" },
{ "email": "raum-1@firma.de" }
],
"sendInvitations": true
}
# Benötigte Scopes: calendar.read (lesen), calendar.write (schreiben)
# Einen Raum buchen: Raumadresse als Teilnehmer eintragen
curl -fsS -X POST "https://mail.firma.de/api/v1/calendar/events" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "X-Nextxch-Act-As: anna@firma.de" \
-H "Content-Type: application/json" \
-d '{"title":"Projektstart","startUtc":"2026-12-03T09:00:00Z","endUtc":"2026-12-03T10:00:00Z","timeZone":"Europe/Berlin","attendees":[{"email":"raum-1@firma.de"}]}'
var res = await http.PostAsJsonAsync("/api/v1/calendar/events", new
{
title = "Projektstart",
startUtc = DateTimeOffset.Parse("2026-12-03T09:00:00Z"),
endUtc = DateTimeOffset.Parse("2026-12-03T10:00:00Z"),
timeZone = "Europe/Berlin",
attendees = new[] { new { email = "raum-1@firma.de" } }
});
string href = (await res.Content.ReadFromJsonAsync<JsonElement>()).GetProperty("data").GetProperty("hrefName").GetString()!;
Rooms & Booking (API v1)
Çelësi: id
RBAC: User+
Dhoma dhe burime me disponueshmëri (rooms.read) dhe faqe rezervimesh si Calendly (booking.read, booking.write): faqe rezervimi, lloje ngjarjesh, fusha të lira, lexim dhe anulim rezervimesh. Një dhomë rezervohet përmes një ngjarjeje me dhomën si pjesëmarrëse.
/api/v1/rooms?startUtc&endUtc&category
Dhoma dhe burime, me të lira për dritaren
/api/v1/rooms/{email}/availability
Koha e zënë e një dhome
/api/v1/booking/profile
Faqe rezervimi me orare dhe lloje ngjarjesh
/api/v1/booking/event-types
Llojet e ngjarjeve
/api/v1/booking/event-types
Krijo një lloj ngjarjeje
/api/v1/booking/event-types/{id}/slots?from&to
Orë fillimi falas (maks. 42 ditë)
/api/v1/booking/bookings?status&from&to
Rezervimet
/api/v1/booking/bookings/{id}/cancel
Anulo një rezervim (mysafiri njoftohet)
slots[].startUtc
datetime
VETËM PËR LEXIM
slots[].endUtc
datetime
VETËM PËR LEXIM
slots[].staff
objekt[]
VETËM PËR LEXIM
status
string
VETËM PËR LEXIM
"confirmed""cancelled"guest
objekt
VETËM PËR LEXIM
free
boolean
VETËM PËR LEXIM
{
"ok": true,
"data": {
"eventTypeId": "beratung-3f2a",
"durationMinutes": 30,
"timeZone": "Europe/Berlin",
"slots": [
{ "startUtc": "2026-12-04T08:00:00Z", "endUtc": "2026-12-04T08:30:00Z", "staff": [] }
]
}
}
# Benötigte Scopes: rooms.read, booking.read, booking.write
curl -fsS "https://mail.firma.de/api/v1/rooms?startUtc=2026-12-03T09:00:00Z&endUtc=2026-12-03T10:00:00Z" \
-H "Authorization: Bearer smk_0196c3a2..."
var slots = await http.GetFromJsonAsync<JsonElement>("/api/v1/booking/event-types/beratung/slots");
foreach (var s in slots.GetProperty("data").GetProperty("slots").EnumerateArray())
Console.WriteLine(s.GetProperty("startUtc").GetString());
Contact, Directory & Sharing (API v1)
Çelësi: hrefName
RBAC: User+
Kontaktet personale me të gjitha fushat dhe foton (contacts.read, contacts.write, If-Match për mbrojtjen nga konfliktet), lista globale e adresave (directory.read) dhe ndarjet dhe delegimi (sharing.manage, delegation = dhënie e kutisë postare me sendAs ose sendOnBehalf).
/api/v1/contacts?q
Kërko kontakte
/api/v1/contacts
Krijo një kontakt
/api/v1/contacts/{hrefName}
Modifikoni një kontakt (fushat boshe mbeten)
/api/v1/contacts/{hrefName}
Fshini një kontakt
/api/v1/directory?q&type
Lista globale e adresave
/api/v1/sharing/grants
Grante të veta
/api/v1/sharing/grants
Caktoni ose hiqni një leje
/api/v1/sharing/shared-with-me
Ndarë me mua
givenName
string
OPSIONAL
familyName
string
OPSIONAL
organization
string
OPSIONAL
emails
TypedValue[]
OPSIONAL
[]
phones
TypedValue[]
OPSIONAL
[]
addresses
Address[]
OPSIONAL
[]
birthday
string
OPSIONAL
photo
string
WRITE-ONLY (SECRET)
permissions
string[]
OPSIONAL
"freeBusy""read""write""delete""sendOnBehalf""sendAs""manage"{
"givenName": "Clara",
"familyName": "Kunde",
"organization": "Kunde AG",
"emails": [{ "type": "work", "value": "clara@kunde.example" }],
"phones": [{ "type": "cell", "value": "+49 170 1234567" }]
}
# Benötigte Scopes: contacts.read, contacts.write, directory.read, sharing.manage
curl -fsS -X POST "https://mail.firma.de/api/v1/contacts" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"givenName":"Clara","familyName":"Kunde","emails":[{"type":"work","value":"clara@kunde.example"}]}'
await http.PutAsJsonAsync("/api/v1/sharing/grants", new
{
kind = "calendar", granteeType = "user", grantee = "bernd@firma.de", permissions = new[] { "read" }
});
Webhook (API v1)
Çelësi: id
RBAC: User+
Ngjarje si POST JSON i nënshkruar: kalendar dhe ngjarje rezervimi (calendar.event.created, calendar.event.updated, calendar.event.deleted, calendar.invitation.replied, booking.created, booking.rescheduled, booking.cancelled) plus ngjarje të Pasqyrës së Dorëzimit (delivery.queued, delivery.deferred, delivery.delivered, delivery.bounced, delivery.suppressed, delivery.expired, delivery.cancelled, delivery.redirected, delivery.complained, delivery.unsubscribed, opsionalisht të grupuara përmes batchSeconds). Nënshkrimi X-Nextxch-Signature: v1=hex(HMAC-SHA256(secret, X-Nextxch-Timestamp + "." + body)). Provon përsëri pas 30 s, 2 min, 10 min, 1 h dhe 6 h.
/api/v1/webhooks
Webhooks të qiramarrësit
/api/v1/webhooks
Regjistroni një webhook (sekreti vetëm në përgjigje)
/api/v1/webhooks/{id}
Fshini një webhook
/api/v1/webhooks/{id}/deliveries
Dërgesat e fundit
/api/v1/webhooks/{id}/test
Dërgo një ngjarje prove
url
string
I DETYRUESHËM
events
string[]
I DETYRUESHËM
"calendar.event.created""calendar.event.updated""calendar.event.deleted""calendar.invitation.replied""booking.created""booking.rescheduled""booking.cancelled""delivery.queued""delivery.deferred""delivery.delivered""delivery.bounced""delivery.suppressed""delivery.expired""delivery.cancelled""delivery.redirected""delivery.complained""delivery.unsubscribed""delivery.opened""delivery.clicked""quota.warning""audience.subscribed""audience.unsubscribed""*"batchSeconds
integer
OPSIONAL
0
secret
string
VETËM PËR LEXIM
id (Ereignis)
string
VETËM PËR LEXIM
{
"id": "evt_5c1f0e9a2b7d4c3e8f601a2b",
"type": "calendar.invitation.replied",
"createdAtUtc": "2026-12-01T10:15:02Z",
"tenantId": "0196c3a2-0000-7000-8000-000000000001",
"data": {
"calendarId": "0196c3a25f1e7c11:default",
"hrefName": "0196c3a2@nextxch.ics",
"title": "Projektstart",
"startUtc": "2026-12-03T09:00:00Z",
"attendee": { "email": "bernd@firma.de", "partStat": "ACCEPTED" }
}
}
# Signatur prüfen (Bash):
# expected="v1=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)"
curl -fsS -X POST "https://mail.firma.de/api/v1/webhooks" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"url":"https://crm.firma.de/hooks/nextxch","events":["delivery.deferred","delivery.delivered","delivery.bounced"],"batchSeconds":10}'
// ASP.NET Core receiver
app.MapPost("/hooks/nextxch", async (HttpRequest req) =>
{
using var ms = new MemoryStream();
await req.Body.CopyToAsync(ms);
string ts = req.Headers["X-Nextxch-Timestamp"]!;
byte[] mac = HMACSHA256.HashData(Encoding.UTF8.GetBytes(secret), [.. Encoding.ASCII.GetBytes(ts + "."), .. ms.ToArray()]);
return req.Headers["X-Nextxch-Signature"] == "v1=" + Convert.ToHexStringLower(mac) ? Results.Ok() : Results.Unauthorized();
});
TransactionalSend & DeliveryInsight (API v1)
Çelësi: sendId
RBAC: User+
Dërgim transaksional i vetëm dhe në grupe (POST /api/v1/send, POST /api/v1/send/batch, apikey SMTP, plus adaptorë plug-in /emails, /v3/mail/send, /email, /v3/{domain}/messages; fusha mail.send) dhe njohuri për dërgimin live të izoluar nga llogaria (fusha delivery.read, delivery.write): statusi për dërgim dhe për marrës, statistika serish kohore (/api/v1/stats), progres i grupit me arsyet e riprovës nga ofruesi, transmetim Server-Sent Events me rifillim Last-Event-ID për 72 orë, ndërhyrje (anulim, riprovë, rifillim, ridrejtim), listë supresimi për aplikacion dhe tokenë widget statusi jetëshkurtër të lidhur me CORS (/shared/delivery-widget.js) - pa pikselë si parazgjedhje.
/api/v1/send
Dërgim transaksional; kthen sendId, batchId, tags, metadata dhe një recipientId për çdo marrës
/api/v1/send/batch
Dërgesë e personalizuar e grupeve (deri në 1,000 marrës me mergeVars, locale dhe scheduledAtUtc)
/emails
Pikë përfundimtare e përputhshme me Resend (përfsh. POST /emails/batch)
/v3/mail/send
Pikë fundore e përshtatshme për SendGrid v3 (personalizations & dynamic_template_data)
/email
Pikë përfundimtare e përputhshme me Postmark (përfsh. /email/batch & /email/withTemplate)
/v3/{domain}/messages
Pikë përfundimtare e përputhshme me Mailgun (multipart/form-data, Basic api:smk_...)
/api/v1/sends
Rreshto dërgimet në një dritare kohore (?tag&status&batchId&since&until)
/api/v1/sends/{sendId}
Gjendja e një dërgimi te secili marrës (ppërpjekjet, përgjigjja SMTP, MX, TLS, klasa e refuzimit)
/api/v1/sends/{sendId}/{cancel|retry|reschedule}
Anulo, provo përsëri tani ose riplanifiko marrësin në pritje të një dërgimi (gjithashtu për çdo marrës duke përfshirë ridrejtimin)
/api/v1/batches/{batchId}
Përmbledhja e grupit me ecurinë, riprovat e grupuara sipas arsyes/ofruesit dhe veprimet e grupit (/cancel|retry|reschedule)
/api/v1/stats
Seri kohore të gjurmimit të dërgimit, dorëzimit, kthimit (bounce) dhe pëlqimit të grumbulluara (?bucket=hour|day&stream&domain)
/api/v1/events/stream
Ngjarje dërgesash të drejtpërdrejta përmes Server-Sent Events (vazhdim përmes Last-Event-ID, histori në GET /api/v1/events)
/api/v1/suppressions
Lexoni listën e ndalimit të aplikacionit (?q&reason); shtoni përmes POST /api/v1/suppressions, lëshoni përmes DELETE /api/v1/suppressions/{address}
/api/v1/delivery/widget-token
Token afatshkurtër vetëm për lexim (nxwt_..., maks. 24 h) për widget-in e gjendjes së komponentit Web të integrueshëm
sendId
guid
ÇELËSI PRIMAR
UUIDv7
recipientId
guid
VETËM PËR LEXIM
UUIDv7
batchId
string
OPSIONAL
auto
stream
string
OPSIONAL
transactional
personalizations
Personalizimi[]
OPSIONAL
[]
scheduledAtUtc
datetime
OPSIONAL
trackOpens
boolean
OPSIONAL
false
trackClicks
string
OPSIONAL
none
"none""html_only""all"tags
string[]
OPSIONAL
[]
metadata
Record<string, string>
OPSIONAL
{}
state
string
VETËM PËR LEXIM
"scheduled""queued""deferred""delivered""bounced""suppressed""expired""cancelled"throttleReason
string
VETËM PËR LEXIM
"greylisting""rate_limit""provider_cooldown""provider_quota""connection""tls_required""temporary"bounceClass
string
VETËM PËR LEXIM
"mailbox_unknown""mailbox_full""spam_rejected""policy""dns_failure""tls_required""temporary"lastSmtpResponse
string
VETËM PËR LEXIM
sendAtUtc
datetime
OPSIONAL
origins
string[]
OPSIONAL
Key allowedOrigins
{
"ok": true,
"data": {
"sendId": "0193a0c4-7c1e-7b8a-9f00-3c2d1e0f4a11",
"batchId": "rechnungen-2026-11",
"tags": ["invoice", "monthly"],
"metadata": { "invoiceNo": "RE-2026-90412" },
"status": "pending",
"counts": { "delivered": 1, "deferred": 1 },
"recipients": [
{
"recipientId": "0193a0c4-7c1e-7b8a-9f00-3c2d1e0f4a12",
"email": "anna@gmx.de",
"state": "deferred",
"attempts": 1,
"nextAttemptAtUtc": "2026-11-19T08:05:02Z",
"lastSmtpCode": 451,
"lastSmtpResponse": "451 4.7.1 Greylisted, please try again later",
"targetMx": "mx00.emig.gmx.net",
"tls": true,
"throttleReason": "greylisting"
}
]
}
}
# Benötigte Scopes auf dem Integrations-Schlüssel:
# mail.send (POST /api/v1/send, /batch, SMTP apikey & Drop-In-Adapter), delivery.read (Status, Stats, SSE, Widget-Token), delivery.write (cancel/retry/reschedule/redirect, Suppressions)
# 1) Status einer Sendung, eines Batches oder der 30-Tage-Statistik abfragen:
curl -fsS "https://mail.firma.de/api/v1/sends/0193a0c4-7c1e-7b8a-9f00-3c2d1e0f4a11" \
-H "Authorization: Bearer smk_0196c3a2..."
curl -fsS "https://mail.firma.de/api/v1/stats?bucket=day&days=30&stream=transactional" \
-H "Authorization: Bearer smk_0196c3a2..."
# 2) Live-SSE-Stream ab letzter bekannter Ereignis-Sequenz fortsetzen:
curl -N "https://mail.firma.de/api/v1/events/stream?batchId=rechnungen-2026-11" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Last-Event-ID: 1042"
var batch = await http.GetFromJsonAsync<JsonElement>("/api/v1/batches/rechnungen-2026-11");
Console.WriteLine($"Progress: {batch.GetProperty("data").GetProperty("progressPercent")}%");
await http.PostAsync("/api/v1/sends/0193a0c4-7c1e-7b8a-9f00-3c2d1e0f4a11/retry", content: null);
EmailTemplate & TemplateLayout (API v1)
Çelësi: slug
RBAC: TenantAdmin+
Shabllone Handlebars në anën e serverit dhe baza të ripërdorshme të paraqitjes ({{{body}}}) me kushte ({{#if}}), unaza ({{#each}}), variante për çdo lokal, versionim të skicuar/publikuar, kontrolle të rrepta të variablave (strictVariables) dhe gjenerim automatik të tekstit të thjeshtë. Fushëveshjet: templates.read, templates.write.
/api/v1/templates
Rreshto shabllonet e qiramarrësit
/api/v1/templates
Krijo një shabllon (draft ose i publikuar)
/api/v1/templates/{idOrSlug}
Përditëso draftin (versioni i drejtpërdrejtë mbetet i paprekur deri në publikim)
/api/v1/templates/{idOrSlug}/publish
Publiko draftin aktual si një version të ri të pandryshueshëm
/api/v1/templates/{idOrSlug}/render
Shfaq pamjen paraprake me ndryshore shembull (pa dërguar)
/api/v1/templates/layouts
Rreshto strukturat bazë (krijo/përditëso përmes POST/PUT /api/v1/templates/layouts)
slug
string
ÇELËSI PRIMAR
name
string
I DETYRUESHËM
layoutSlug
string
OPSIONAL
defaultLocale
string
OPSIONAL
de
strictVariables
boolean
OPSIONAL
true
locales
Record<string, LocaleContent>
I DETYRUESHËM
publishedVersion
integer
VETËM PËR LEXIM
1
{
"slug": "order-confirmation",
"name": "Bestellbestätigung",
"layoutSlug": "brand-shell",
"defaultLocale": "de",
"strictVariables": true,
"locales": {
"de": {
"subject": "Bestellung {{orderNo}} eingegangen",
"html": "<p>Hallo {{customerName}},</p><ul>{{#each items}}<li>{{qty}}x {{title}} ({{price}})</li>{{/each}}</ul>"
},
"en": {
"subject": "Order {{orderNo}} received",
"html": "<p>Hello {{customerName}},</p><ul>{{#each items}}<li>{{qty}}x {{title}} ({{price}})</li>{{/each}}</ul>"
}
}
}
# Benötigte Scopes: templates.read, templates.write (zum Senden genügt mail.send)
curl -fsS -X POST "https://mail.firma.de/api/v1/templates/order-confirmation/render" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"locale":"de","variables":{"orderNo":"SO-4821","customerName":"Anna","items":[{"qty":2,"title":"Lizenz","price":"48,00 EUR"}]}}'
var preview = await http.PostAsJsonAsync("/api/v1/templates/order-confirmation/render", new
{
locale = "en",
variables = new { orderNo = "SO-4821", customerName = "Anna", items = new[] { new { qty = 2, title = "License", price = "EUR 48.00" } } }
});
SenderDomain, MessageStream & OutboundIpPool (ESP)
Çelësi: domain / slug
RBAC: TenantAdmin+
Aktivizimi i domenit të dërguesit të klientit me vetëshërbim (/api/v1/domains, fushëveprimi domains.manage), Rrymat e Mesazheve që izolojnë trafikun 2FA/transaksional dhe transmetues, Përdhënie të dedikuara të IP-ve Dalëse (lidhja e IP-së burimore + HELO/PTR), kuota mujore për qiramarrës dhe pika fundore të gjurmimit me pëlqim (/t/o/, /t/c/).
/api/v1/domains
Rreshto domenet e dërguesit me statusin e verifikimit DKIM/SPF/DMARC/gjurmimit
/api/v1/domains
Regjistroni një domen dërguesi dhe gjeneroni regjistrimet e kërkuara DNS
/api/v1/domains/{id}/verify
Nis verifikimin live DNS (Dual-DKIM, SPF, DMARC, Return-Path, gjurmimi CNAME)
/api/admin/esp/streams
Rreshto/menaxho Rrymat e Mesazheve dhe Pishat e lidhura të IP-ve Dalëse
/api/admin/esp/ip-pools
Menaxho Përdet e IP-ve Dalëse me IP burimore lokale dhe emra hosti HELO
/t/o/{token}.gif
Pika përfundimtare publike e pixelit të hapur të opt-in (aktive vetëm kur trackOpens=true, përfshirë zbulimin Apple MPP)
/t/c/{token}
Përcjellje publike e klikimit të opt-in e verifikuar me HMAC (302 te URL e destinacionit të nënshkruar)
domain
string
ÇELËSI PRIMAR
trackingHost
string
OPSIONAL
streamSlug
string
OPSIONAL
transactional
"critical""transactional""broadcast""inbound"ipPoolId
string
OPSIONAL
pool-tx-default
monthlySendLimit
integer
OPSIONAL
0 (i pakufizuar)
dnsRecords
DnsRecordHint[]
VETËM PËR LEXIM
{
"id": "0196c3a2-7700-7000-8000-000000000041",
"domain": "shop.kunde-saas.de",
"trackingHost": "links.shop.kunde-saas.de",
"dkimVerified": true,
"spfVerified": true,
"dmarcVerified": true,
"trackingCnameVerified": true
}
# Benötigter Scope für SaaS-Domain-Provisionierung: domains.manage
curl -fsS -X POST "https://mail.firma.de/api/v1/domains" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"domain":"shop.kunde-saas.de","trackingHost":"links.shop.kunde-saas.de"}'
var created = await http.PostAsJsonAsync("/api/v1/domains", new { domain = "shop.kunde-saas.de" });
var id = (await created.Content.ReadFromJsonAsync<JsonElement>()).GetProperty("data").GetProperty("id").GetString();
await http.PostAsync($"/api/v1/domains/{id}/verify", null);
InboundParseRoute (API v1)
Çelësi: id
RBAC: TenantAdmin+
Konverton e-mailet hyrëse që përputhen me modelet e adresave (p.sh. ticket+*@support.company.eu ose invoices@inbound.company.eu) pas kontrolleve SPF/DKIM/DMARC dhe AV me 8 motorë në uebhook-e JSON HTTPS të nënshkruara me HMAC-SHA256, duke përfshirë strippedTextReply dhe nxjerrjen ZUGFeRD/XRechnung. Fusha: inbound.manage.
/api/v1/inbound/routes
Rreshto rrugët e konfiguruara të analizuara hyrëse (Inbound Parse)
/api/v1/inbound/routes
Krijo një rrugë Analize Hyrëse (Inbound Parse) (kthen sekretin e nënshkrimit whsec_...)
/api/v1/inbound/routes/{id}
Përditëso URL-në e destinacionit, modelin ose modalitetin e përputhjes
/api/v1/inbound/routes/{id}
Fshini një rrugë Inbound Parse
/api/v1/inbound/routes/{id}/test
Dërgoni një ngarkesë të dobishme sintetike testuese të webhook-ut hyrës
pattern
string
I DETYRUESHËM
url
string
I DETYRUESHËM
mode
string
OPSIONAL
StoreAndWebhook
"WebhookOnly""StoreAndWebhook"includeRawMime
boolean
OPSIONAL
false
extractZugferd
boolean
OPSIONAL
true
strippedTextReply
string
VETËM PËR LEXIM
{
"event": "inbound.message",
"routeId": "0196c3a2-8811-7000-8000-000000000012",
"recipient": "ticket+4821@support.firma.de",
"subaddressTag": "4821",
"from": { "email": "kunde@beispiel.de", "name": "Max Beispiel" },
"subject": "Re: Ticket #4821 Liefertermin",
"strippedTextReply": "Danke, Dienstag 10 Uhr passt uns perfekt!",
"auth": { "spf": "pass", "dkim": "pass", "dmarc": "pass", "spamScore": 0.4 },
"zugferd": null,
"attachments": []
}
# Benötigter Scope: inbound.manage
curl -fsS -X POST "https://mail.firma.de/api/v1/inbound/routes" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"pattern":"ticket+*@support.firma.de","url":"https://helpdesk.firma.de/hooks/mail","mode":"StoreAndWebhook","extractZugferd":true}'
await http.PostAsJsonAsync("/api/v1/inbound/routes", new
{
pattern = "rechnung@eingang.firma.de",
url = "https://erp.firma.de/hooks/invoices",
mode = "StoreAndWebhook",
extractZugferd = true
});
Audience, Topic & BroadcastCampaign (API v1)
Çelësi: id
RBAC: TenantAdmin+
Auditorium i integruar i pajtimit, kontakte me atribute dhe etiketa të personalizuara, tema pajtimi, rrjedhë pune e dyfishtë e pajtimit Double Opt-In e provuar për auditim të GDPR, qendër e preferencave e strehuar (RFC 8058) dhe fushata transmetimi të planifikuara me zero tarifa për kontakt. Fusha: audiences.read, audiences.write, campaigns.manage.
/api/v1/audiences
Rreshto audiencat e qiramarrësit me numrin e abonentëve
/api/v1/audiences
Krijo një audiencë të re (përfshirë requireDoubleOptIn)
/api/v1/audiences/{id}/contacts
Shto ose përditëso kontaktin ose aktivizo e-mailin e konfirmimit GDPR Double Opt-In
/api/v1/audiences/{id}/import
Import masiv kontaktesh CSV/JSON me deduplikim dhe caktim etiketash
/api/v1/topics
Rreshto temat e abonimit për qendrën e preferencave (krijo përmes POST /api/v1/topics)
/api/v1/campaigns
Krijo një fushatë transmetimi që synon një audiencë/segment dhe Rrymë Mesazhesh (Message Stream)
/api/v1/campaigns/{id}/send
Fillo ose planifiko dërgimin e fushatave (/pause për të ndalur)
/api/v1/audiences/confirm/{token}
Pika përfundimtare publike e konfirmimit GDPR Double Opt-In (regjistron vulën kohore & hash-in e IP)
name
string
I DETYRUESHËM
requireDoubleOptIn
boolean
OPSIONAL
true
status (Contact)
string
VETËM PËR LEXIM
pending_doi
"pending_doi""subscribed""unsubscribed""bounced""complained"topicSlug
string
OPSIONAL
segmentTags
string[]
OPSIONAL
[]
stream
string
OPSIONAL
broadcast
{
"name": "Kunden-Newsletter Q4",
"audienceId": "0196c3a2-9900-7000-8000-000000000001",
"topicSlug": "product-news",
"stream": "broadcast",
"from": "nextxch News <news@firma.de>",
"templateSlug": "quarterly-digest",
"segmentTags": ["dach", "b2b"],
"trackOpens": false,
"trackClicks": "none",
"scheduledAtUtc": "2026-11-26T09:00:00Z"
}
# Benötigte Scopes: audiences.read, audiences.write, campaigns.manage
curl -fsS -X POST "https://mail.firma.de/api/v1/audiences/0196c3a2-9900-7000-8000-000000000001/contacts" \
-H "Authorization: Bearer smk_0196c3a2..." \
-H "Content-Type: application/json" \
-d '{"email":"lena@kunde.de","firstName":"Lena","locale":"de","tags":["dach","b2b"],"sendDoi":true}'
var campaign = await http.PostAsJsonAsync("/api/v1/campaigns", new
{
name = "Product Update Q4",
audienceId = "0196c3a2-9900-7000-8000-000000000001",
topicSlug = "product-news",
stream = "broadcast",
from = "news@firma.de",
templateSlug = "quarterly-digest"
});
Tenant
Çelësi: slug
RBAC: ServerAdmin+
Kufi organizativ me shumë tenantë që izolon domain-ët, parimet, kuotat e ruajtjes (GiB) dhe ruajtjen e paracaktuar të përputhshmërisë GoBD WORM.
/api/admin/cli/objects/Tenant
Rreshton të gjithë qiramarrësit (tenants)
/api/admin/cli/objects/Tenant/{slugOrId}
Merr qiramarrësin sipas slug ose UUID
/api/admin/cli/objects/Tenant
Krijon një qiramarrës (tenant) të ri
/api/admin/cli/objects/Tenant/{slugOrId}
Përditëson kuotat e qiramarrësit në vend
id
guid
VETËM PËR LEXIM
UUIDv7
slug
string
ÇELËSI PRIMAR
name
string
I DETYRUESHËM
isActive
boolean
OPSIONAL
true
maxDomains
integer
OPSIONAL
100
maxPrincipals
integer
OPSIONAL
10000
quotaGb
integer
OPSIONAL
100
outboundDailyLimit
integer
OPSIONAL
25000
defaultLockMode
string
OPSIONAL
Normal
"Normal""Governance""Compliance""LegalHold"defaultRetentionDays
integer
OPSIONAL
0
createdAtUtc
datetime
VETËM PËR LEXIM
{
"slug": "acme",
"name": "ACME Logistik GmbH",
"isActive": true,
"maxDomains": 50,
"maxPrincipals": 2500,
"quotaGb": 250,
"outboundDailyLimit": 25000,
"defaultLockMode": "Compliance",
"defaultRetentionDays": 3650
}
# Mandant anlegen:
nextxch-cli create Tenant \
--set slug=acme \
--set name="ACME Logistik GmbH" \
--set quotaGb=250 \
--set defaultLockMode=Compliance \
--set defaultRetentionDays=3650
# Mandant abfragen & Kontingent erhöhen:
nextxch-cli get Tenant acme
nextxch-cli update Tenant acme --set quotaGb=500
curl -fsS -X POST "https://mail.firma.de/api/admin/cli/objects/Tenant" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"slug":"acme","name":"ACME Logistik GmbH","quotaGb":250,"defaultLockMode":"Compliance","defaultRetentionDays":3650}'
var payload = new
{
slug = "acme",
name = "ACME Logistik GmbH",
quotaGb = 250,
defaultLockMode = "Compliance",
defaultRetentionDays = 3650
};
using var res = await http.PostAsJsonAsync("/api/admin/cli/objects/Tenant", payload);
Domain
Çelësi: name
RBAC: TenantAdmin+
Domain postar i strehuar me gjenerim automatik paralel të çelësave Dual-DKIM (RSA-2048 + Ed25519), politikë ruajtjeje GoBD WORM, plus-adresim dhe kufizime shpejtësie.
/api/admin/cli/objects/Domain
Rreshton të gjitha domenet
/api/admin/cli/objects/Domain/{name}
Merr konfigurimin e domenit & selektorët DKIM
/api/admin/cli/objects/Domain
Krijon domen & gjeneron çelësa DKIM RSA-2048 + Ed25519
/api/admin/cli/objects/Domain/{name}
Përditëson modalitetin DKIM, kuotat, ose ruajtjen në 0 ms
/api/admin/cli/dns/{name}?live=true
Verifikon regjistrat DNS live ose eksporton zonën BIND RFC 1035
id
guid
VETËM PËR LEXIM
UUIDv7
name
string
ÇELËSI PRIMAR
tenant
string
OPSIONAL
default
isActive
boolean
OPSIONAL
true
postmasterAddress
string
OPSIONAL
postmaster@<name>
dkimSigningMode
string
OPSIONAL
Dual
"Rsa2048""Ed25519""Dual"dkimRsaSelector
string
OPSIONAL
s2026
dkimRsaDnsName
string
VETËM PËR LEXIM
s2026._domainkey.<name>
dkimEd25519Selector
string
OPSIONAL
ed2026
dkimEd25519DnsName
string
VETËM PËR LEXIM
ed2026._domainkey.<name>
retentionLockMode
string
OPSIONAL
Normal
"Normal""Governance""Compliance""LegalHold"retentionDays
integer
OPSIONAL
0
quotaGb
integer
OPSIONAL
50
maxMessageSizeMb
integer
OPSIONAL
50
maxAccounts
integer
OPSIONAL
1000
outboundDailyLimit
integer
OPSIONAL
5000
outboundHourlyLimit
integer
OPSIONAL
1000
usePlusAddressing
boolean
OPSIONAL
true
createdAtUtc
datetime
VETËM PËR LEXIM
{
"name": "muster-logistik.de",
"tenant": "default",
"isActive": true,
"postmasterAddress": "postmaster@muster-logistik.de",
"dkimSigningMode": "Dual",
"dkimRsaSelector": "s2026",
"dkimEd25519Selector": "ed2026",
"retentionLockMode": "Compliance",
"retentionDays": 3650,
"quotaGb": 100,
"maxMessageSizeMb": 50,
"maxAccounts": 500,
"outboundDailyLimit": 10000,
"outboundHourlyLimit": 2000,
"usePlusAddressing": true
}
# Domain mit Dual-DKIM und 10 Jahren GoBD-Compliance anlegen:
nextxch-cli create Domain \
--set name=muster-logistik.de \
--set dkimSigningMode=Dual \
--set retentionLockMode=Compliance \
--set retentionDays=3650
# Fertige RFC-1035 BIND-Zonendatei exportieren & DNS live prüfen:
nextxch-cli dns muster-logistik.de --bind > muster-logistik.de.zone
nextxch-cli dns muster-logistik.de --live
curl -fsS -X PATCH "https://mail.firma.de/api/admin/cli/objects/Domain/muster-logistik.de" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"dkimSigningMode":"Dual","retentionLockMode":"Compliance","retentionDays":3650}'
using var res = await http.PatchAsJsonAsync(
"/api/admin/cli/objects/Domain/muster-logistik.de",
new { dkimSigningMode = "Dual", quotaGb = 200 });
res.EnsureSuccessStatusCode();
Account (Account/User & Account/List)
Çelësi: email
RBAC: TenantAdmin+
Përfaqëson një kuti postare përdoruesi (@type="User", me IMAP/JMAP/CalDAV/CardDAV/ActiveSync) ose një listë shpërndarjeje (@type="List" me members[]).
/api/admin/cli/objects/Account?filter=role=TenantAdmin
Rreshton/filtron llogaritë dhe listat e shpërndarjes
/api/admin/cli/objects/Account/User
Krijon një kuti postare të re përdoruesi me dosje RFC 6154
/api/admin/cli/objects/Account/List
Krijon një listë të re shpërndarjeje
/api/admin/cli/objects/Account/{email}
Përditëson kuotën, përcjelljen, pushimet, ose fjalëkalimin
/api/admin/cli/objects/Account/{email}
Fshin butësisht një llogari
id
guid
VETËM PËR LEXIM
UUIDv7
@type
string
OPSIONAL
User
"User""List"email
string
ÇELËSI PRIMAR
displayName
string
OPSIONAL
Lokalteil
password
string
WRITE-ONLY (SECRET)
role
string
OPSIONAL
User
"User""ComplianceAuditor""TenantAdmin""ServerAdmin"isActive
boolean
OPSIONAL
true
quotaMb
integer
OPSIONAL
5120
usedBytes
long
VETËM PËR LEXIM
0
outboundDailyLimit
integer
OPSIONAL
500
forwardAddress
string
OPSIONAL
forwardKeepOriginal
boolean
OPSIONAL
true
vacationEnabled
boolean
OPSIONAL
false
vacationSubject
string
OPSIONAL
vacationBody
string
WRITE-ONLY (SECRET)
twoFactorEnabled
boolean
VETËM PËR LEXIM
false
members
string[]
OPSIONAL
[]
createdAtUtc
datetime
VETËM PËR LEXIM
{
"@type": "User",
"email": "anna.weber@muster-logistik.de",
"displayName": "Anna Weber (IT-Leitung)",
"password": "SicheresStartPasswort!2026",
"role": "TenantAdmin",
"isActive": true,
"quotaMb": 15360,
"outboundDailyLimit": 1000,
"forwardAddress": null,
"forwardKeepOriginal": true,
"vacationEnabled": false,
"vacationSubject": "Abwesenheitsnotiz: Anna Weber",
"vacationBody": "Ich bin ab Montag wieder erreichbar."
}
# Benutzerpostfach (15 GiB Quota) anlegen:
nextxch-cli create Account/User \
--set email=anna.weber@muster-logistik.de \
--set displayName="Anna Weber" \
--set password="SicheresStartPasswort!2026" \
--set quotaMb=15360
# Verteilerliste anlegen:
nextxch-cli create Account/List \
--set email=team@muster-logistik.de \
--set displayName="Disposition & Einkauf" \
--set members=anna.weber@muster-logistik.de,dispo@muster-logistik.de
curl -fsS -X POST "https://mail.firma.de/api/admin/cli/objects/Account/User" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"email":"anna.weber@muster-logistik.de","displayName":"Anna Weber","password":"SicheresStartPasswort!2026","quotaMb":15360}'
await http.PostAsJsonAsync("/api/admin/cli/objects/Account/User", new
{
email = "anna.weber@muster-logistik.de",
displayName = "Anna Weber",
password = "SicheresStartPasswort!2026",
quotaMb = 15360
});
Alias
Çelësi: address
RBAC: TenantAdmin+
Alias dytësor i e-mailit ose alias privatësie i maskuar i disponueshëm i ridrejtuar te një kuti postare parësore e llogarisë ose listë shpërndarjeje.
/api/admin/cli/objects/Alias
Rreshton të gjitha aliazhet dhe e-mailet e maskuara
/api/admin/cli/objects/Alias
Krijon një alias të ri të drejtuar te një kuti postare e synuar
/api/admin/cli/objects/Alias/{address}
Aktivizon/ndalon një alias ose përditëson destinacionin e tij
/api/admin/cli/objects/Alias/{address}
Fshin aliasin
address
string
ÇELËSI PRIMAR
target
string
I DETYRUESHËM
principalId
guid
VETËM PËR LEXIM
description
string
OPSIONAL
""
isMasked
boolean
OPSIONAL
false
isEnabled
boolean
OPSIONAL
true
createdAtUtc
datetime
VETËM PËR LEXIM
{
"address": "shop-8f2k@muster-logistik.de",
"target": "anna.weber@muster-logistik.de",
"description": "Fachbuchhandlung / Online-Bestellung",
"isMasked": true,
"isEnabled": true
}
# Masked-Email-Alias anlegen:
nextxch-cli create Alias \
--set address=shop-8f2k@muster-logistik.de \
--set target=anna.weber@muster-logistik.de \
--set description="Fachbuchhandlung" \
--set isMasked=true
# Alias bei Spam-Aufkommen mit 1 Befehl stummschalten:
nextxch-cli update Alias shop-8f2k@muster-logistik.de --set isEnabled=false
curl -fsS -X POST "https://mail.firma.de/api/admin/cli/objects/Alias" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"address":"vertrieb@muster-logistik.de","target":"anna.weber@muster-logistik.de","description":"Vertrieb & Angebote"}'
await http.PostAsJsonAsync("/api/admin/cli/objects/Alias", new
{
address = "vertrieb@muster-logistik.de",
target = "anna.weber@muster-logistik.de",
description = "Vertrieb & Angebote",
isEnabled = true
});
ApiKey
Çelësi: id
RBAC: TenantAdmin+
Çelës API i kufizuar me RBAC dhe CIDR i pandryshueshëm dhe i skopuar (smk_<id>_<secret>) për /api/v1/send, SCIM 2.0 ose nextxch-cli.
/api/admin/cli/objects/ApiKey
Rreshton çelësat aktivë të API (sekreti është hequr)
/api/admin/cli/objects/ApiKey
Gjeneron një çelës të ri API dhe kthen apiKey (smk_...) vetëm një herë
/api/admin/cli/objects/ApiKey/{id}
Revokon çelësin API menjëherë
id
guid
VETËM PËR LEXIM
UUIDv7
apiKey
string
CREATE-ONLY
smk_<id>_<secret>
label
string
I DETYRUESHËM
role
string
OPSIONAL
TenantAdmin
"User""ComplianceAuditor""TenantAdmin""ServerAdmin"senderAddress
string
OPSIONAL
defaultCategory
string
OPSIONAL
transactional
"critical""transactional""notification""marketing"allowedCidrs
string[]
OPSIONAL
[] (Alle IPs)
expiresInDays
integer
WRITE-ONLY (SECRET)
null (Kein Ablauf)
expiresAtUtc
datetime
VETËM PËR LEXIM
outboundDailyLimit
integer
OPSIONAL
10000
isActive
boolean
VETËM PËR LEXIM
true
{
"label": "Shopware 6 ERP Rechnungsversand",
"role": "User",
"senderAddress": "rechnung@muster-logistik.de",
"defaultCategory": "transactional",
"allowedCidrs": ["10.20.10.15/32", "2a01:4f8:120:44aa::/64"],
"expiresInDays": 180,
"outboundDailyLimit": 10000
}
# CIDR-geschützten Key für Ansible / nextxch-cli erstellen:
nextxch-cli create ApiKey \
--set label="GitLab CI / Ansible" \
--set role=TenantAdmin \
--set allowedCidrs=10.20.0.0/16 \
--set expiresInDays=90
# Schlüssel widerrufen:
nextxch-cli delete ApiKey 0195f2a0-8b14-7000-9a10-001122334455
curl -fsS -X POST "https://mail.firma.de/api/admin/cli/objects/ApiKey" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"label":"Shopware 6","role":"User","senderAddress":"rechnung@muster-logistik.de","allowedCidrs":["10.20.10.15/32"],"expiresInDays":180}'
var res = await http.PostAsJsonAsync("/api/admin/cli/objects/ApiKey", new
{
label = "Shopware 6",
role = "User",
senderAddress = "rechnung@muster-logistik.de",
allowedCidrs = new[] { "10.20.10.15/32" },
expiresInDays = 180
});
var created = await res.Content.ReadFromJsonAsync<JsonElement>();
string oneTimeSecretKey = created.GetProperty("apiKey").GetString()!;
Route
Çelësi: domain
RBAC: ServerAdmin+
Ruterimi SMTP në dalje për çdo domain ose përjashtim i certifikatës TLS (p.sh. StartTlsIgnoreCert për hostet MX partnerë me certifikata të papërputhshme, ose lidhës i smart-host).
/api/admin/cli/objects/Route
Rreshton të gjitha rrugët e personalizuara dalëse
/api/admin/cli/objects/Route
Krijon një rrugë të personalizuar domeni ose mbivendosje TLS
/api/admin/cli/objects/Route/{domain}
Përditëson hostin e synuar, portin, ose modalitetin TLS
/api/admin/cli/objects/Route/{domain}
Fshin rrugën e personalizuar
domain
string
ÇELËSI PRIMAR
targetHost
string
OPSIONAL
"" (Auto DNS-MX)
targetPort
integer
OPSIONAL
25
tlsMode
string
OPSIONAL
StartTlsOptional
"StartTlsOptional""StartTlsRequired""StartTlsIgnoreCert""ImplicitTls""ImplicitTlsIgnoreCert""None"username
string
OPSIONAL
password
string
WRITE-ONLY (SECRET)
hasPassword
boolean
VETËM PËR LEXIM
false
clearPassword
boolean
WRITE-ONLY (SECRET)
false
description
string
OPSIONAL
enabled
boolean
OPSIONAL
true
{
"domain": "neff.me",
"targetHost": "",
"targetPort": 25,
"tlsMode": "StartTlsIgnoreCert",
"username": null,
"description": "Shared-Hosting-MX mit abweichendem Zertifikatsnamen (Auto DNS-MX)",
"enabled": true
}
# Partner-Domain mit fehlerhaftem MX-Zertifikat per Auto-DNS-MX freigeben:
nextxch-cli create Route \
--set domain=neff.me \
--set tlsMode=StartTlsIgnoreCert \
--set description="TLS NameMismatch auf Partner-MX erlauben"
# Internes ERP-Subnetz an lokalen Connector routen:
nextxch-cli create Route \
--set domain=erp.firma.intern \
--set targetHost=10.40.2.15 \
--set targetPort=25
curl -fsS -X POST "https://mail.firma.de/api/admin/cli/objects/Route" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"domain":"neff.me","targetHost":"","targetPort":25,"tlsMode":"StartTlsIgnoreCert","enabled":true}'
await http.PostAsJsonAsync("/api/admin/cli/objects/Route", new
{
domain = "neff.me",
targetHost = "",
targetPort = 25,
tlsMode = "StartTlsIgnoreCert",
enabled = true
});
TransactionalSend (Singleton)
Çelësi: singleton
RBAC: TenantAdmin+
Rregullon ngrohjen progresive 28-ditore të IP, kategoritë e mesazheve dhe kuotat orare/ditore për ofrues marrësish (Google, Microsoft, Yahoo/AOL, ISP gjermane, iCloud, *).
/api/admin/cli/objects/TransactionalSend/singleton
Merr ngrohjen aktive të IP-ve & politikën e kuotave të ofruesit
/api/admin/cli/objects/TransactionalSend/singleton
Përditëson ditën e ngrohjes, paracaktimin, ose kuotat e ofruesit
enabled
boolean
OPSIONAL
true
warmingEnabled
boolean
OPSIONAL
false
startAtWarmingDay
integer
WRITE-ONLY (SECRET)
1
currentWarmingDay
integer
VETËM PËR LEXIM
currentWarmingPercent
integer
VETËM PËR LEXIM
warmingDailyRampPercents
integer[]
OPSIONAL
[5,7,10,...,100]
maxDeferHours
integer
OPSIONAL
48
defaultCategory
string
OPSIONAL
transactional
"critical""transactional""notification""marketing"preset
string
WRITE-ONLY (SECRET)
"warming_28d""warming_14d""production_100"categories
CategoryPolicy[]
OPSIONAL
4 Kategorien},{i:52,t:
providers
ProviderQuota[]
OPSIONAL
6 Provider-Gruppen
{
"enabled": true,
"warmingEnabled": true,
"startAtWarmingDay": 1,
"maxDeferHours": 48,
"defaultCategory": "transactional",
"preset": "warming_28d"
}
# 28-Tage IP-Warming aktivieren:
nextxch-cli update TransactionalSend --set preset=warming_28d
# Direkt auf Warming-Tag 14 vorspringen:
nextxch-cli update TransactionalSend --set startAtWarmingDay=14
curl -fsS -X PATCH "https://mail.firma.de/api/admin/cli/objects/TransactionalSend/singleton" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"preset":"warming_28d","enabled":true}'
await http.PatchAsJsonAsync(
"/api/admin/cli/objects/TransactionalSend/singleton",
new { preset = "warming_28d", enabled = true });
ReputationShield (Singleton)
Çelësi: singleton
RBAC: TenantAdmin+
Mbrojtje opsionale e reputacionit në dalje: lista e shtypjes automatike të refuzimit/ankesës, çregjistrim me një klikim RFC 8058, ndërprerës qarku i refuzimit, ulje adaptive e shpejtësisë ISP 421 dhe Webhooks HMAC-SHA256.
/api/admin/cli/objects/ReputationShield/singleton
Merr konfigurimin aktual të Reputation Shield
/api/admin/cli/objects/ReputationShield/singleton
Përditëson flamujt e mbrojtjes ose aplikon një paracaktim
preset
string
WRITE-ONLY (SECRET)
"off""recommended""strict_bulk"enableSuppressionPreCheck
boolean
OPSIONAL
false
enforceSuppressionOnSmtpRelay
boolean
OPSIONAL
false
allSuppressedBehavior
string
OPSIONAL
reject_422
"reject_422""accept_noop"autoSuppressHardBounces
boolean
OPSIONAL
false
hardBounceSuppressionDays
integer
OPSIONAL
180
autoSuppressConsecutiveSoftBounces
boolean
OPSIONAL
false
softBounceEscalationThreshold
integer
OPSIONAL
5
autoSuppressFblComplaints
boolean
OPSIONAL
false
enableOneClickUnsubscribe
boolean
OPSIONAL
false
oneClickUnsubscribeCategories
string[]
OPSIONAL
["marketing","notification"]
enableBounceCircuitBreaker
boolean
OPSIONAL
false
maxHardBouncePercent
numër
OPSIONAL
5.0
maxComplaintPercent
numër
OPSIONAL
0.1
allowCriticalWhenTripped
boolean
OPSIONAL
true
enableAdaptiveIspBackoff
boolean
OPSIONAL
false
ispCooldownMinutes
integer
OPSIONAL
15
webhookEnabled
boolean
OPSIONAL
false
webhookUrl
string
OPSIONAL
webhookSecret
string
WRITE-ONLY (SECRET)
{
"preset": "recommended",
"enableSuppressionPreCheck": true,
"autoSuppressHardBounces": true,
"hardBounceSuppressionDays": 180,
"enableOneClickUnsubscribe": true,
"oneClickUnsubscribeCategories": ["marketing", "notification"],
"enableBounceCircuitBreaker": true,
"maxHardBouncePercent": 5.0,
"maxComplaintPercent": 0.1,
"allowCriticalWhenTripped": true,
"enableAdaptiveIspBackoff": true,
"webhookEnabled": true,
"webhookUrl": "https://erp.firma.de/webhooks/nextxch"
}
# Empfohlenen Reputationsschutz aktivieren:
nextxch-cli update ReputationShield --set preset=recommended
# Webhook-Ziel konfigurieren:
nextxch-cli update ReputationShield \
--set webhookEnabled=true \
--set webhookUrl=https://erp.firma.de/webhooks/nextxch \
--set webhookSecret=whsec_9f8e7d6c5b4a
curl -fsS -X PATCH "https://mail.firma.de/api/admin/cli/objects/ReputationShield/singleton" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"preset":"recommended"}'
await http.PatchAsJsonAsync(
"/api/admin/cli/objects/ReputationShield/singleton",
new { preset = "recommended" });
SpamGuard (Singleton)
Çelësi: singleton
RBAC: ServerAdmin+
Mbrojtje hyrëse me shumë faza: verifikim SPF/DKIM/DMARC/ARC, Smart Greylisting (/24 IPv4 & /64 IPv6), klasifikues online ML (FTRL-Proximal), zona DNSBL, lista lejo/blloko dhe skanim TCP i ClamAV.
/api/admin/cli/objects/SpamGuard/singleton
Merr pragjet e SpamGuard & numëruesit e trajnimit
/api/admin/cli/objects/SpamGuard/singleton
Përditëson rezultatet, DNSBL, listat e lejuara, ose ClamAV në vend
enableEmailAuthChecks
boolean
OPSIONAL
true
enableGreylisting
boolean
OPSIONAL
true
greylistRetryDelaySeconds
integer
OPSIONAL
240
junkScoreThreshold
numër
OPSIONAL
4.5
rejectScoreThreshold
numër
OPSIONAL
9.0
tagSubjectOnJunk
boolean
OPSIONAL
false
subjectTagPrefix
string
OPSIONAL
"[SPAM] "
enableStructuralHeuristics
boolean
OPSIONAL
true
dnsblZones
string[]
OPSIONAL
["bl.spamcop.net","ix.dnsbl.manitu.net"]
dnsblHitScore
numër
OPSIONAL
3.5
allowedSendersOrDomains
string[]
OPSIONAL
[]
blockedSendersOrDomains
string[]
OPSIONAL
[]
clamAvEnabled
boolean
OPSIONAL
false
clamAvHost
string
OPSIONAL
"127.0.0.1"
clamAvPort
integer
OPSIONAL
3310
{
"enableEmailAuthChecks": true,
"enableGreylisting": true,
"greylistRetryDelaySeconds": 240,
"junkScoreThreshold": 4.5,
"rejectScoreThreshold": 9.0,
"enableStructuralHeuristics": true,
"dnsblZones": ["bl.spamcop.net", "ix.dnsbl.manitu.net"],
"dnsblHitScore": 3.5,
"allowedSendersOrDomains": ["datev.de", "partner-spedition.de"],
"blockedSendersOrDomains": [],
"clamAvEnabled": false,
"clamAvHost": "127.0.0.1",
"clamAvPort": 3310
}
# Partner-Domains auf die Allowlist setzen:
nextxch-cli update SpamGuard \
--set allowedSendersOrDomains=datev.de,partner-spedition.de
# Schwellenwerte anpassen:
nextxch-cli update SpamGuard --set junkScoreThreshold=4.5 --set rejectScoreThreshold=9.0
curl -fsS -X PATCH "https://mail.firma.de/api/admin/cli/objects/SpamGuard/singleton" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"junkScoreThreshold":4.5,"rejectScoreThreshold":9.0,"allowedSendersOrDomains":["datev.de"]}'
await http.PatchAsJsonAsync(
"/api/admin/cli/objects/SpamGuard/singleton",
new { junkScoreThreshold = 4.5, rejectScoreThreshold = 9.0 });
SmtpQueue (Singleton)
Çelësi: singleton
RBAC: ServerAdmin+
Kontrollon radhën e dërgesave MX dalëse, konkurencën e punonjësve, intervalet e riprovës, frenimin e ISP, vlefshmërinë TLS dalëse, smart-host global, dhe kufizimet ESMTP hyrëse.
/api/admin/cli/objects/SmtpQueue/singleton
Merr të gjitha cilësimet e radhës, TLS dhe ESMTP
/api/admin/cli/objects/SmtpQueue/singleton
Përditëson punëtorët e radhës, orarin e ripërsëritjes, ose kufijtë ESMTP në 0 ms
outboundQueuePaused
boolean
OPSIONAL
false
outboundWorkerConcurrency
integer
OPSIONAL
8
maxDeliveryAttempts
integer
OPSIONAL
10
retryScheduleMinutes
integer[]
OPSIONAL
[5,15,60,240,720]
maxConcurrentConnectionsPerMxDomain
integer
OPSIONAL
4
strictThrottleDomains
string[]
OPSIONAL
["t-online.de","gmx.de","web.de","yahoo.com"]
strictThrottleMaxConcurrency
integer
OPSIONAL
2
outboundConnectTimeoutSeconds
integer
OPSIONAL
30
outboundBindAddress
string
OPSIONAL
"" (Auto)
outboundUseStartTls
boolean
OPSIONAL
true
requireOutboundTls
boolean
OPSIONAL
false
outboundTlsCertValidation
string
OPSIONAL
Opportunistic
"Opportunistic""IgnoreErrors""Strict"outboundSmartHost
string
OPSIONAL
""
outboundSmartPort
integer
OPSIONAL
587
maxMessageSizeMb
long
OPSIONAL
50
maxRecipientsPerTransaction
integer
OPSIONAL
100
maxConnectionsPerIp
integer
OPSIONAL
20
tarpitDelayMs
integer
OPSIONAL
1500
requireTlsForAuth
boolean
OPSIONAL
true
{
"outboundQueuePaused": false,
"outboundWorkerConcurrency": 8,
"maxDeliveryAttempts": 10,
"retryScheduleMinutes": [5, 15, 60, 240, 720],
"maxConcurrentConnectionsPerMxDomain": 4,
"strictThrottleDomains": ["t-online.de", "gmx.de", "web.de", "yahoo.com"],
"strictThrottleMaxConcurrency": 2,
"outboundUseStartTls": true,
"requireOutboundTls": false,
"outboundTlsCertValidation": "Opportunistic",
"maxMessageSizeMb": 50,
"maxRecipientsPerTransaction": 100,
"tarpitDelayMs": 1500,
"requireTlsForAuth": true
}
# Outbound-TLS auf Opportunistic (RFC 7435) setzen & MaxMessageSize auf 75 MiB erhöhen:
nextxch-cli update SmtpQueue \
--set outboundTlsCertValidation=Opportunistic \
--set maxMessageSizeMb=75
curl -fsS -X PATCH "https://mail.firma.de/api/admin/cli/objects/SmtpQueue/singleton" \
-H "Authorization: Bearer smk_..." \
-H "Content-Type: application/json" \
-d '{"outboundTlsCertValidation":"Opportunistic","maxMessageSizeMb":75}'
await http.PatchAsJsonAsync(
"/api/admin/cli/objects/SmtpQueue/singleton",
new { outboundTlsCertValidation = "Opportunistic", maxMessageSizeMb = 75 });
TransportRules & Server (Singletons)
Çelësi: singleton
RBAC: ServerAdmin+
Mohim përgjegjësie ligjore në nivel organizate (i futur para nënshkrimit DKIM), skript global Sieve hyrës, pragje vetëbllokimi Fail2Ban dhe ServerHostName kanonik.
/api/admin/cli/objects/TransportRules/singleton
Merr cilësimet e deklaratës, Sieve globale dhe ndalimit automatik
/api/admin/cli/objects/TransportRules/singleton
Përditëson rregullat e transportit në vend
/api/admin/cli/objects/Server/singleton
Merr ServerHostName, motorin e ruajtjes, thellësinë e radhës dhe statusin e licencës
/api/admin/cli/objects/Server/singleton
Përditëson ServerHostName kanonik në 0 ms
outboundDisclaimerEnabled
boolean
OPSIONAL
false
outboundDisclaimerExternalOnly
boolean
OPSIONAL
true
outboundDisclaimerText
string
OPSIONAL
""
outboundDisclaimerHtml
string
OPSIONAL
""
inboundSystemSieve
string
OPSIONAL
""
autoBanThreshold
integer
OPSIONAL
8
autoBanDurationMinutes
integer
OPSIONAL
30
serverHostName
string
OPSIONAL
mail.<domain>
storageProvider
string
VETËM PËR LEXIM
Sqlite | SqlServer | Postgres
activeQueueCount
integer
VETËM PËR LEXIM
0
licenseState
string
VETËM PËR LEXIM
EnterpriseActive
{
"outboundDisclaimerEnabled": true,
"outboundDisclaimerExternalOnly": true,
"outboundDisclaimerText": "-- \nMuster Logistik GmbH · Industriestraße 18 · 70565 Stuttgart · HRB 774819",
"outboundDisclaimerHtml": "<p style='font-size:11px;color:#64748b'><strong>Muster Logistik GmbH</strong> · 70565 Stuttgart · HRB 774819</p>",
"inboundSystemSieve": "require [\"fileinto\"];\nif header :contains \"X-Spam-Flag\" \"YES\" { fileinto \"Junk\"; }",
"autoBanThreshold": 8,
"autoBanDurationMinutes": 30
}
# Pflicht-Impressum & Auto-Ban aktualisieren:
nextxch-cli update TransportRules \
--set outboundDisclaimerEnabled=true \
--set autoBanThreshold=8
# Kanonischen Server-Hostnamen abfragen oder setzen:
nextxch-cli get Server
nextxch-cli update Server --set serverHostName=mail.muster-logistik.de
curl -fsS -X GET "https://mail.firma.de/api/admin/cli/objects/Server/singleton" \
-H "Authorization: Bearer smk_..."
var status = await http.GetFromJsonAsync<JsonElement>("/api/admin/cli/objects/Server/singleton");
Console.WriteLine($"Host: {status.GetProperty("serverHostName")}, Queue: {status.GetProperty("activeQueueCount")}");