Webhook events and their payloads
Upon creation or updating of a payload, you can choose a list of categories for which your configured endpoint
should receive deliveries for. Every delivery of every category shares common properties and contain
per-event specific data in the payload
property.
Common properties
Property | Type | Format | Description |
---|---|---|---|
id | String | Base64Uuid | Unique ID of this event. This is shared by every delivery across all webhooks |
type | String | Event Type in format category.event | |
sender | Optional Object | UserSummary | The user that caused this event to be emitted. May be null |
workspace | Object | Workspace | The workspace in which this event occurred |
webhook | String | Base64Uuid | Webhook ID of this very webhook subscriber. This is unique across all of Fiberplane. |
payload | Any | Differs across type s. Please see sections below for specification of this value. |
Headers
Every delivery includes custom headers
Header | Description | Reference |
---|---|---|
X-Fiberplane-Signature | HMAC SHA512 signature of this payload | See Securing your webhook |
X-Fiberplane-Timestamp | Date and time at which this webhook payload was sent as a RFC 3339 formatted timestamp | |
X-Fiberplane-ETag | SHA-512 hash of the request body. Must be used to prevent double handling of the same event |
Example payload
ping
Category: ping
(0)
This event occurs when creating a new webhook or updating an existing one. It is used to verify
whenever the endpoint works correctly. If the endpoint fails to respond with a 2xx
status code,
the webhook will be disabled. For more information see the Webhooks introduction.
The payload
property is an empty object.
frontmatter.update
Category: frontmatter
(1)
An existing front matter property has been updated, a new one has been created or one has been deleted. You will receive this event for every notebook in the whole workspace.
The payload
property is an object with the following properties:
Property | Type | Format | Description |
---|---|---|---|
notebook | Object | NotebookSummary | Summary about the notebook in which the front matter was updated |
diff | Object | See below | The difference between before and now |
diff
object:
Property | Type | Format | Description |
---|---|---|---|
updates | Object | Key: String / Value: Any JSON value | All updated front matter keys and their updated value |
removals | Object | Key: String / Value: Any JSON value | All removed front matter keys and their value prior to being removed |
frontmatter.delete
Category: frontmatter
(1)
All front matter properties for a given notebook have been deleted. You will receive this event for every notebook in the whole workspace.
The payload
property is an object with the following properties:
Property | Type | Format | Description |
---|---|---|---|
notebook | Object | NotebookSummary | Summary about the notebook in which the front matter was cleared |