Get Ticket API
The Get Ticket API section allows users to get the existing ticket information sourced from external systems. Through this ,users can seamlessly fetch the details against the ticket by the ticket id.
Get Ticket.
POST
https://<sub domain>.kapturecrm.com/search-ticket-by-ticket-id.html/v.2.0
Authentication:
To access this API endpoint, you need to include your API key in the request headers. For authentication, use the following header:
Request Body
The request body should be a JSON object containing the details of the ticket to be fetched. Here are the list of parameters.
Name | Mandatory | Type | Description |
---|---|---|---|
ticket_id | Yes | string | Ticket id to fetch the details for, if multiple please put comma separated |
Please map in the request body if there's any extra associate body according to your use case.
Response Body
The API responds with a JSON object containing the details of the fetched ticket. If successful, the response will include the ticket ID and the other updated relevant information.
Response | Response Messages |
---|---|
{ ..., "status": "success"} | Ticket fetched successfully. |
{"message": "Invalid Auth Key","status": "failed"} | Authorization key is either not passed in header, or incorrect, or expired/disabled |
{ "message": "Invalid Json.", "status": "failed" } | Most probably, data may in array format. It should be in object format. |
{ "message": "ticket_ids are missing.", "status": "failed" } | Either ticket_ids field is missing or empty. |
Error Codes
Error Codes | Description |
---|---|
400 | Bad Request - Invalid parameters or missing data |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource or endpoint not found |
500 | Internal Server Error - Server-side issue |
Example of a working curl
Last updated