Customer emails

List email previews

GET/api/v1/email-previews

Returns the last 50 customer emails that test mode rendered instead of sending, newest first. A live key gets an empty list.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Header Parameters

FlexMalipo-Version?"2026-11-06"

The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.

Value in

  • "2026-11-06"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api-malipo.flex.co.tz/api/v1/email-previews" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
[  {    "id": "0b6f3c1e-8f2a-4a51-9a57-6d1f0c2b7e93",    "emailType": "RENEWS_ON",    "subject": "Your Monthly plan renews on 7 December 2026, 10:00 EAT",    "text": "string",    "html": "string",    "createdAt": "2026-11-30T09:15:42Z"  }]