Create a new webhook subscription to notify your specified target URL about events happening within PassEntry.
cURL
curl --request POST \ --url https://api.passentry.com/api/v1/webhook-subscriptions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "webhookSubscription": { "url": "https://example.com/webhook", "enabled": true, "subscribedEvents": [ "passInstalled", "passRemoved" ] } } '
{ "data": { "id": "01983282-53cf-7e16-b5e1-dd0de4ce02fa", "type": "webhookSubscription", "attributes": { "url": "https://example.com/webhook", "secretKey": "a2e2c04657b924390d2a2623439c65734d07e0f8", "enabled": true, "scopeType": "organisation", "scopeName": "Test Organisation", "subscribedEvents": [ "passInstalled", "passRemoved" ] } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Webhook subscription request configuration
Show child attributes
Webhook subscription created successfully
Was this page helpful?