{% extends "withnav_template.html" %} {% from "components/email-message.html" import email_message %} {% from "components/sms-message.html" import sms_message %} {% block page_title %} API integration – GOV.UK Notify {% endblock %} {% block maincolumn_content %}

API integration

{% if 'email' == template.template_type %} {{ email_message( template.subject, template.formatted_as_markup, ) }} {% elif 'sms' == template.template_type %} {{ sms_message( template.formatted_as_markup, ) }} {% endif %}

You can send this message from your existing apps or systems by connecting them to GOV.UK Notify.

You’ll need to work with a developer to do this.

Example payload for this template

{{payload|syntax_highlight_json}}

Endpoint

      {{- 'POST https://api.notifications.service.gov.uk/notifications/{}'.format(
        template.template_type
      ) -}}
    


See the developer documentation for full details.

{% endblock %}