FruxonDocs
IntegrationsWebhooks

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`.

POST
/v1/tenants/{tenant}/webhooks/{webhookId}/subscriptions
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

webhookId*string

The webhook ID to subscribe to.

Formatuuid
tenant*string

The tenant identifier

The subscription configuration.

subscriberType*string|null
subscriberId*string|null
eventFilter?string|null
config?|null
[key: string]?never

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
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}