Skip to main content

NetBox Webhook Receiver

NetBox Webhook Receiver is a NetBox plugin for managing webhook receiver endpoints and executing assigned actions.

This plugin aims mainly to streamline the deployment process of scripts and export templates to Netbox by triggering the synchronisation of its Data Sources through incoming webhooks. Adding the receiver capability to Netbox opens other possible use cases, which might be worth exploring further. One example could be running Netbox Scripts triggered by remote events where it is not easy to execute a direct API call.

Features

  • Per endpoint authentication (signature validation or custom header) on receiving webhooks
  • Webhook url enriched with automaticaly generated uuid value for additional security
  • Dedicated view to configure each webhook receiver url
  • Logical grouping of the receivers
  • Optionally store incoming webhook payload, shown in the receiver's Payloads tab
  • Custom actions execution on successfully receving authenticated webhook message. Currently only one action available: Synchronize Netbox git 'Data Source'
  • Use of standard Netbox jobs to queue webhook actions in the workers.
  • Plugin configuration parameters
  • Additional actions to be implemented

Requirements

  • NetBox 4.7 or higher
  • Python 3.12 or higher

Compatibility

NetBox version Plugin version
4.7 and later 0.6.x
4.1 - 4.6 0.5.x

Installation & Configuration

For general knowledge about netbox plugin installation please refer to the official guide: Using Plugins - NetBox Documentation

Install NetBox Webhook Receiver:

$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-plugin-webhook-receiver

To register this plugin in NetBox, add netbox_webhook_receiver to the config file. ~/netbox/configuration.py

PLUGINS = [
    "netbox_webhook_receiver",
]

Please remember that this plugin introduces new database models, therefore you must run the provided database schema migrations:

$ source /opt/netbox/venv/bin/activate
(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate

Optional settings can be set in PLUGINS_CONFIG:

PLUGINS_CONFIG = {
    "netbox_webhook_receiver": {
        # Username the queued jobs are attributed to (default: None, jobs have no user)
        "job_user": "admin",
        # Number of days to keep stored webhook payloads (default: 2)
        "payload_retention_days": 2,
    },
}

Usage

Create a Webhook Receiver and copy the URL shown on its page into the webhook configuration of the sending service.

  • GitLab: use the Token method with the X-Gitlab-Token header and set the same value as the webhook secret token.
  • GitHub: use the Signature Verification method with the X-Hub-Signature-256 header and the SHA-256 algorithm, set the webhook secret to the same secret key and the content type to application/json.

When a Data Source is assigned, every authenticated webhook queues its synchronization. A webhook arriving while a synchronization is still waiting in the queue doesn't queue another one.

With "Store payload" enabled, the received payloads are listed in the Payloads tab of the receiver, which helps to check what the sending service posts. Payloads are kept for payload_retention_days.

Upgrading from 0.5.x: the receiver UUID becomes unique. The migration fails if two receivers share a UUID, so give them different UUIDs before running migrate. Stored payloads from 0.5.x aren't linked to any receiver and expire with the retention period.

NetBox Branching

The plugin works with NetBox Branching. Webhook receivers and groups are branched like other NetBox objects, so changes made in a branch apply to main when the branch is merged. Incoming webhooks are always handled in main: a receiver created in a branch returns 404, and changed credentials aren't used until the branch is merged. Stored payloads are always kept in main.

To keep receivers out of branches, as NetBox does with its own webhooks, exempt them in the branching settings:

PLUGINS_CONFIG = {
    "netbox_branching": {
        "exempt_models": ["netbox_webhook_receiver.*"],
    },
}

Releasing

Bump version in pyproject.toml and __version__ in netbox_webhook_receiver/__init__.py, then push a matching tag (e.g. v0.6.0). The Publish to PyPI workflow checks that the tag matches both versions, builds the package and publishes it using PyPI trusted publishing.

Screenshots

Webhook Receivers Webhook Receiver Webhook Receiver Payloads Webhook Receiver Group

Metadata

Release files for netbox-plugin-webhook-receiver 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-plugin-webhook-receiver 0.6.0
File Size Uploaded Provenance
netbox_plugin_webhook_receiver-0.6.0.tar.gz 14.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-plugin-webhook-receiver 0.6.0
File Interpreter ABI Platform
netbox_plugin_webhook_receiver-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / netbox_plugin_webhook_receiver-0.6.0.tar.gz

Download URL netbox_plugin_webhook_receiver-0.6.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00ae982f366ee6febec3cb26f7b98347baa30b3d9e446d8191450e18f73135d5
BLAKE2b-256 checksum
How to use checksums
169ddf1ca1ba36bd99fd94820d9ac2a6f3e821622bfcb18221c460278089f5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / netbox_plugin_webhook_receiver-0.6.0-py3-none-any.whl

Download URL netbox_plugin_webhook_receiver-0.6.0-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
213534f03f7f4a32ffeca9329f9a1081862156b680ea24668acd395e72141647
BLAKE2b-256 checksum
How to use checksums
d4041305a55352ca5faaa6c9bee472be29ade4137eb879904b0fed5f0ab2d1c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for netbox-plugin-webhook-receiver 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_plugin_webhook_receiver-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page