# `Jido.Chat.WebhookRequest`
[🔗](https://github.com/agentjido/jido_chat/blob/v1.0.0/lib/jido/chat/webhook_request.ex#L1)

Typed webhook request envelope used for adapter verification and parsing.

# `t`

```elixir
@type t() :: %Jido.Chat.WebhookRequest{
  adapter_name: nil | nil | atom(),
  headers: map(),
  metadata: map(),
  method: binary(),
  path: nil | nil | binary(),
  payload: map(),
  query: map(),
  raw: nil | nil | any()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Builds webhook request from serialized data.

# `header`

```elixir
@spec header(t(), String.t()) :: String.t() | nil
```

Gets a normalized request header value.

# `new`

```elixir
@spec new(map()) :: t()
```

Creates a typed webhook request from raw map or HTTP-style request fields.

# `schema`

Returns the Zoi schema for WebhookRequest.

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Serializes webhook request into plain map with type marker.

---

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