US English (US)
BS Bosnian

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
English (US)
US English (US)
BS Bosnian
  • Home
  • API V3 and Webhooks

Overview: Webhooks

Written by Ivanna Parra

Updated at May 28th, 2024, by Amanda Stançani

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Users Accessibility New to Helpjuice? Start Here Content Management Multiple Languages/Translations & Localization Multilingual Knowledge Bases Analytics Video Tutorials
  • Customization
    Customization Guides
  • API V2
  • API V3 and Webhooks
  • Article Editor
  • Billing / Subscription
  • Authentication
  • Pricing
  • Swifty AI Chatbot
  • Swifty AI Helpbar
  • What's New
+ More

Table of Contents

What Are Webhooks? Why Should I Use Webhooks? Webhook Fields Webhook Events

What Are Webhooks?

Webhooks are a powerful method for web applications to communicate in real-time. Unlike traditional APIs that require constant polling for updates, webhooks use a push mechanism to send data immediately when specific events occur. When an event is triggered, a webhook sends an HTTP request to a pre-configured URL in another system, containing a payload with information about the event. This allows the receiving system to process the data and take necessary actions promptly.

Why Should I Use Webhooks?

The main advantages of webhooks include reduced latency and bandwidth usage, as they eliminate the need for frequent polling. They are especially useful for scenarios requiring immediate data synchronization, such as payment processing, real-time messaging, and automated workflows. By enabling instant interactions between web applications, webhooks enhance efficiency and responsiveness in modern web architectures.

Webhook Fields

These are the fields we sent in the Webhook:

  • event: a string identifying the event (user_create, user_delete, etc.)
  • activity_fields: an object containing the following fields:
    • id: Activity ID
    • action: a string describing the action that triggered the Webhook (publish, create, etc.)
    • trackable_type: a string indicating what was affected (a User, for example)
    • trackable_id: the ID of the affected model (the ID of the User that was created, for example)
    • owner_type: a string indicating the type of who did this activity (usually this is the User that performed the action)
    • owner_id: the ID of who was responsible for generating this activity (the ID of the User that created the article, for example)
    • created_at: timestamp indicating when the activity was performed.
    • extra: a JSON object that contains extra information about the activity.
    • published_activity_id: ID of the activity publication. This is something that Helpjuice uses to track the activity internally.
    • automatic: if the article was automatically published/expired.
  • activity: a string containing the activity_fields object serialized.

Webhook Events

The available events for webhooks are:

Event Name Description
user_create Called when a user is created.
user_update Called when a user is updated.
user_delete Called when a user is deleted.
question_create Called when an article is created.
question_update Called when an article is updated.
question_delete Called when an article is deleted.
question_archive Called when an article is archived.
question_publish Called when an article is published.
comment_create Called when a comment is created.
comment_update Called when a comment is updated.
comment_delete Called when a comment is deleted.
category_create Called when a category is created.
category_update Called when a category is updated.
category_delete Called when a category is deleted.

API Endpoints

We have API V3 endpoints available for managing webhooks all through our API. You can find more information about each endpoint below. For more information on how our API V3 works, check this article. 

Retrieve all webhooks

URL

GET https://<your-account>.helpjuice.com/api/v3/webhooks

 

RESPONSE raw

{
  "meta": {
    "current": 1,
    "limit": 25,
    "total_pages": 1,
    "total_count": 2
  },
  "articles": [
    {
      "id": 3,
      "url": "<URL>",
      "event": "user_delete",
      "last_response_code": null,
      "account_id": 6,
      "created_by_id": 6,
      "enabled_at": "2023-05-09T19:12:03.224Z",
      "created_at": "2023-05-09T19:12:03.224Z",
      "updated_at": "2023-05-09T19:12:03.224Z"
    },
    {
      "id": 4,
      "url": "<URL>",
      "event": "category_create",
      "last_response_code": null,
      "account_id": 6,
      "created_by_id": 6,
      "enabled_at": "2023-05-09T19:12:31.289Z",
      "created_at": "2023-05-09T19:12:31.289Z",
      "updated_at": "2023-05-09T19:12:42.020Z"
    }
  ]
}
 

Retrieve a webhook

URL

GET https://<your-account>.helpjuice.com/api/v3/webhooks/:id

 

RESPONSE raw

{
  "id": 3,
  "url": <URL>,
  "event": "user_delete",
  "last_response_code": null,
  "account_id": 6,
  "created_by_id": 6,
  "enabled_at": "2023-05-09T19:12:03.224Z",
  "created_at": "2023-05-09T19:12:03.224Z",
  "updated_at": "2023-05-09T19:12:03.224Z"
}
 

Create a webhook

URL

POST https://<your-account>.helpjuice.com/api/v3/webhooks

 

BODY raw

{
  "id": 3,
  "url": <URL>,
  "event": "user_delete",
  "last_response_code": null,
  "account_id": 6,
  "created_by_id": 6,
  "enabled_at": "2023-05-09T19:12:03.224Z",
  "created_at": "2023-05-09T19:12:03.224Z",
  "updated_at": "2023-05-09T19:12:03.224Z"
}

 

Field Type Description
url    
 
String URL to post the activity to.    
 
event    
 
String    
 
Event type    
 
 

Update a webhook

URL

PUT https://<your-account>.helpjuice.com/api/v3/webhooks/:id

 

BODY raw

{
  "id": 3,
  "url": <URL>,
  "event": "user_delete",
  "last_response_code": null,
  "account_id": 6,
  "created_by_id": 6,
  "enabled_at": "2023-05-09T19:12:03.224Z",
  "created_at": "2023-05-09T19:12:03.224Z",
  "updated_at": "2023-05-09T19:12:03.224Z"
}

 

Field Type Description
url    
 
String URL to post the activity to.    
 
event    
 
String    
 
Event type
 

Toggle a webhook

URL

PUT https://<your-account>.helpjuice.com/api/v3/webhooks/:id/toggle

 

BODY raw

{
  "id": 3,
  "url": <URL>,
  "event": "user_delete",
  "last_response_code": null,
  "account_id": 6,
  "created_by_id": 6,
  "enabled_at": "2023-05-09T19:12:03.224Z",
  "created_at": "2023-05-09T19:12:03.224Z",
  "updated_at": "2023-05-09T19:12:03.224Z"
}
 

Test a webhook

URL

POST https://<your-account>.helpjuice.com/api/v3/webhooks/:id/test

 

BODY raw

{
  "id": 3,
  "url": <URL>,
  "event": "user_delete",
  "last_response_code": 200,
  "account_id": 6,
  "created_by_id": 6,
  "enabled_at": "2023-05-09T19:12:03.224Z",
  "created_at": "2023-05-09T19:12:03.224Z",
  "updated_at": "2023-05-09T19:12:03.224Z"
}
 

Delete a webhook

URL

DELETE https://<your-account>.helpjuice.com/api/v3/webhooks/:id
 
callbacks notifications webhooks webhook events

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How To Retrieve Searches Through API
  • Article Decision Trees

Copyright © 2025 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand