HubSpot web hooks message models
Models for messages that HubSpot sends as web hook calls to your integrations, written as msgspec models.
Why
It's easier to operate on objects with parsed properties, and the models themselves are missing from HubSpot client.
How
Incoming messages are lists of events, each of which is either related to a single object or an association between objects.
Message can be parsed with the following code:
import msgspec.json
from hubspot_webhook_model import Message
data: bytes # request body
model = msgspec.json.decode(data, type=Message)
Request signatures should be verified using the raw body
Caveats
- Messages contain events related to a single event, which can be user action or one of the internal HubSpot mechanisms. They are typically related to a single object, but not always.
- Events in a message are not ordered. propertyChange enevts may appear before creation events.
- The model only works with the new style generic webhook subscriptions.
- Only a subset of objects is included. Feel free to create Pull Requests with additional models as needed.
Metadata
Release files for hubspot-webhook-model 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hubspot_webhook_model-0.2.0.tar.gz | 16.0 kB | Without provenance | Details for hubspot_webhook_model-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hubspot_webhook_model-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for hubspot_webhook_model-0.2.0-py3-none-any.whl |
Total release size: 18.9 kB
Release files / hubspot_webhook_model-0.2.0.tar.gz
| Download URL | hubspot_webhook_model-0.2.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dee55a2a5db8d64f78a48414649910339477d48c37637d1fc01656221aac58ed
|
|
BLAKE2b-256 checksum How to use checksums |
7bbfafa62d146fe2f3df7173620f5661fc073a57331e65e8765e96adf527e708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|
Release files / hubspot_webhook_model-0.2.0-py3-none-any.whl
| Download URL | hubspot_webhook_model-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
566731d94d4ca6f68ba28f609ffc84eb928e8a10236c544c3a369c24b6bb10a2
|
|
BLAKE2b-256 checksum How to use checksums |
059006286e115cc6ec32b56750e576ff96af0c6fe40e8544d6b7b6cefa676c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|
Security for hubspot-webhook-model 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.