Get the list of new tickets

API Method: GET /api/tickets/new

Description:

This endpoint retrieves a list of all new or unresolved support or service tickets associated with the current authenticated client in the banking application. New tickets are typically those that have been recently created and are still in an open or unaddressed status, awaiting further action or resolution. This method helps clients track any ongoing issues or requests that have not yet been resolved.

Request:

  • HTTP Method: GET
  • Endpoint: /api/tickets/new
  • Authentication: Requires authentication (e.g., Bearer token or session ID) to ensure that only the authenticated client can access their ticket information.

Query Parameters:

None. This request retrieves new and unresolved tickets for the current client.

Request Headers:

  • Authorization: Bearer <token> (required) — The token used to authenticate the request.

Response:

  • Status Code: 200 OK — On success, the API returns a list of new or unresolved tickets for the authenticated client.
  • Content-Type: application/json

Possible Errors:

  • 401 Unauthorized: The request was made without proper authentication or with an invalid token.
  • 403 Forbidden: The user does not have permission to access the list of new tickets.
  • 500 Internal Server Error: An error occurred on the server while processing the request.

Example Usage:

curl -X GET /api/tickets/new \
-H "Authorization: Bearer <token>"

This request retrieves a list of all new or unresolved tickets created by the authenticated client, including the status, subject, and priority of each ticket.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!