Documentation

Learn TicketsX faster

Setup guides, the full command reference, Premium features, and the REST API in one place.

13.8

Send a Webhook Message

POST/<guild_id>/api/tickets/<ticket_id>/webhook-message

Send a webhook-styled message into a ticket channel. Useful for posting automated notifications, status updates, or messages from external systems.

Request Body

NameTypeRequiredDescription
contentstring
optional
Plain text message content.
embed_titlestring
optional
Title for an optional embed.
embed_descriptionstring
optional
Description body for the embed.
embed_colorstring
optional
Embed colour as a hex string or Discord colour name.
usernamestring
optional
Override the webhook’s display username.
avatarstring
optional
Override the webhook’s avatar with an image URL.

At least one of content, embed_title, or embed_description is required. All other fields are optional and fall back to defaults when omitted.

Example request
curl -X POST \
  -H "Authorization: Bearer <API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"content":"Deployment complete","embed_title":"Status Update","embed_description":"v2.4.1 is now live","embed_color":"#5865F2","username":"Deploy Bot"}' \
  https://api.ticketsx.xyz/<guild_id>/api/tickets/<ticket_id>/webhook-message
Example response
{
  "success": true,
  "message_id": "1234567890123456789"
}