Internal Functions/Preview

Preview newsletter

Editar páginaReportar problema

Generate a HTML preview of the newsletter based on the provided data.

POST
/newsletter/preview
AuthorizationBearer <token>

API Token for authentication

In: header

editionobject
newsarray<object>
opportunities?array<object>
calendar?array<object>
sponsors?array<object>

Response Body

curl -X POST "https://mi-boletim-internal-functions.maisinformaufcrussas.workers.dev/newsletter/preview" \
  -H "Content-Type: application/json" \
  -d '{
    "edition": {
      "isoDate": "2023-10-01T00:00:00Z",
      "number": "1"
    },
    "news": [
      {
        "title": "Title of the news",
        "imgUrl": "https://example.com/image.jpg",
        "imgLegend": "Text legend of the news image",
        "imgAlt": "Image description",
        "description": "string",
        "category": "Tech",
        "sourceName": "TechCrunch",
        "sourceUrl": "https://techcrunch.com/2023/10/01/news"
      }
    ]
  }'
"string"