# Webhooks
Types:
```python
from openai.types.webhooks import (
BatchCancelledWebhookEvent,
BatchCompletedWebhookEvent,
BatchExpiredWebhookEvent,
BatchFailedWebhookEvent,
DeletedWebhookEndpoint,
EvalRunCanceledWebhookEvent,
EvalRunFailedWebhookEvent,
EvalRunSucceededWebhookEvent,
FineTuningJobCancelledWebhookEvent,
FineTuningJobFailedWebhookEvent,
FineTuningJobSucceededWebhookEvent,
LiveCallIncomingWebhookEvent,
LiveTransportIncomingWebhookEvent,
RealtimeCallIncomingWebhookEvent,
ResponseCancelledWebhookEvent,
ResponseCompletedWebhookEvent,
ResponseFailedWebhookEvent,
ResponseIncompleteWebhookEvent,
SafetyAlertCreatedWebhookEvent,
SafetyDeactivationIssuedWebhookEvent,
SafetyOrgAlertCreatedWebhookEvent,
SafetyWarningIssuedWebhookEvent,
UnwrapWebhookEvent,
WebhookEndpoint,
WebhookEndpointList,
WebhookEndpointTestResult,
WebhookEndpointWithSecret,
WebhookEventTypeList,
)
```
Methods:
- client.webhooks.create(\*\*params) -> WebhookEndpointWithSecret
- client.webhooks.retrieve(webhook_endpoint_id) -> WebhookEndpoint
- client.webhooks.update(webhook_endpoint_id, \*\*params) -> WebhookEndpoint
- client.webhooks.list(\*\*params) -> SyncCursorPage[WebhookEndpoint]
- client.webhooks.delete(webhook_endpoint_id) -> DeletedWebhookEndpoint
- client.webhooks.rotate_secret(webhook_endpoint_id, \*\*params) -> WebhookEndpointWithSecret
- client.webhooks.test(webhook_endpoint_id, \*\*params) -> WebhookEndpointTestResult
## EventTypes
Methods:
- client.webhooks.event_types.list() -> WebhookEventTypeList