Newsletter
Endpointy „Newsletter” Zanfia Workspace API — ze schematami i przykładami kodu.
Zawartość produktów typu Newsletter, adresowana przez id produktu: lista zarchiwizowanych wydań (widok twórcy, razem z ukrytymi), widoczność pojedynczych wydań i ustawienia newslettera. Wydania powstają przez wysyłkę e-maili - API zarządza archiwum, nie tworzy wydań. Wszystkie endpointy wymagają nagłówka Authorization: Bearer — zobacz Uwierzytelnianie.
Lista wydań newslettera
/products/{productId}/newsletter/issuesAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Product id
Query Parameters
Opaque cursor from a previous page.
Page size 1-50 (default 20).
Response Body
application/json
application/json
curl -X GET "https://example.com/products/string/newsletter/issues"{ "items": [ { "id": "string", "emailId": "string", "subject": "string", "slug": "string", "status": "public", "landingPageVisibility": "public", "createdAt": "string" } ], "nextCursor": "string", "hasMore": true}{ "error": "string"}Zmień widoczność wydania
/products/{productId}/newsletter/issues/{issueId}Authorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Product id
Newsletter issue id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/products/string/newsletter/issues/string" \ -H "Content-Type: application/json" \ -d '{}'{ "issueId": "string", "updated": true}{ "error": "string"}Usuń wydanie
/products/{productId}/newsletter/issues/{issueId}Authorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Product id
Newsletter issue id
Response Body
application/json
application/json
curl -X DELETE "https://example.com/products/string/newsletter/issues/string"{ "issueId": "string", "deleted": true}{ "error": "string"}Aktualizuj ustawienia newslettera
/products/{productId}/newsletter/settingsAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Product id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial settings patch. archive merges per-field over the current config; the other blocks replace whole. At least one block is required.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/products/string/newsletter/settings" \ -H "Content-Type: application/json" \ -d '{}'{ "updated": true}{ "error": "string"}Czy ten artykuł był pomocny?

