Webhooks
Create Webhook Endpoint
client.webhooks.create(WebhookCreateParams { event_types, name, url } body , RequestOptionsoptions ?): WebhookEndpointWithSecret { id, created_at, event_types, 6 more }
POST
/webhook_endpointsDelete Webhook Endpoint
client.webhooks.delete(stringwebhookEndpointID , RequestOptionsoptions ?): DeletedWebhookEndpoint { id, deleted, object }
DELETE
/webhook_endpoints/{webhook_endpoint_id}List Webhook Endpoints
client.webhooks.list(WebhookListParams { after, limit } query ?, RequestOptionsoptions ?): CursorPage<WebhookEndpoint { id, created_at, event_types, 5 more } >
GET
/webhook_endpointsRetrieve Webhook Endpoint
client.webhooks.retrieve(stringwebhookEndpointID , RequestOptionsoptions ?): WebhookEndpoint { id, created_at, event_types, 5 more }
GET
/webhook_endpoints/{webhook_endpoint_id}Rotate Webhook Endpoint Signing Secret
client.webhooks.rotateSecret(stringwebhookEndpointID , WebhookRotateSecretParams { keep_old_secret_active_for_24_hours } body ?, RequestOptionsoptions ?): WebhookEndpointWithSecret { id, created_at, event_types, 6 more }
POST
/webhook_endpoints/{webhook_endpoint_id}/rotate_secretTest Webhook Endpoint
client.webhooks.test(stringwebhookEndpointID , WebhookTestParams { event_type } body , RequestOptionsoptions ?): WebhookEndpointTestResult { event_type, object, status_code, 2 more }
POST
/webhook_endpoints/{webhook_endpoint_id}/testUpdate Webhook Endpoint
client.webhooks.update(stringwebhookEndpointID , WebhookUpdateParams { event_types, name, url } body ?, RequestOptionsoptions ?): WebhookEndpoint { id, created_at, event_types, 5 more }
POST
/webhook_endpoints/{webhook_endpoint_id}WebhooksEvent Types
List Webhook Event Types
client.webhooks.eventTypes.list(RequestOptionsoptions ?): WebhookEventTypeList { data, object }
GET
/webhook_event_types