Create a subscription linking a subscriber (asset, connector, agent) to a webhook.
Wires a subscriber to events arriving on this webhook — once created, every inbound delivery for the webhook is fanned out to the subscriber (e.g. firing an agent trigger). Multiple subscribers can share a webhook; the request body says which subscriber kind and which event filter to apply. Detach via `DELETE WebhookSubscriptionItem`.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The webhook ID to subscribe to.
uuidThe tenant identifier
The subscription configuration.
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/subscriptions" \ -H "Content-Type: application/json" \ -d '{ "subscriberType": "string", "subscriberId": "string" }'{
"id": "string",
"webhookId": "string",
"subscriberType": "string",
"subscriberId": "string",
"eventFilter": "string",
"config": {},
"createdAt": 0,
"modifiedAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Delete a webhook subscription.
Detaches one subscriber from the webhook; the webhook itself and any other subscribers are untouched. The subscriber stops receiving events on the next inbound delivery. To remove the webhook entirely, use `DELETE WebhookItem` instead.
Handles an inbound webhook call from an external provider
External-system entry point — the URL `{webhookProvider}/{webhookId}` is what you paste into the provider's webhook config. The webhook ID itself acts as the bearer credential; treat it as a secret. The handler dispatches the raw request to every matching subscription and either returns the provider's required synchronous acknowledgement (200 with a body) or 204 if none is needed. Use `POST WebhookInboundSigned` instead for providers that authenticate by HMAC signature.