Webhooks

Webhooks (or HTTP callbacks) can be used to inform external tools about events in Sitejet. Within the Sitejet settings page, you can set up several webhook endpoints to be notified of such events.

Table of contents


Configure webhooks

To configure your webhooks, go to Settings > Webhooks.

If you have not added a webhook yet, click the + button.


Event Types

Event Type Description
website_created Called when a new website is created, including cloning of a website or creating from a template
website_status_changed Called when a website status is changed
log_created Called when a new message is created, which can be a log message like "Website created", an internal message from a co-worker or a customer message (e-mail)
todo_created Called when a new to-do is created, manually or automated
website_todo_assignee_changed Called when a to-do is assigned to a different user or unassigned
domain_created Called when a new domain is added to a website

Examples

This is a list of possible use cases for which webhooks are useful

  • Create a subscription within a third-party tool when a website status is changed from Interest to Preparation
  • Activate subscription within a third-party tool when website status is changed to Done
  • Post a Slack message when website status is changed to Assign or Done
  • and many more

See here an example webhook payload for the event type  website_status_changed

{
  "event": "website_status_changed",
  "website": {
    "image": "/website/321654/screenshot",
    "id": 321654,
    "title": "Harry's Diner",
    "domain": "example.com",
    "published_status": true,
    "has_domains": true,
    "domains": [
      "example.com"
    ],
    "status": "Done",
    "due_date": null,
    "assigned_to": null,
    "closed_by": {
      "id": 123,
      "name": "Mary Sales",
      "email": "mary-sales@agency.com",
      "role": "Sales",
      "pending": false,
      "active": true,
      "forename": "Mary",
      "surname": "Sales",
      "image": null
    },
    "designed_by": {
      "id": 123,
      "name": "Lisa Webdesign",
      "email": "lisa-webdesign@agency.com",
      "role": "Admin",
      "pending": false,
      "active": true,
      "forename": "Lisa",
      "surname": "Webdesign",
      "image": null
    },
    "serviced_by": {
      "id": 123,
      "name": "John Doe",
      "email": "john-doe@agency.com",
      "role": "Admin",
      "pending": false,
      "active": true,
      "forename": "John",
      "surname": "Doe",
      "image": null
    },
    "following": false,
    "tags": [],
    "badges": [
      {
        "type": "customer",
        "status": "no_invite"
      }
    ],
    "meta": {}
  }
  "previousStatus": "Publish"
}

Connect with Zapier

You can use automation tools like Zapier to create webhook endpoints and thus connect Sitejet with different tools e.g. Slack, Campaign Monitor, Salesforce, or any other tool you like to connect. 

Here are step-by-step instructions on how to create a webhook with Zapier to connect Sitejet with Zapier.

1. Set up an account with Zapier and start by clicking "Create a zap".

2. Select a trigger (an event that starts your zap) - in this case, choose "Webhooks by Zapier" -> "Catch hook"

3. When you click "Continue" you will see the Custom Webhook URL. Simply click on "Copy" to copy the URL.

4.Now go back to the Sitejet settings page, add a new webhook and paste the URL

5. Now go back to the  Manager and e.g. change the status of any website

6. Inside Zapier you can now Test trigger

7. From here you can now add filters and actions of your choice. Be aware of the different event types and set up proper filters.


Webhooks for forms

You can also use webhooks within Sitejet's CMS, e.g. if you want form submissions to be transferred to external tools like your email marketing provider. Check out our help article on Webhooks for forms.


Become a part of our Community!

Exchange ideas with other web designers about current developments, tips, and tricks and show your favorite sites. Get advice and talk to us about possible features you would like to see on Sitejet. You can join the Sitejetters community here.

Back to the top

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us