Webhook
A Webhook is a URL on your server that Loby sends webhook events to, for the event types it lists. It belongs to your museum and has the mode (live or test) of the API key that created it.
| Property | Type | Default | Description | Example |
|---|---|---|---|---|
id* | string (UUIDv4) | Unique identifier | "9b2e4c6a-1d3f-4a5b-8c7d-0e1f2a3b4c5d" | |
createdAt | string | Timestamp when the webhook was created | "2026-11-03T09:00:00.000Z" | |
updatedAt | string | Timestamp when the webhook was last updated | "2026-11-03T09:00:00.000Z" | |
url* | string | Where Loby sends webhook events: a public https URL with a host name, at most 2048 characters | "https://example.com/loby/webhooks" | |
eventTypes* | array of string | The event types the webhook receives | ["membership.created", "membership.updated"] | |
description | string | null | Your own note on what the webhook is for | "CRM sync" |
enabled | boolean | true | Whether Loby sends webhook events to it | true |
secret | string | The signing secret. Only in the response to Create Webhook | "whsec_EMI9soWck0iMI4fwI5p0TKobgZnsWf4yt1sGDJwQ6Xg=" |
{ "id": "9b2e4c6a-1d3f-4a5b-8c7d-0e1f2a3b4c5d", "createdAt": "2026-11-03T09:00:00.000Z", "updatedAt": "2026-11-03T09:00:00.000Z", "url": "https://example.com/loby/webhooks", "eventTypes": ["membership.created", "membership.updated", "membership.deleted"], "description": "CRM sync", "enabled": true }