Reader API
  1. Mailer
Reader API
  • Welcome to Omerlo
  • Authorization - OAuth 2
    • Client Credentials flow
      POST
    • Authorization Code flow
      POST
    • Refresh Token flow
      POST
    • Verify oauth user
      POST
    • User info
      GET
  • Accounts
    • User info
      GET
    • User entitlements
      GET
  • Announcements
    • Paginated Announcement list
      GET
    • Announcement by id
      GET
  • Categories
    • Paginated categories list
      GET
    • Category by id
      GET
  • Contents
    • Paginated Contents
      GET
    • Content by id
      GET
  • Devices
    • Register a device
      POST
  • Distributions
    • Releases
      • Paginated Release list
      • Release by id
    • Paginated Distribution list
      GET
    • Distribution by id
      GET
  • Issues
    • Issue by id
      GET
    • List Contents in Issue Section
      GET
    • Search Contents in Issue
      GET
    • Issue Section Blocks by section_id
      GET
  • Oauth Providers
    • List providers
  • Mailer
    • Send email
      POST
  • Menus
    • Menu by key
  • Sections
    • Section by id
    • Paginated Contents by Section id
  • Topics
    • List topics
    • Subscribe
    • Unsubscribe
  • Webpages
    • Paginated webpages list
    • Webpage by id
  • Media overview
    GET
  • Schemas
    • ReaderHub
      • Distribution
        • Distribution
        • Distribution (summary)
        • Release
        • Release (summary)
      • Issue
        • Issue
        • Issue (summary)
        • Issue Section
        • Issue Section (summary)
        • SectionContent
        • Issue Block
        • Issue BlockConfiguration (summary)
        • IssueType (summary)
      • Profile
        • ProfileType (summary)
        • Profile (summary)
        • Organization (summary)
        • Person (summary)
      • Content
        • Blocks
          • Block kind Data
          • Block kind HTML
          • Block kind Image
          • Block kind Question
          • Block kind Quote
          • Block kind Related Contents
          • Block kind Richtext
          • Block kind Slideshow
          • Block kind Video
        • Author (summary)
        • Content Template (summary)
        • Content Block
        • Content Block Template (summary)
        • Content
        • Content (summary)
      • Media
        • Announcement
        • Announcement (summary)
        • Menu
        • Menu Item
        • Media Block (summary)
        • Media BlockConfiguration (summary)
        • Media Section
        • Media Section (summary)
        • Topic (summary)
        • Webpage
        • Webpage (summary)
        • Media
      • OauthProviderSummary
    • Common
      • Visual
        • Image
        • Slideshow
        • Video
      • PagingMeta
      • Metadata
      • LocalesMetadata
      • Visual
      • Category
      • Category (summary)
  1. Mailer

Send email

POST
https:/omerlo.com/api/media/v1/mail/send
Send a email using Omerlo CMS. You can send an email using two distinct flows: by platform or by media.
This endpoint requires an application token. This mean you *MUST use the token generated via your client's id and secret. If you use the reader's token you'll have an unauthorized response.
You are in charge on providing a valid html that will be send to the to. We recommand using mjml and test it well (especially for Microsoft's products on Windows).
For the platform's flow, the header x-omerlo-media-id is not required.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Query Params

Body Params text/html
Examples

Responses

🟢204No Content
application/json
Body

🟠400Bad Request
🟠400Missing x-omerlo header
🟠401Authorization
🟠403Forbidden
🟠406Not Acceptable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https/omerlo.com/api/media/v1/mail/send?context=platform&to=example@acme.com&subject=Hello' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/html' \
--data-raw '<H1>Hello world</H1>'
Response Response Example
204 - Success
{
  "error": "invalid_token",
  "error_description": "Token missing scope: application"
}
Previous
List providers
Next
Menu by key
Built with