# Create Webhook

> Create a webhook in a channel.

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel to create the webhook in. |  |
| `webhook_name` | yes | Name of the webhook to create. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `webhook_id` | ID of the created webhook. |  |
| `webhook_name` | Name of the created webhook. |  |
| `webhook_token` | Token of the created webhook. |  |

**Example**

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