#pApiAuth
전체 API 및 CLI 필드 참조: 12개 모든 객체 타입, REST 엔드포인트 및 POST /api/v1/send
이 문서는 12개의 모든 관리 개체(/api/admin/cli/objects/{type} & nextxch-cli) 및 트랜잭션 이메일 전송(POST /api/v1/send)에 걸쳐 모든 JSON 속성, 데이터 형식, 열거형 값, 기본 설정 및 최소 RBAC 역할을 문서화합니다. 테이블 위의 즉시 필터 상자를 사용하여 dkimSigningMode, tlsMode, allowedCidrs 또는 warmingEnabled와 같은 모든 속성을 검색할 수 있습니다.
터미널 또는 HTTP를 통한 실시간 내부 검사: 모든 nextxch는 GET /api/admin/cli/schema에서 머신 리더블 JSON 형식으로 이 완전한 스키마를 노출합니다(SHA-256 헤더 X-Nextxch-Schema-Version 포함). 터미널에서 언제든지 nextxch-cli describe <Type>(예: nextxch-cli describe Domain 또는 nextxch-cli describe SmtpQueue)을 실행하십시오.
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)
키: Idempotency-Key
RBAC: User+
카테고리 우선순위 지정, IP 워밍, 수신 거부 사전 확인, 24시간 멱등성을 지원하는 웹 앱, ERP, CRM 및 2FA 코드를 위한 고처리량 HTTP JSON 전송 엔드포인트.
/api/v1/send
트랜잭셔널 이메일 대기열 등록 및 서명(UTF-8 Multipart/Alternative + 첨부파일)
/api/v1/send/batch
단일 HTTP 요청으로 최대 1,000개의 개인화된 메시지 대기열 등록
/api/v1/unsubscribe/{token}
공개 RFC 8058 원클릭 구독 취소 엔드포인트(DKIM 서명 토큰)
from
string
선택 사항
Key senderAddress
fromName
string
선택 사항
to
string[]
필수
personalizations
Personalization[]
선택 사항
[]
cc
string[]
선택 사항
[]
bcc
string[]
선택 사항
[]
replyTo
string | string[]
선택 사항
subject
string
선택 사항
Template subject
templateSlug
string
선택 사항
variables
Record<string, any>
선택 사항
{}
locale
string
선택 사항
Template defaultLocale
textBody
string
선택 사항
htmlBody
string
선택 사항
stream
string
선택 사항
transactional},{i:109,t:
category
string
선택 사항
transactional},{i:109,t:
"critical""transactional""notification""marketing"scheduledAtUtc
datetime
선택 사항
trackOpens
boolean
선택 사항
false
trackClicks
string
선택 사항
none
"none""html_only""all"overflowMode
string
선택 사항
DeferQueue
"DeferQueue""Reject429"idempotencyKey
string
선택 사항
Header Idempotency-Key
batchId
string
선택 사항
auto
tags
string[]
선택 사항
[]
metadata
Record<string, string>
선택 사항
{}
headers
Record<string, string>
선택 사항
{}
requestDeliveryReceipt
boolean
선택 사항
false
requestReadReceipt
boolean
선택 사항
false
attachments
SendAttachmentDto[]
선택 사항
[]
{
"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)
키: id
RBAC: TenantAdmin+
/api/v1에 대한 권한 범위(scope)가 포함된 통합 키(Integration key)입니다. 키는 단일 사용자를 위해 작동하거나, 테넌트 통합으로서 X-Nextxch-Act-As 헤더에 지정된 사용자를 위해 작동합니다. 권한 범위가 없으면 API는 403을 반환하고, 다른 테넌트의 사용자는 404를 반환합니다. 선택 사항인 OAuth 2.0 클라이언트 자격 증명(토큰 유효 시간 1시간)입니다.
/api/admin/integrations/keys
키 생성(관리자, 한 번만 표시됨)
/api/admin/integrations/keys/{id}
범위 변경
/api/admin/integrations/keys/{id}
키(및 해당 OAuth 토큰) 취소
/api/v1/oauth/token
OAuth 2.0 client_credentials: 액세스 토큰을 위한 키 ID + 키
/api/v1/me
키, 범위 및 실행 사용자
/api/v1/openapi.json
설치 환경의 OpenAPI 3.1 문서
label
string
필수
mode
string
필수
user},{i:111,t:
"user""tenant"userEmail
string
선택 사항
scopes
string[]
필수
"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
선택 사항
allowedCidrs
string[]
선택 사항
[]
expiresInDays
integer
선택 사항
senderAddress
string
선택 사항
apiKey
string
읽기 전용
{
"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)
키: hrefName
RBAC: User+
시리즈 및 예외, 참석자, 회의실, 초대, 응답, 바쁨/한가함, 공유 및 전역 캘린더, 초대 링크가 포함된 이벤트. calendar.read 및 calendar.write 범위 지원. 시간은 UTC(ISO-8601), 시간대는 IANA 이름 사용.
/api/v1/calendars
자체, 공유, 글로벌 및 리소스 캘린더
/api/v1/calendar/events?from&to&calendarId&limit&cursor
창 내의 발생 횟수(시리즈 확장됨)
/api/v1/calendar/events
이벤트 생성(참가자 및 회의실 초대)
/api/v1/calendar/events/{hrefName}
시리즈 및 예외가 포함된 이벤트
/api/v1/calendar/events/{hrefName}
변경; scope=occurrence|following (시리즈의 일부 대상)
/api/v1/calendar/events/{hrefName}
삭제(선택적으로 취소 알림 포함, notify=true)
/api/v1/calendar/events/{hrefName}/respond
초대장 응답하기
/api/v1/calendar/events/{hrefName}/invite-link
서명된 초대 링크
/api/v1/calendar/events/{hrefName}/ics
Raw iCalendar
/api/v1/calendar/freebusy
사람 및 회의실의 바쁨/한가함 정보
title
string
필수
startUtc
datetime
필수
endUtc
datetime
필수
timeZone
string
선택 사항
Europe/Berlin
allDay
boolean
선택 사항
false
attendees
Attendee[]
선택 사항
[]
sendInvitations
boolean
선택 사항
false
recurrence
반복
선택 사항
showAs
string
선택 사항
busy
"free""tentative""busy""oof""workingElsewhere"isPrivate
boolean
선택 사항
false
calendarId
string
선택 사항
teamsMeeting
boolean
선택 사항
{
"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)
키: id
RBAC: User+
가용성(rooms.read) 및 Calendly와 같은 예약 페이지(booking.read, booking.write)가 있는 회의실 및 리소스: 예약 페이지, 이벤트 유형, 빈 시간대, 예약 읽기 및 취소. 회의실은 회의실을 참석자로 지정하여 이벤트 통해 예약됩니다.
/api/v1/rooms?startUtc&endUtc&category
해당 시간대에 빈 회의실 및 리소스
/api/v1/rooms/{email}/availability
회의실 사용 중인 시간
/api/v1/booking/profile
운영 시간 및 이벤트 유형이 포함된 예약 페이지
/api/v1/booking/event-types
이벤트 유형
/api/v1/booking/event-types
이벤트 유형 생성
/api/v1/booking/event-types/{id}/slots?from&to
무료 시작 시간(최대 42일)
/api/v1/booking/bookings?status&from&to
예약
/api/v1/booking/bookings/{id}/cancel
예약 취소(게스트에게 통지됨)
slots[].startUtc
datetime
읽기 전용
slots[].endUtc
datetime
읽기 전용
slots[].staff
object[]
읽기 전용
status
string
읽기 전용
"confirmed""cancelled"guest
object
읽기 전용
free
boolean
읽기 전용
{
"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)
키: hrefName
RBAC: User+
모든 필드와 사진이 포함된 개인 연락처 (contacts.read, contacts.write, 충돌 방지를 위한 If-Match), 글로벌 주소록 (directory.read), 공유 및 위임 (sharing.manage, 위임 = sendAs 또는 sendOnBehalf 권한이 있는 사서함 부여).
/api/v1/contacts?q
연락처 검색
/api/v1/contacts
연락처 생성
/api/v1/contacts/{hrefName}
연락처 수정 (빈 필드 유지)
/api/v1/contacts/{hrefName}
연락처 삭제
/api/v1/directory?q&type
전역 주소록
/api/v1/sharing/grants
자체 권한(Grants)
/api/v1/sharing/grants
권한 부여 설정 또는 제거
/api/v1/sharing/shared-with-me
나와 공유됨
givenName
string
선택 사항
familyName
string
선택 사항
organization
string
선택 사항
emails
TypedValue[]
선택 사항
[]
phones
TypedValue[]
선택 사항
[]
addresses
Address[]
선택 사항
[]
birthday
string
선택 사항
photo
string
쓰기 전용(비밀)
permissions
string[]
선택 사항
"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)
키: id
RBAC: User+
서명된 JSON POST 형태의 이벤트: 캘린더 및 예약 이벤트(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, 선택적으로 batchSeconds를 통한 일괄 처리). 서명 X-Nextxch-Signature: v1=hex(HMAC-SHA256(secret, X-Nextxch-Timestamp + "." + body)). 30초, 2분, 10분, 1시간, 6시간 후 재시도.
/api/v1/webhooks
테넌트의 웹훅
/api/v1/webhooks
웹훅 등록(응답에만 시크릿 포함)
/api/v1/webhooks/{id}
웹훅 삭제
/api/v1/webhooks/{id}/deliveries
최근 전달 항목
/api/v1/webhooks/{id}/test
테스트 이벤트 보내기
url
string
필수
events
string[]
필수
"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
선택 사항
0
secret
string
읽기 전용
id (Ereignis)
string
읽기 전용
{
"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)
키: sendId
RBAC: User+
트랜잭션 단일 및 일괄 전송(POST /api/v1/send, POST /api/v1/send/batch, SMTP apikey, 및 드롭인 어댑터 /emails, /v3/mail/send, /email, /v3/{domain}/messages; scope mail.send) 및 계정 격리 라이브 전달 인사이트(scope delivery.read, delivery.write): 전송 및 수신자별 상태, 시계열 통계(/api/v1/stats), 공급자별 재시도 사유가 포함된 일괄 진행 상황, 72시간 Last-Event-ID 재개가 지원되는 Server-Sent Events 스트림, 개입 기능(취소, 재시도, 일정 변경, 리디렉션), 앱별 억제 목록, 그리고 기본적으로 픽셀이 없는 단기 CORS 바인딩 상태 위젯 토큰(/shared/delivery-widget.js).
/api/v1/send
트랜잭션 전송; 수신자별로 sendId, batchId, 태그, 메타데이터 및 recipientId 반환
/api/v1/send/batch
개인화된 배치 전송 (mergeVars, locale 및 scheduledAtUtc가 포함된 최대 1,000명의 수신자)
/emails
Resend 호환 드롭인 엔드포인트(POST /emails/batch 포함)
/v3/mail/send
SendGrid v3 호환 드롭인 엔드포인트 (personalizations & dynamic_template_data)
/email
Postmark 호환 드롭인 엔드포인트(/email/batch 및 /email/withTemplate 포함)
/v3/{domain}/messages
Mailgun 호환 드롭인 엔드포인트 (multipart/form-data, Basic api:smk_...)
/api/v1/sends
지정된 시간 창의 발송 목록(?tag&status&batchId&since&until)
/api/v1/sends/{sendId}
각 수신자까지의 발송 상태(시도, SMTP 응답, MX, TLS, 반송 클래스)
/api/v1/sends/{sendId}/{cancel|retry|reschedule}
발송 대기 중인 수신자 취소, 지금 재시도 또는 일정 변경(리디렉션 포함 수신자별 가능)
/api/v1/batches/{batchId}
진행 상황이 포함된 일괄 요약, 사유/제공업체별로 그룹화된 재시도, 일괄 작업(/cancel|retry|reschedule)
/api/v1/stats
집계된 전송, 전달, 반송 및 수신 동의 추적 시계열 (?bucket=hour|day&stream&domain)
/api/v1/events/stream
서버 이벤트(Server-Sent Events)를 통한 실시간 전달 이벤트 (Last-Event-ID를 통한 재개, GET /api/v1/events의 이력)
/api/v1/suppressions
앱의 차단 목록 읽기(?q&reason); POST /api/v1/suppressions를 통해 추가하고, DELETE /api/v1/suppressions/{address}를 통해 해제합니다.
/api/v1/delivery/widget-token
임베디드 웹 컴포넌트 상태 위젯을 위한 수명이 짧은 읽기 전용 토큰(nxwt_..., 최대 24시간)
sendId
guid
기본 키
UUIDv7
recipientId
guid
읽기 전용
UUIDv7
batchId
string
선택 사항
auto
stream
string
선택 사항
transactional},{i:109,t:
personalizations
Personalization[]
선택 사항
[]
scheduledAtUtc
datetime
선택 사항
trackOpens
boolean
선택 사항
false
trackClicks
string
선택 사항
none
"none""html_only""all"tags
string[]
선택 사항
[]
metadata
Record<string, string>
선택 사항
{}
state
string
읽기 전용
"scheduled""queued""deferred""delivered""bounced""suppressed""expired""cancelled"throttleReason
string
읽기 전용
"greylisting""rate_limit""provider_cooldown""provider_quota""connection""tls_required""temporary"bounceClass
string
읽기 전용
"mailbox_unknown""mailbox_full""spam_rejected""policy""dns_failure""tls_required""temporary"lastSmtpResponse
string
읽기 전용
sendAtUtc
datetime
선택 사항
origins
string[]
선택 사항
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)
키: slug
RBAC: TenantAdmin+
서버측 Handlebars 템플릿 및 조건문({{#if}}), 루프({{#each}}), 로케일별 변형, 초안/게시 버전 관리, 엄격한 변수 검사(strictVariables) 및 자동 일반 텍스트 생성이 포함된 재사용 가능한 기본 레이아웃({{{body}}}). 범위: templates.read, templates.write.
/api/v1/templates
테넌트의 템플릿 나열
/api/v1/templates
템플릿 생성(초안 또는 게시됨)
/api/v1/templates/{idOrSlug}
초안 업데이트(배포될 때까지 라이브 버전은 변경되지 않음)
/api/v1/templates/{idOrSlug}/publish
현재 초안을 새 고정 버전으로 게시
/api/v1/templates/{idOrSlug}/render
샘플 변수로 미리보기 렌더링(전송 없음)
/api/v1/templates/layouts
기본 레이아웃 나열(POST/PUT /api/v1/templates/layouts를 통해 생성/업데이트)
slug
string
기본 키
name
string
필수
layoutSlug
string
선택 사항
defaultLocale
string
선택 사항
de
strictVariables
boolean
선택 사항
true
locales
Record<string, LocaleContent>
필수
publishedVersion
integer
읽기 전용
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)
키: domain / slug
RBAC: TenantAdmin+
셀프 서비스 고객 발송자 도메인 온보딩 (/api/v1/domains, scope domains.manage), 2FA/트랜잭션 및 브로드캐스트 트래픽을 격리하는 메시지 스트림, 전용 아웃바운드 IP 풀(소스 IP 바인딩 + HELO/PTR), 테넌트별 월간 할당량 및 동의 추적 엔드포인트 (/t/o/, /t/c/).
/api/v1/domains
DKIM/SPF/DMARC/추적 검증 상태가 포함된 발신자 도메인 목록
/api/v1/domains
발신자 도메인 등록 및 필수 DNS 레코드 생성
/api/v1/domains/{id}/verify
라이브 DNS 검증 트리거(Dual-DKIM, SPF, DMARC, Return-Path, 추적 CNAME)
/api/admin/esp/streams
메시지 스트림 및 연결된 아웃바운드 IP 풀 나열/관리
/api/admin/esp/ip-pools
로컬 소스 IP 및 HELO 호스트 이름으로 아웃바운드 IP 풀 관리
/t/o/{token}.gif
공개 옵트인 오픈 픽셀 엔드포인트(trackOpens=true일 때만 활성화, Apple MPP 감지 포함)
/t/c/{token}
공개 HMAC 검증 옵트인 클릭 리디렉션(서명된 대상 URL로 302)
domain
string
기본 키
trackingHost
string
선택 사항
streamSlug
string
선택 사항
transactional},{i:109,t:
"critical""transactional""broadcast""inbound"ipPoolId
string
선택 사항
pool-tx-default},{i:103,t:
monthlySendLimit
integer
선택 사항
0 (무제한)
dnsRecords
DnsRecordHint[]
읽기 전용
{
"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)
키: id
RBAC: TenantAdmin+
주소 패턴(예: ticket+*@support.company.eu 또는 invoices@inbound.company.eu)에 일치하는 수신 이메일을 SPF/DKIM/DMARC 및 8개 엔진 AV 검사 후 strippedTextReply와 ZUGFeRD/XRechnung 추출이 포함된 구조화된 HMAC-SHA256 서명 HTTPS JSON 웹훅으로 변환합니다. 범위: inbound.manage.
/api/v1/inbound/routes
구성된 인바운드 구문 분석 라우트 나열
/api/v1/inbound/routes
인바운드 파스 경로 생성(whsec_... 서명 비밀 반환)
/api/v1/inbound/routes/{id}
대상 URL, 패턴 또는 일치 모드 업데이트
/api/v1/inbound/routes/{id}
인바운드 구문 분석 경로 삭제
/api/v1/inbound/routes/{id}/test
합성 테스트 인바운드 웹훅 페이로드 발송
pattern
string
필수
url
string
필수
mode
string
선택 사항
StoreAndWebhook
"WebhookOnly""StoreAndWebhook"includeRawMime
boolean
선택 사항
false
extractZugferd
boolean
선택 사항
true
strippedTextReply
string
읽기 전용
{
"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)
키: id
RBAC: TenantAdmin+
내장 구독자 오디언스, 맞춤형 속성과 태그가 있는 연락처, 구독 주제, 감사 증적 가능 GDPR 이중 옵트인(Double Opt-In) 워크플로우, 호스팅된 환경 설정 센터(RFC 8058), 연락처당 수수료 없는 예약 브로드캐스트 캠페인. 범위: audiences.read, audiences.write, campaigns.manage.
/api/v1/audiences
구독자 수가 포함된 테넌트의 오디언스 나열
/api/v1/audiences
새 잠재고객 생성(requireDoubleOptIn 포함)
/api/v1/audiences/{id}/contacts
연락처 갱신 또는 GDPR 이중 옵트인 확인 이메일 트리거
/api/v1/audiences/{id}/import
중복 제거 및 태그 할당 기능이 있는 대량 CSV/JSON 연락처 가져오기
/api/v1/topics
기본 설정 센터의 구독 주제 나열(POST /api/v1/topics를 통해 생성)
/api/v1/campaigns
잠재고객/세그먼트 및 메시지 스트림을 대상으로 하는 브로드캐스트 캠페인 생성
/api/v1/campaigns/{id}/send
캠페인 발송 시작 또는 예약 (/pause로 중단)
/api/v1/audiences/confirm/{token}
공개 GDPR 이중 옵트인 확인 엔드포인트(타임스탬프 및 IP 해시 기록)
name
string
필수
requireDoubleOptIn
boolean
선택 사항
true
status (Contact)
string
읽기 전용
pending_doi
"pending_doi""subscribed""unsubscribed""bounced""complained"topicSlug
string
선택 사항
segmentTags
string[]
선택 사항
[]
stream
string
선택 사항
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
키: slug
RBAC: ServerAdmin+
도메인, 주체, 스토리지 할당량(GiB) 및 기본 GoBD WORM 규정 준수 보존을 격리하는 멀티 테넌트 조직 경계.
/api/admin/cli/objects/Tenant
모든 테넌트 나열
/api/admin/cli/objects/Tenant/{slugOrId}
슬러그 또는 UUID로 테넌트 가져오기
/api/admin/cli/objects/Tenant
새 테넌트 생성
/api/admin/cli/objects/Tenant/{slugOrId}
제자리에서 테넌트 할당량 업데이트
id
guid
읽기 전용
UUIDv7
slug
string
기본 키
name
string
필수
isActive
boolean
선택 사항
true
maxDomains
integer
선택 사항
100
maxPrincipals
integer
선택 사항
10000
quotaGb
integer
선택 사항
100
outboundDailyLimit
integer
선택 사항
25000
defaultLockMode
string
선택 사항
Normal
"Normal""Governance""Compliance""LegalHold"defaultRetentionDays
integer
선택 사항
0
createdAtUtc
datetime
읽기 전용
{
"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
키: name
RBAC: TenantAdmin+
자동 병렬 Dual-DKIM 키 생성(RSA-2048 + Ed25519), GoBD WORM 보존 정책, 플러스 어드레싱 및 속도 제한 기능이 포함된 호스팅 메일 도메인.
/api/admin/cli/objects/Domain
모든 도메인 나열
/api/admin/cli/objects/Domain/{name}
도메인 구성 및 DKIM 셀렉터 가져오기
/api/admin/cli/objects/Domain
도메인 생성 및 RSA-2048 + Ed25519 DKIM 키 생성
/api/admin/cli/objects/Domain/{name}
0밀리초 내에 DKIM 모드, 할당량 또는 보존 기간 업데이트
/api/admin/cli/dns/{name}?live=true
라이브 DNS 레코드를 검증하거나 RFC 1035 BIND 영역을 내보냅니다.
id
guid
읽기 전용
UUIDv7
name
string
기본 키
tenant
string
선택 사항
default
isActive
boolean
선택 사항
true
postmasterAddress
string
선택 사항
postmaster@<name>
dkimSigningMode
string
선택 사항
Dual
"Rsa2048""Ed25519""Dual"dkimRsaSelector
string
선택 사항
s2026},{i:107,t:
dkimRsaDnsName
string
읽기 전용
s2026._domainkey.<name>
dkimEd25519Selector
string
선택 사항
ed2026
dkimEd25519DnsName
string
읽기 전용
ed2026._domainkey.<name>
retentionLockMode
string
선택 사항
Normal
"Normal""Governance""Compliance""LegalHold"retentionDays
integer
선택 사항
0
quotaGb
integer
선택 사항
50
maxMessageSizeMb
integer
선택 사항
50
maxAccounts
integer
선택 사항
1000
outboundDailyLimit
integer
선택 사항
5000
outboundHourlyLimit
integer
선택 사항
1000
usePlusAddressing
boolean
선택 사항
true
createdAtUtc
datetime
읽기 전용
{
"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)
키: email
RBAC: TenantAdmin+
사용자 사서함(@type="User", IMAP/JMAP/CalDAV/CardDAV/ActiveSync 포함) 또는 배포 목록(@type="List", members[] 포함)을 나타냅니다.
/api/admin/cli/objects/Account?filter=role=TenantAdmin
계정 및 배포 목록 나열/필터링
/api/admin/cli/objects/Account/User
RFC 6154 폴더가 있는 새 사용자 사서함 생성
/api/admin/cli/objects/Account/List
새 배포 리스트 생성
/api/admin/cli/objects/Account/{email}
할당량, 전달, 부재중 또는 비밀번호 업데이트
/api/admin/cli/objects/Account/{email}
계정 소프트 삭제
id
guid
읽기 전용
UUIDv7
@type
string
선택 사항
User
"User""List"email
string
기본 키
displayName
string
선택 사항
로컬 부분
password
string
쓰기 전용(비밀)
role
string
선택 사항
User
"User""ComplianceAuditor""TenantAdmin""ServerAdmin"isActive
boolean
선택 사항
true
quotaMb
integer
선택 사항
5120
usedBytes
long
읽기 전용
0
outboundDailyLimit
integer
선택 사항
500
forwardAddress
string
선택 사항
forwardKeepOriginal
boolean
선택 사항
true
vacationEnabled
boolean
선택 사항
false
vacationSubject
string
선택 사항
vacationBody
string
쓰기 전용(비밀)
twoFactorEnabled
boolean
읽기 전용
false
members
string[]
선택 사항
[]
createdAtUtc
datetime
읽기 전용
{
"@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
키: address
RBAC: TenantAdmin+
기본 계정 사서함 또는 메일 그룹으로 라우팅되는 보조 이메일 별칭 또는 일회용 마스킹 프라이버시 별칭.
/api/admin/cli/objects/Alias
모든 별칭 및 마스킹된 이메일 나열
/api/admin/cli/objects/Alias
대상 사서함으로 라우팅되는 새 별칭 생성
/api/admin/cli/objects/Alias/{address}
별칭 활성화/일시 정지 또는 대상 업데이트
/api/admin/cli/objects/Alias/{address}
별칭을 삭제합니다.
address
string
기본 키
target
string
필수
principalId
guid
읽기 전용
description
string
선택 사항
""
isMasked
boolean
선택 사항
false
isEnabled
boolean
선택 사항
true
createdAtUtc
datetime
읽기 전용
{
"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
키: id
RBAC: TenantAdmin+
/api/v1/send, SCIM 2.0 또는 nextxch-cli용 변경 불가능한 RBAC 및 CIDR 제한 범위 API 키 (smk_<id>_<secret>).
/api/admin/cli/objects/ApiKey
활성 API 키 나열(시크릿 제외)
/api/admin/cli/objects/ApiKey
새 API 키를 생성하고 apiKey(smk_...)를 한 번 반환합니다.
/api/admin/cli/objects/ApiKey/{id}
즉시 API 키 취소
id
guid
읽기 전용
UUIDv7
apiKey
string
CREATE-ONLY
smk_<id>_<secret>
label
string
필수
role
string
선택 사항
TenantAdmin
"User""ComplianceAuditor""TenantAdmin""ServerAdmin"senderAddress
string
선택 사항
defaultCategory
string
선택 사항
transactional},{i:109,t:
"critical""transactional""notification""marketing"allowedCidrs
string[]
선택 사항
[] (모든 IP)},{i:89,t:
expiresInDays
integer
쓰기 전용(비밀)
null (만료 없음)},{i:101,t:
expiresAtUtc
datetime
읽기 전용
outboundDailyLimit
integer
선택 사항
10000
isActive
boolean
읽기 전용
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
키: domain
RBAC: ServerAdmin+
도메인별 아웃바운드 SMTP 라우팅 또는 TLS 인증서 예외 (예: 인증서가 일치하지 않는 파트너 MX 호스트를 위한 StartTlsIgnoreCert 또는 스마트 호스트 커넥터).
/api/admin/cli/objects/Route
모든 사용자 정의 아웃바운드 라우트 나열
/api/admin/cli/objects/Route
사용자 정의 도메인 경로 또는 TLS 재정의 생성
/api/admin/cli/objects/Route/{domain}
대상 호스트, 포트 또는 TLS 모드 업데이트
/api/admin/cli/objects/Route/{domain}
사용자 지정 경로 삭제
domain
string
기본 키
targetHost
string
선택 사항
"" (자동 DNS-MX)
targetPort
integer
선택 사항
25
tlsMode
string
선택 사항
StartTlsOptional
"StartTlsOptional""StartTlsRequired""StartTlsIgnoreCert""ImplicitTls""ImplicitTlsIgnoreCert""None"username
string
선택 사항
password
string
쓰기 전용(비밀)
hasPassword
boolean
읽기 전용
false
clearPassword
boolean
쓰기 전용(비밀)
false
description
string
선택 사항
enabled
boolean
선택 사항
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)
키: singleton
RBAC: TenantAdmin+
점진적인 28일간의 IP 워밍, 메시지 카테고리, 수신자 제공업체별 시간별/일별 할당량 관리 (Google, Microsoft, Yahoo/AOL, 독일 ISP, iCloud, *).
/api/admin/cli/objects/TransactionalSend/singleton
활성 IP 웜업 및 공급업체 할당량 정책 가져오기
/api/admin/cli/objects/TransactionalSend/singleton
워밍업 일수, 사전 설정 또는 공급업체 할당량 업데이트
enabled
boolean
선택 사항
true
warmingEnabled
boolean
선택 사항
false
startAtWarmingDay
integer
쓰기 전용(비밀)
1
currentWarmingDay
integer
읽기 전용
currentWarmingPercent
integer
읽기 전용
warmingDailyRampPercents
integer[]
선택 사항
[5,7,10,...,100]
maxDeferHours
integer
선택 사항
48
defaultCategory
string
선택 사항
transactional},{i:109,t:
"critical""transactional""notification""marketing"preset
string
쓰기 전용(비밀)
"warming_28d""warming_14d""production_100"categories
CategoryPolicy[]
선택 사항
4개 카테고리
providers
ProviderQuota[]
선택 사항
6개 공급자 그룹
{
"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)
키: singleton
RBAC: TenantAdmin+
선택적 아웃바운드 평판 보호: 자동 반송/불만 억제 목록, RFC 8058 원클릭 구독 취소, 반송 회로 차단기, 적응형 421 ISP 백오프, HMAC-SHA256 웹훅.
/api/admin/cli/objects/ReputationShield/singleton
현재 Reputation Shield 구성 가져오기
/api/admin/cli/objects/ReputationShield/singleton
보호 플래그 업데이트 또는 사전 설정 적용
preset
string
쓰기 전용(비밀)
"off""recommended""strict_bulk"enableSuppressionPreCheck
boolean
선택 사항
false
enforceSuppressionOnSmtpRelay
boolean
선택 사항
false
allSuppressedBehavior
string
선택 사항
reject_422},{i:105,t:
"reject_422""accept_noop"autoSuppressHardBounces
boolean
선택 사항
false
hardBounceSuppressionDays
integer
선택 사항
180
autoSuppressConsecutiveSoftBounces
boolean
선택 사항
false
softBounceEscalationThreshold
integer
선택 사항
5
autoSuppressFblComplaints
boolean
선택 사항
false
enableOneClickUnsubscribe
boolean
선택 사항
false
oneClickUnsubscribeCategories
string[]
선택 사항
["marketing","notification"]
enableBounceCircuitBreaker
boolean
선택 사항
false
maxHardBouncePercent
number
선택 사항
5.0
maxComplaintPercent
number
선택 사항
0.1
allowCriticalWhenTripped
boolean
선택 사항
true
enableAdaptiveIspBackoff
boolean
선택 사항
false
ispCooldownMinutes
integer
선택 사항
15
webhookEnabled
boolean
선택 사항
false
webhookUrl
string
선택 사항
webhookSecret
string
쓰기 전용(비밀)
{
"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)
키: singleton
RBAC: ServerAdmin+
다단계 인바운드 방어: SPF/DKIM/DMARC/ARC 검증, 스마트 회색목록(/24 IPv4 및 /64 IPv6), 온라인 ML 분류기(FTRL-Proximal), DNSBL 영역, 허용/차단 목록 및 ClamAV TCP 검사.
/api/admin/cli/objects/SpamGuard/singleton
SpamGuard 임계값 및 학습 카운터 가져오기
/api/admin/cli/objects/SpamGuard/singleton
점수, DNSBL, 허용 목록 또는 ClamAV 제자리 업데이트
enableEmailAuthChecks
boolean
선택 사항
true
enableGreylisting
boolean
선택 사항
true
greylistRetryDelaySeconds
integer
선택 사항
240
junkScoreThreshold
number
선택 사항
4.5
rejectScoreThreshold
number
선택 사항
9.0
tagSubjectOnJunk
boolean
선택 사항
false
subjectTagPrefix
string
선택 사항
"[SPAM] "
enableStructuralHeuristics
boolean
선택 사항
true
dnsblZones
string[]
선택 사항
["bl.spamcop.net","ix.dnsbl.manitu.net"]
dnsblHitScore
number
선택 사항
3.5
allowedSendersOrDomains
string[]
선택 사항
[]
blockedSendersOrDomains
string[]
선택 사항
[]
clamAvEnabled
boolean
선택 사항
false
clamAvHost
string
선택 사항
"127.0.0.1"
clamAvPort
integer
선택 사항
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)
키: singleton
RBAC: ServerAdmin+
아웃바운드 MX 전송 큐, 작업자 동시성, 재시도 간격, ISP 스로틀링, 아웃바운드 TLS 유효성 검사, 글로벌 스마트 호스트 및 인바운드 ESMTP 제한을 제어합니다.
/api/admin/cli/objects/SmtpQueue/singleton
모든 큐, TLS 및 ESMTP 설정 가져오기
/api/admin/cli/objects/SmtpQueue/singleton
0밀리초 내에 큐 작업자, 재시도 일정 또는 ESMTP 제한 업데이트
outboundQueuePaused
boolean
선택 사항
false
outboundWorkerConcurrency
integer
선택 사항
8
maxDeliveryAttempts
integer
선택 사항
10
retryScheduleMinutes
integer[]
선택 사항
[5,15,60,240,720]
maxConcurrentConnectionsPerMxDomain
integer
선택 사항
4
strictThrottleDomains
string[]
선택 사항
["t-online.de","gmx.de","web.de","yahoo.com"]
strictThrottleMaxConcurrency
integer
선택 사항
2
outboundConnectTimeoutSeconds
integer
선택 사항
30
outboundBindAddress
string
선택 사항
"" (자동)
outboundUseStartTls
boolean
선택 사항
true
requireOutboundTls
boolean
선택 사항
false
outboundTlsCertValidation
string
선택 사항
Opportunistic
"Opportunistic""IgnoreErrors""Strict"outboundSmartHost
string
선택 사항
""
outboundSmartPort
integer
선택 사항
587
maxMessageSizeMb
long
선택 사항
50
maxRecipientsPerTransaction
integer
선택 사항
100
maxConnectionsPerIp
integer
선택 사항
20
tarpitDelayMs
integer
선택 사항
1500
requireTlsForAuth
boolean
선택 사항
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)
키: singleton
RBAC: ServerAdmin+
조직 전체 법적 고지사항(DKIM 서명 전에 삽입), 글로벌 인바운드 Sieve 스크립트, Fail2Ban 자동 차단 임계값 및 표준 ServerHostName입니다.
/api/admin/cli/objects/TransportRules/singleton
면책 조항, 전역 Sieve 및 자동 차단 설정 가져오기
/api/admin/cli/objects/TransportRules/singleton
제자리에서 전송 규칙 업데이트
/api/admin/cli/objects/Server/singleton
ServerHostName, 스토리지 엔진, 큐 깊이 및 라이선스 상태 가져오기
/api/admin/cli/objects/Server/singleton
0밀리초 내에 정식 ServerHostName 업데이트
outboundDisclaimerEnabled
boolean
선택 사항
false
outboundDisclaimerExternalOnly
boolean
선택 사항
true
outboundDisclaimerText
string
선택 사항
""
outboundDisclaimerHtml
string
선택 사항
""
inboundSystemSieve
string
선택 사항
""
autoBanThreshold
integer
선택 사항
8
autoBanDurationMinutes
integer
선택 사항
30
serverHostName
string
선택 사항
mail.<domain>
storageProvider
string
읽기 전용
Sqlite | SqlServer | Postgres
activeQueueCount
integer
읽기 전용
0
licenseState
string
읽기 전용
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")}");