Internet disconnected!
Check your internet connection

Cookies are used to improve your experience on this site. By using the site, you agree to our privacy policy.

How to use webhook

Publish on February 4, 2025
Webhook is one of the great tools that we offer at Nrdevo. It allows you to automate processes when any event occurs in the system

Webhook is one of the great tools that we offer at Nrdevo. It allows you to automate processes when any event occurs in the system. Let's understand what a webhook is.

What is a webhook?

Webhooks are "user-defined HTTP callbacks".[2] They are usually triggered by some event, such as pushing code to a repository,[3] a new comment or a purchase,[4] a comment being posted to a blog[5] and many more use cases.[6] When that event occurs, the source site makes an HTTP request to the URL configured for the webhook. Users can configure them to cause events on one site to invoke behavior on another.

What webhook events are available?

There are 51 events that you can get calls from and here a list of all events:

If you need to get all the events, you can use the "all_system_events" event it will give you all the events when it's happen.

Webhook format example

{
  "event": "create_blog",
  "text": "admin has performed create_blog",
  "triggered_at": "2025-02-04 09:03:47",
  "triggered_by": {
    "id": 1,
    "name": "admin",
    "slug": "admin"
  },
  "triggered_by_profile_url": "https://web.alwaleedalwabel.com/profile/admin",
  "webhook_id": 17,
  "webhook_name": "n8n",
  "url": "https://www.nrdevo.com",
  "related_item": {
    "title": "test",
    "content": "<p>test</p>",
    "url": "test",
    "author": "1",
    "visibility": "1",
    "comment": "0",
    "category": "blogs",
    "featured_image_alt": "",
    "seo_description": "",
    "selectedTags": ""
  }
}

Warning: Keep in mind that these events will be triggered for all selected events, even if custom permissions are applied. Ensure that use of this webhook won't expose confidential content.

How do I use Webhook and link it with Discord?

  1. Go to Discord and choose a server.
  2. Choose a text-type or announcement channel.
  3. Click on the edit channel it will open a new window for you.
  4. Click on intrgrations.
  5. Click on Create Webhook.
  6. Give your webhook a name and logo if you like.
  7. Clike copy webhook URL.
  8. Go to your Nrdevo and login.
  9. Navigate to all webhooks and click new webhook.
  10. In the Create New Webhook page.
    1. Give your webhook a name.
    2. Paste the URL and add slack at the end like this:
      https://discord.com/api/webhooks/{Bwebhook.id}/{webhook.token}/slack
    3. Set Webhook Request Timeout (Seconds) to 450.
    4. Click on Set webhook as active to activate it.
    5. Choose an event that you need to pass to your Discord.

Congratulations! You have connected correctly now create the same event you did, and you will find that a message appeared in Discord.


Posted by
Publish 18 days ago
202



Comments

No comments yet
You can comment using your Account to be able to manage your comments in the future. If you comment anonymously, you won't be able to edit or delete your comment. for more info visit FAQs