πŸ›…Ticket APIs

The Ticket APIs section includes endpoints for creating, retrieving, and managing support tickets. Users can open new tickets, reply to existing tickets, and update ticket replies through these endpoints. This section helps in maintaining efficient communication and issue resolution between users and support teams. The JWT token and API key must be included in the headers of these requests to ensure proper authorization.

Get All Tickets

  • Endpoint: GET /api/ticket

  • Headers:

    Authorization: Bearer your_jwt_token_here
    apikey: your_api_key_here
    Content-Type: application/json
  • Response:

    {
      "data": [ ... ]
    }

Store Ticket

  • Endpoint: POST /api/ticket-store

  • Headers:

    Authorization: Bearer your_jwt_token_here
    apikey: your_api_key_here
    Content-Type: application/json
  • Request Body:

    {
      "subject": "Ticket Subject",
      ...
    }
  • Response:

    {
      "message": "Ticket created successfully",
      "data": { ... }
    }

Reply to Ticket

  • Endpoint: POST /api/ticket-reply

  • Headers:

  • Request Body:

  • Response:

Edit Ticket Reply

  • Endpoint: GET /api/ticket-reply-edit/{id}

  • Headers:

  • Response:

Update Ticket Reply

  • Endpoint: POST /api/ticket-reply-update/{id}

  • Headers:

  • Request Body:

  • Response:

Last updated