For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Ticket API

The Add Ticket API section allows users to create new tickets from external sources within the Kapture environment.

Create Ticket.

POST https://<sub domain>.kapturecrm.com/add-ticket-from-other-source.html/v.2.0

NOTE: Please replace with your sub domain name in the API.

Authentication:

To access this API endpoint, you need to include your API key in the request headers. For authentication, use the following header:

Basic <Your Token>

Request Body

The request body should be a JSON object containing the details of the ticket to be added. Here are the list of parameters.

Name
Mandatory
Type
Description

title*

Yes

string

The title of the ticket

ticket_details

No

string

The description of the ticket

due_date

No

date

The closure date of the ticket

email_id

No

string

The Email Id of the customer to be tagged in the ticket

[
    {
        "title": "",
        "ticket_details": "",
        "due_date": "",
        "email_id": "xyz@gmail.com"
    }
]

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 added ticket. If successful, the response will include the ticket ID and other relevant information.

Response
Response Messages

{ ..., "status": "success"}

Ticket created successfully.

{"message": "Invalid Auth Key","status": "failed"}

Authorization key is either not passed in header, or incorrect, or expired/disabled.

{"message": "title is missing", "status": "failed"}

title field is either missing or empty in request body.

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