Ticket
All the endpoints that can be called on the Ticket controller.
Endpoints that require the TICKET_READ
permission:
GET
indexGET
item
Endpoints that require the TICKET_CREATE
permission:
POST
index
Endpoints that require the TICKET_UPDATE
permission:
PUT
itemPOST
setPriority
Endpoints that require the TICKET_DELETE
permission:
DELETE
itemDELETE
multi
Endpoints that require the SET_STATUS
permission:
POST
setStatusPUT
solveUnfinishedTickets
Endpoints that require the TICKET_BATCH
permission:
POST
batch
Returns all tickets with optional filters such as search queries, views and result limits.
The view to get the tickets from.
""
Pattern: ^[0-9a-zA-Z\-\_]+$
""
0
15
no
Possible values: GET /api/v2/ticket HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Accept: */*
No content
Creates a new empty ticket.
Data can be added directly, but also through other /ticket endpoints.
""
0
POST /api/v2/ticket HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 135
{
"brandID": 1,
"channelID": 1,
"direction": "inbound",
"from": "text",
"fromName": "",
"to": "text",
"title": "text",
"assignedGroupID": 0,
"formID": 1
}
No content
Returns all the data of this ticket.
Checks if the ticket is already open. If not, register that it has been opened.
false
Send along this parameter with a value to get the ticket history.
false
GET /api/v2/ticket/{ticketID} HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Accept: */*
No content
Updates the fields of this ticket.
The external primary ID of the customer this ticket belongs to.
PUT /api/v2/ticket/{ticketID} HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 57
"externalPrimaryID='text'&title=''&status='solved'"
No content
Deletes multiple tickets given in an array.
DELETE /api/v2/ticket/multi HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"ticketIDs": [
1
]
}
No content
Sets the status of the tickets given in an array.
POST /api/v2/ticket/setStatus HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 32
{
"status": "new",
"ticketIDs": [
1
]
}
No content
Sets the priority of the tickets given in an array.
POST /api/v2/ticket/setPriority HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 34
{
"priority": "low",
"ticketIDs": [
1
]
}
No content
Unlinks the customer from the ticket provided.
POST /api/v2/ticket/unlinkCustomerFromTicket HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 14
{
"ticketID": 1
}
No content
Performs miscellaneous actions on tickets given in an array.
Can be multiple ID's comma-separated (space allowed).
^[0-9, ]+$
POST /api/v2/ticket/batch HTTP/1.1
Host: {{base_url}}
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 69
{
"TicketIDs": "text",
"actions": [
{
"actionType": "text",
"value": "text"
}
]
}
No content