/
REST Notification Email

REST Notification Email

5.0.0

The Email Notification REST API provides a mechanism for sending email-based notifications via ServiceBroker, so that systems integrated with ServiceBroker do not need to integrate with yet another system for the sending of email-based notifications.  

Resource URL Summary

Send an email-based notification

POST /up/v5/bns/email

HTTP Headers

This API uses custom HTTP Headers:

HeaderTypeRequired?Description
AuthorizationstringYesThe Authorization header for this API is the same as for the REST Integration Standard HTTP Headers.
Content-TypestringYes

The Content-Type HTTP Header may be set to either:

  • text/plain; or
  • text/html

The value of this header will determine if a plain text or HTML email notification will be sent.

TostringYesThe email address that the email-based notification should be sent to.
FromstringYesThe email address that the email-based notification should be sent from.
SubjectstringYesThe subject of the email-based notification.

API Specific Parameters

This API does not have any API specific parameters.



API Specifics

Send an email-based notification

This REST API will send an email notification, based on the details provided in the HTTP Headers and Body.

URL

POST /up/v5/bns/email

HTTP Request Body

This REST API requires a body, containing either the text-based or HTML-based content for the body of the email notification.

HTTP Response

Success

On success, an HTTP response code of 200 will be returned.

Error

Otherwise, on error, the API will:

  • Return an HTTP response code of 400, if the request was invalid;
  • Return an HTTP response code of 401, if the request was not authorized; or
  • Return an HTTP response code of 500, if something else went wrong.

Both HTTP 400 and 500 responses will contain a REST Integration Standard Response Object with appropriate values for the Code and/or Message fields, describing the error, in the response body.

Related content

REST Notification SMS
REST Notification SMS
More like this
Event Notification API
Event Notification API
More like this