Webhooks

Create webhook

Creates a new webhook in the specified channel with the provided name and optional avatar. Returns the newly created webhook object including its ID and token.

post/channels/{channel_id}/webhooks

Path parameters

string snowflake required
OR
integer required

The ID of the channel

Request body

namestring required

The name of the webhook

avatarstring

Response

Success

idstring snowflake required
guild_idstring snowflake required
channel_idstring snowflake required
namestring required

The display name of the webhook

avatarstring nullable

The hash of the webhook avatar image

tokenstring required

The secure token used to execute the webhook

Changes