# `Twilio.Conversations.V1.Conversation.WebhookService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/conversations/v1/conversation/webhook_service.ex#L2)

# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
A Scoped Webhook resource manages a set of callback URLs and their configuration for receiving events specific to one conversation.

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

# `create`

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

Create a new webhook scoped to the conversation

Operation: `CreateConversationScopedWebhook` | Tags: ConversationsV1Webhook

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Target` | string |  Values: `webhook`, `trigger`, `studio` |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Configuration.Filters` | array | The list of events, firing webhook event for this Conversation. |
| `Configuration.FlowSid` | string | The studio flow SID, where the webhook should be sent to. |
| `Configuration.Method` | string |  Values: `get`, `post` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `Configuration.ReplayAfter` | integer | The message index for which and it's successors the webhook will be replayed. Not set by default |
| `Configuration.Triggers` | array | The list of keywords, firing webhook event for this Conversation. |
| `Configuration.Url` | string | The absolute url the webhook request should be sent to. |

# `delete`

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

Remove an existing webhook scoped to the conversation

Operation: `DeleteConversationScopedWebhook` | Tags: ConversationsV1Webhook

# `fetch`

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

Fetch the configuration of a conversation-scoped webhook

Operation: `FetchConversationScopedWebhook` | Tags: ConversationsV1Webhook

# `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 scoped to the conversation

Operation: `ListConversationScopedWebhook` | Tags: ConversationsV1Webhook

# `stream`

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

Stream: Retrieve a list of all webhooks scoped to the conversation (lazy auto-pagination).

# `update`

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

Update an existing conversation-scoped webhook

Operation: `UpdateConversationScopedWebhook` | Tags: ConversationsV1Webhook

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Configuration.Filters` | array | The list of events, firing webhook event for this Conversation. |
| `Configuration.FlowSid` | string | The studio flow SID, where the webhook should be sent to. |
| `Configuration.Method` | string |  Values: `get`, `post` |
| `Configuration.Triggers` | array | The list of keywords, firing webhook event for this Conversation. |
| `Configuration.Url` | string | The absolute url the webhook request should be sent to. |

---

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