Ministry Sync Developer Resources
Menu

Getting Started

How to add a new Webhook Integration

Adding a Webhook integration

To add a Webhook integration, you will need to visit the Webhooks section of your account.

  1. Click your Account Menu at the top right of your screen and choose Webhooks.

    Account Menu

  2. If you have no prior Webhooks, you will be presented with a Webhooks intro screen:

    Webhook Splash

  3. Clicking Add a New Webhook will present you with the New Webhook Form.

The New Webhook Form

The "New Webhook" form has all the configuration for setting up your integration for single or multiple Event Trigger types. See the table below the screenshot for information pertaining to each particular field.

Webhook Fields

Field Description
Name A short name for your webhook integration
URL The Endpoint that you would like us to deliver the data payload to
Description An optional description used for your own purposes
Alert Email An email address that will be notified in the event of failures
Scope Allows you to choose specific event types to receive data about
Triggers Choose which types of actions in Ministry that will initiate data being sent to your endpoint

When you've selected and filled in the appropriate information, click Save.

New Webhook Form

What happens next

Depending on which Trigger(s) you have selected for your webhook, our server will start to attempt to deliver POST requests to the endpoint specified in the webhook form's URL field (shown above) with a data payload matching that trigger resource's particular structure.

If your webserver returns anything other than a 200 or 201, or it is not reachable, our delivery service will try again for up to 12 hours. After this period of retries, it will disable your webhook in your Ministry Sync integrations dashboard. Your account Technical Contact and alert email (if available) will be notified of these failures.

Example webhook process

  1. You set up a webhook with a trigger type of Registrant Updated because you want to know when someone's profile is updated in Ministry Sync so that you can have your database reflect that same information.
  2. A profile is updated in Ministry Sync
  3. This triggers the delivery of the registrant resource payload to the endpoint you supplied
  4. Your server consumes the JSON data from the POST request and saves it to your database

View the possible resource structures.

Copyright © 2019 Ministry Sync. All rights reserved.