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-messageSend a webhook-styled message into a ticket channel. Useful for posting automated notifications, status updates, or messages from external systems.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | optional | Plain text message content. |
| embed_title | string | optional | Title for an optional embed. |
| embed_description | string | optional | Description body for the embed. |
| embed_color | string | optional | Embed colour as a hex string or Discord colour name. |
| username | string | optional | Override the webhook’s display username. |
| avatar | string | 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-messageExample response
{
"success": true,
"message_id": "1234567890123456789"
}