🎉 Tickety V3 has now been released! Read more →
APIHTTP EventsTicket Events

Move

Triggered when a ticket is moved to a different category

Event Type

"ticket.move"

Description

This event is triggered when a ticket is moved to a different Discord category using the move command.

Payload Structure

Prop

Type

Example Payload

{
  "type": "ticket.move",
  "payload": {
    "ticketId": "TKT-1234",
    "panelId": "support-panel",
    "channel": {
      "id": "1140972530400776294",
      "name": "ticket-0001"
    },
    "creatorId": "713115896805064856",
    "openDate": "2024-01-18T15:30:00.000Z",
    "oldCategoryId": "1140123456789012345",
    "newCategoryId": "1140987654321098765"
  }
}

Example Usage

app.post('/webhook', (req, res) => {
  const { type, payload } = req.body;

  if (type === 'ticket.move') {
    console.log(`Ticket ${payload.ticketId} moved`);
    console.log(`From category: ${payload.oldCategoryId}`);
    console.log(`To category: ${payload.newCategoryId}`);
    
    // Track category changes
    await trackCategoryMove({
      ticketId: payload.ticketId,
      oldCategory: payload.oldCategoryId,
      newCategory: payload.newCategoryId,
    });
  }

  res.status(200).send('OK');
});

Use Cases

  • Monitor ticket organization and categorization
  • Track workflow stages via category changes
  • Update external systems with new ticket locations
  • Analyze ticket routing patterns

On this page