Webhooks
Fetch all webhooks details
client.realtimeKit.webhooks.getWebhooks(stringappId, WebhookGetWebhooksParams { account_id } params, RequestOptionsoptions?): WebhookGetWebhooksResponse { data, success }
GET/accounts/{account_id}/realtime/kit/{app_id}/webhooks
Add a webhook
client.realtimeKit.webhooks.createWebhook(stringappId, WebhookCreateWebhookParams { account_id, events, name, 2 more } params, RequestOptionsoptions?): WebhookCreateWebhookResponse { data, success }
POST/accounts/{account_id}/realtime/kit/{app_id}/webhooks
Fetch details of a webhook
client.realtimeKit.webhooks.getWebhookById(stringappId, stringwebhookId, WebhookGetWebhookByIDParams { account_id } params, RequestOptionsoptions?): WebhookGetWebhookByIDResponse { data, success }
GET/accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}
Replace a webhook
client.realtimeKit.webhooks.replaceWebhook(stringappId, stringwebhookId, WebhookReplaceWebhookParams { account_id, events, name, 2 more } params, RequestOptionsoptions?): WebhookReplaceWebhookResponse { data, success }
PUT/accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}
Edit a webhook
client.realtimeKit.webhooks.editWebhook(stringappId, stringwebhookId, WebhookEditWebhookParams { account_id, enabled, events, 2 more } params, RequestOptionsoptions?): WebhookEditWebhookResponse { data, success }
PATCH/accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}
Delete a webhook
client.realtimeKit.webhooks.deleteWebhook(stringappId, stringwebhookId, WebhookDeleteWebhookParams { account_id } params, RequestOptionsoptions?): WebhookDeleteWebhookResponse { data, success }
DELETE/accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}