/api/v1/notify/demo-email fires off the demo email... accessible from getPageAndEmail triggered when someone visitsoperator/operator-submission-ready-email/api/v1/notify/demo-sms fires off the demo sms... accessible from getPageAndSms triggered when someone visitsoperator/email-submission-ready/api/v1/notify/generic-email fires off a generic email which accepts a request body, eg. { message: 'your message here', subject: 'your subject here' }
/api/v1/notify/generic-sms fires off a generic sms... accepts a request body, eg. { message: 'your message here' }
Requires config.WHITE_LISTED_EMAIL to be added to config.development.yamlAND to notifications.service.gov.uk > API integration > Whitelist.
Also, add the phone number to receive the notification to config.DEMO_PHONE_NUMBER.
Added an API for Notify:
/api/v1/notify/demo-email
fires off the demo email... accessible fromgetPageAndEmail
triggered when someone visitsoperator/operator-submission-ready-email
/api/v1/notify/demo-sms
fires off the demo sms... accessible fromgetPageAndSms
triggered when someone visitsoperator/email-submission-ready
/api/v1/notify/generic-email
fires off a generic email which accepts a request body, eg. { message: 'your message here', subject: 'your subject here' }/api/v1/notify/generic-sms
fires off a generic sms... accepts a request body, eg. { message: 'your message here' }Requires
config.WHITE_LISTED_EMAIL
to be added toconfig.development.yaml
AND to notifications.service.gov.uk > API integration > Whitelist.Also, add the phone number to receive the notification to
config.DEMO_PHONE_NUMBER
.You'll need the
config.NOTIFY_API_KEY
set too!