Documentation

Learn TicketsX faster

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

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
contentstringoptionalPlain text message content.
embed_titlestringoptionalTitle for an optional embed.
embed_descriptionstringoptionalDescription body for the embed.
embed_colorstringoptionalEmbed colour as a hex string or Discord colour name.
usernamestringoptionalOverride the webhook’s display username.
avatarstringoptionalOverride 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"
}