Documentation
Learn TicketsX faster
Setup guides, the full command reference, Premium features, and the REST API in one place.
Add a Participant
POST
/<guild_id>/api/tickets/<ticket_id>/participantsGrant a user or role access to a ticket channel. The target receives read and send permissions in the ticket.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| target_id | string | required | Discord user ID or role ID to add. |
| target_type | string | required | Type of target. Either user or role. |
Example request
curl -X POST \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"target_id":"111222333","target_type":"user"}' \
https://api.ticketsx.xyz/<guild_id>/api/tickets/<ticket_id>/participants