Webhooks
This article explains how to configure and use Syskit Point's webhooks.
Webhooks are push notifications sent by Syskit Point as HTTP requests to a registered webhook endpoint when an event occurs.
To successfully enable webhooks in Syskit Point, you need to perform the following steps:
Register endpoint to which Syskit Point will send notifications.
Obtain the signature key and secure your endpoint.
It is recommended for your webhook handler to verify that the webhook requests are generated by Syskit Point.
You must set up an HTTP endpoint function that can accept webhook requests using a POST method.
Registering a Webhook Endpoint with Syskit Point API
Please note!
The application used to access the webhooks endpoint needs to have the Point.Admin
app role.
To register a webhook endpoint via the Syskit Point API, you need to use the following POST request:
POST
{{pointWebAppUrl}}/v1.0/webhooks/endpoints
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
endpoint
string
Webhook endpoint URL
types
array
Types of notifications
You can subscribe to all event types using the *
symbol, as shown in the example.
Types
Syskit Point can send the following types of events:
ProvisioningStarted
Triggered when the Provisioning process starts
ProvisioningCompleted
Triggered when the Provisioning process completes.
ProvisioningFailed
Triggered when the Provisioning process fails.
Below, you can find examples for all types:
Response
Successful registration of the webhook endpoint results in response status 200.
Webhook Events
Syskit Point sends a POST request to the registered webhook endpoint URL. The event object has the following body structure:
Each webhook event also sends two headers:
Signature: Contains the message signature created using the hashing algorithm provided in the Algorithm header using a signature key.
Algorithm: The hashing algorithm used to create the message signature.
Signature Validation
To verify the notification was sent by Syskit Point:
Get the signature key via Syskit Point API
Create a signature using the key to compare with the signature in the received event object
To get the signature key, send the following GET request.
GET
{{pointWebAppUrl}}/v1.0/options
Response
Successful request results in response status 200 and provides the Signature Authentication Key.
Create Signature
Below is the code example you can use to create the signature, which can then be compared with the one received in the event object to verify it was sent from Syskit Point.
Last updated