# `Twilio.Verify.V2.Service.WebhookService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/verify/v2/service/webhook_service.ex#L2)

Service for Webhook API operations.

Operations: `list`, `create`, `fetch`, `update`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Verify.V2.Service.Webhook.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a new Webhook for the Service

Operation: `CreateWebhook` | Tags: VerifyV2Webhook

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `EventTypes` | array | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `FriendlyName` | string | The string that you assigned to describe the webhook. **This value should not contain PII.** |
| `WebhookUrl` | string | The URL associated with this Webhook. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Status` | string |  Values: `enabled`, `disabled` |
| `Version` | string |  Values: `v1`, `v2` |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Delete a specific Webhook.

Operation: `DeleteWebhook` | Tags: VerifyV2Webhook

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Verify.V2.Service.Webhook.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Fetch a specific Webhook.

Operation: `FetchWebhook` | Tags: VerifyV2Webhook

# `list`

```elixir
@spec list(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a list of all Webhooks for a Service.

Operation: `ListWebhook` | Tags: VerifyV2Webhook

# `stream`

```elixir
@spec stream(Twilio.Client.t(), String.t(), map(), keyword()) :: Enumerable.t()
```

Stream: Retrieve a list of all Webhooks for a Service. (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Verify.V2.Service.Webhook.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `UpdateWebhook` | Tags: VerifyV2Webhook

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `EventTypes` | array | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `FriendlyName` | string | The string that you assigned to describe the webhook. **This value should not contain PII.** |
| `Status` | string |  Values: `enabled`, `disabled` |
| `Version` | string |  Values: `v1`, `v2` |
| `WebhookUrl` | string | The URL associated with this Webhook. |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
