Download OpenAPI specification:Download
This API is meant to provide a centralized email messaging service to our core business and other desired integrations.
For now there's only possible endpoint POST /sendMessage which is documented later on the page.
All of the error handling of this API is done with status codes and error messages according to the following structure:
{
"error": "Missing parameters"
}Authentication for registries is handled client side. The client has to send authentication details on all calls. The required authorization key must be sent as Authorization header as string with the following structure:
"Authorization": "string",Email payload request, in posession of that information this service can actually do the heavy-lifting for you.
| Authorization | string <key> |
Email to send
| from required | string <email> Email displayed as sender |
| to required | string <email> Target email |
| shouldPreserveMessage | boolean <boolean> Default: false Should save the message content on the log |
| subject required | string The subject of the email to be sent |
| message required | string <html> The actual content of the email to be sent in html, if a plain text is provided it will be trated as unstyled html |
| callback | string <url> The callback endpoint you want our system to communicate in case of a failure or success |
| shouldSendConfirmationEmail | boolean <boolean> Default: false Should communicate by email in case of a failure or success (will only work in case a |
| callbackEmail | string <email> An email for our servers to communicate in case of a failure or success (in only be used in case |
Array of objects A list of attachments can be sent |
{- "from": "test.email@email.com",
- "to": "target.email@email.com",
- "subject": "Policy change",
- "message": "<div><text>hey, a policy change occurred</text><ul><li>a bullet point</li></ul></div>",
- "shouldPreserveMessage": true,
- "shouldSendConfirmationEmail": true,
- "callbackEmail": "adebugging.email@email.com",
- "attachments": [
- {
- "content": "array of bytes",
- "contentType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "filename": "fileName",
- "encoding": "base64"
}
]
}e90e34656806