const endpoint = await luma.webhooks.get("whk-abc123");
console.log(endpoint.url);
{
"api_id": "whk-abc123",
"url": "https://myapp.com/api/luma-webhook",
"event_types": ["guest.updated", "guest.registered"]
}
Webhooks
Get webhook endpoint
Retrieve a single Luma webhook endpoint by its ID with luma.webhooks.get(), returning the URL, subscribed event types, and active status.
const endpoint = await luma.webhooks.get("whk-abc123");
console.log(endpoint.url);
{
"api_id": "whk-abc123",
"url": "https://myapp.com/api/luma-webhook",
"event_types": ["guest.updated", "guest.registered"]
}
SDK
luma.webhooks.get(id: string): Promise<Webhook>
Returns a single webhook endpoint by ID.
const endpoint = await luma.webhooks.get("whk-abc123");
console.log(endpoint.url);
{
"api_id": "whk-abc123",
"url": "https://myapp.com/api/luma-webhook",
"event_types": ["guest.updated", "guest.registered"]
}
Parameters
string
required
Webhook endpoint
api_id from webhooks.create() or webhooks.list().Test it
Use a webhook ID from your account — runwebhooks.list() to find one:
const endpoint = await luma.webhooks.get("whk-abc123");
console.log(endpoint.url);