# Get Server Webhooks

> Get all webhooks in a server.

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

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | ID of the server 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). |  |
| `webhook_type` | Type of the webhook (1 = Incoming, 2 = Channel Follower, 3 = Application). |  |
| `webhook_application_id` | Application ID that created the webhook (if applicable). |  |

**Example**

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