# Get Webhooks

> Get all webhooks in a channel.

- ID: `get_webhooks`
- Type: Loop
- Category: [Webhooks](https://inventor.bot/docs/reference/blocks/webhooks.md)

- Loop block: write `for item := range get_webhooks(Args{...}) { ... }` and read the current item's outputs from `item`. See loops.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel to get webhooks from. |  |
| `body` |  | Blocks to run for each webhook. | blocks: `func() { ... }` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `iteration_number` | Current iteration (1-based). | e.g. `"1"` |
| `total_iterations` | Total number of iterations. | e.g. `"3"` |
| `webhook_id` | ID of the webhook. |  |
| `webhook_name` | Name of the webhook. |  |
| `webhook_channel_id` | Channel ID the webhook belongs to. |  |
| `webhook_guild_id` | Server ID the webhook belongs to. |  |
| `webhook_token` | Token of the webhook (may be empty). |  |

**Example**

```go
for webhook := range get_webhooks(Args{channel_id: trigger.channel_id}) {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Webhook ID: " + webhook.webhook_id,
	})
}
```