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

channel_idstring snowflake required

The ID of the channel

Request body

namestring required

The name of the webhook

avatarstring byte

Base64-encoded image data

Response

Success

idstring required

The unique identifier (snowflake) for the webhook

guild_idstring required

The ID of the guild this webhook belongs to

channel_idstring required

The ID of the channel this webhook posts to

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

No recorded changes to this endpoint across all 1 revision of this API.