Skip to main content
POST
/
channels
/
{channel_id}
/
webhooks
Create webhook
curl --request POST \
  --url https://api.fluxer.app/v1/channels/{channel_id}/webhooks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "avatar": "aSDinaTvuI8gbWludGxpZnk="
}
'
{
  "id": "<string>",
  "guild_id": "<string>",
  "channel_id": "<string>",
  "name": "<string>",
  "token": "<string>",
  "user": {
    "id": "<string>",
    "username": "<string>",
    "discriminator": "<string>",
    "global_name": "<string>",
    "avatar": "<string>",
    "avatar_color": 1073741823,
    "flags": 1073741823,
    "bot": true,
    "system": true
  },
  "avatar": "<string>"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

channel_id
string<snowflake>
required

The ID of the channel

Body

application/json
name
string
required

The name of the webhook

avatar
string<byte> | null

The avatar image as a base64-encoded data URI

Response

Success

id
string
required

The unique identifier (snowflake) for the webhook

guild_id
string
required

The ID of the guild this webhook belongs to

channel_id
string
required

The ID of the channel this webhook posts to

name
string
required

The display name of the webhook

token
string
required

The secure token used to execute the webhook

user
object
required
avatar
string | null

The hash of the webhook avatar image