Tool name: get-newsletter
Returns one email newsletter of a KlickTipp account: identity, lifecycle state, editor type, split-test flag and deep links. Everything else is a projection requested through "include": "metadata" (name, note, labels, subject), "audience", "deliveryConfiguration" (sender, reply address, signature), "deliveryStatus" (send date, recipients, counters, what is missing), "audienceReach" (contacts it would reach now) and "conversionPixel" (tracking snippets for a thank-you page, one per sender domain; hand one to the user verbatim). The body is not here -- read it with get-email-editor-content. Reads only; requested projections are answered whole or the call fails. A split test has one email per variant and no single email: emailId, contentUrl and metadata.subject are null, splitTestVariants lists the variants, and deliveryConfiguration needs one of their editorUrl.
Projections to add: "metadata", "audience", "deliveryConfiguration", "deliveryStatus", "audienceReach", "conversionPixel"; omit for identity and lifecycle only. The body is get-email-editor-content
Editor URL naming one variant of a split test, from splitTestVariants; omit for a newsletter with a single email
{ "newsletterId": 1, "include": null, "editorUrl": null, "accountId": null }
The variants of a split test, each with the editorUrl that reads it; null for a standard newsletter.
{ "accountId": 0, "newsletterId": 0, "emailId": 0, "createdAt": "string", "newsletterStatus": "draft", "usageType": "newsletter", "emailEditor": "drag-and-drop", "isSplitTest": true, "splitTestVariants": [ { "emailId": 0, "label": "string", "name": "string", "subject": "string", "editorUrl": "string" } ], "editUrl": "string", "contentUrl": "string", "scheduleUrl": "string", "statisticsUrl": "string", "metadata": {}, "audience": {}, "deliveryConfiguration": { "senderIdentity": { "effectiveSenderEmail": "string", "customerDomain": "string", "normalizedSenderDomain": "string", "status": "ready", "isUsable": true, "senderEmailOptions": [ "string" ], "senderDomainOptions": [ "string" ] } }, "deliveryStatus": { "accountId": 0, "observedAt": "string", "newsletterId": 0, "name": "string", "newsletterStatus": "draft", "dispatchConfigured": true, "mode": "immediate", "sendDate": "string", "sendProcessFinishedAt": "string", "estimatedRecipients": 0, "sentCount": 0, "failedCount": 0, "totalOpenCount": 0, "uniqueOpenCount": 0, "totalClickCount": 0, "uniqueClickCount": 0, "hardBounceCount": 0, "softBounceCount": 0, "spamBounceCount": 0, "spamComplaintCount": 0, "unsubscriptionCount": 0, "canBeCancelled": true, "missingRequirements": [ "string" ], "readyToSend": true, "scheduleUrl": "string", "statisticsUrl": "string" }, "audienceReach": { "accountId": 0, "newsletterId": 0, "minRecipients": 0, "maxRecipients": 0, "observedAt": "string" } }