Webhooks

Executes the webhook by sending a message to its configured channel. If the wait query parameter is true, returns the created message object; otherwise returns a 204 status with no content.

post/webhooks/{webhook_id}/{token}

Request

  • Base URL: https://web.fluxer.app/api/v1
  • URL: https://web.fluxer.app/api/v1/webhooks/{webhook_id}/{token}
  • Auth: none required

Path parameters

string snowflake required
OR
integer required

The ID of the webhook

tokenstring required

The webhook token

Query parameters

waitstring

Whether to wait for the webhook response

thread_idstring nullable

ID of a thread in the webhook channel to target instead of the channel itself

Request body

contentstring

The message content. Non-premium users can send up to 2000 characters; premium users, bots, and webhooks can send up to 4000 characters.

flagsinteger

The bitwise flags of the original message

ttsboolean

Whether this is a text-to-speech message

usernamestring nullable

Override the default username of the webhook for this message

avatar_urlstring nullable

Override the default avatar URL of the webhook for this message

thread_namestring

Name of the post to create when the webhook belongs to a forum or media channel (1-100 characters)

Response

Success

idstring snowflake required
channel_idstring snowflake required
webhook_idstring snowflake
type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 18 | 19 | 21 required

The type of message

flagsinteger required

The bitwise flags of the original message

contentstring required

The text content of the message

timestampstring date-time required

The ISO 8601 timestamp of when the message was created

edited_timestampstring date-time nullable

The ISO 8601 timestamp of when the message was last edited

pinnedboolean required

Whether the message is pinned

mention_everyoneboolean required

Whether the message mentions @everyone

ttsboolean required

Whether the message was sent as text-to-speech

mention_rolesstring[] required

The role IDs mentioned in the message

noncestring nullable

A client-provided value for message deduplication

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added to the ////// response property anyOf list for the response status

    • info

      added to the /// response property anyOf list for the response status

    • info

      added to the ///////// response property anyOf list for the response status

    • info

      added to the ////// response property anyOf list for the response status

    • info

      added to the //////// response property anyOf list for the response status

    • info

      added to the ///// response property anyOf list for the response status

    • info

      added to the /////////// response property anyOf list for the response status

    • info

      added to the //////// response property anyOf list for the response status

    • info

      removed from the ////// response property anyOf list for the response status

    • info

      removed from the /// response property anyOf list for the response status

    • info

      removed from the ///////// response property anyOf list for the response status

    • info

      removed from the ////// response property anyOf list for the response status

    • info

      removed from the //////// response property anyOf list for the response status

    • info

      removed from the ///// response property anyOf list for the response status

    • info

      removed from the /////////// response property anyOf list for the response status

    • info

      removed from the //////// response property anyOf list for the response status