Ticket
All the endpoints that can be called on the Ticket controller.
Endpoints that require the TICKET_READ permission:
GETindexGETitem
Endpoints that require the TICKET_CREATE permission:
POSTindex
Endpoints that require the TICKET_UPDATE permission:
PUTitemPOSTsetPriority
Endpoints that require the TICKET_DELETE permission:
DELETEitemDELETEmulti
Endpoints that require the SET_STATUS permission:
POSTsetStatusPUTsolveUnfinishedTickets
Endpoints that require the TICKET_BATCH permission:
POSTbatch
Returns all tickets with optional filters such as search queries, views and result limits.
Successful response
GET /api/v2/ticket HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Creates a new empty ticket.
Data can be added directly, but also through other /ticket endpoints.
type: number
type: number
type: ^inbound|outbound$
type: string
type: string = ' '
type: string
type: string
type: number = 0
type: number = null
Successful response
POST /api/v2/ticket HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 156
{
"brandID": "text",
"channelID": "text",
"direction": "text",
"from": "text",
"fromName": "text",
"to": "text",
"title": "text",
"assignedGroupID": "text",
"formID": "text"
}Successful response
Returns all the data of this ticket.
Successful response
GET /api/v2/ticket/{ticketID} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Updates the fields of this ticket.
type: string = null
The external primary ID of the customer this ticket belongs to.
type: string = null
type: ^(solved|closed)$ = null
Successful response
PUT /api/v2/ticket/{ticketID} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 59
"externalPrimaryID='text'&title='text'&status='text'"Successful response
Deletes all the data of this ticket.
Successful response
DELETE /api/v2/ticket/{ticketID} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Sets the status of the tickets given in an array.
type: ^(new|open|pending|holding|solved|closed)$
type: number
Successful response
POST /api/v2/ticket/setStatus HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 38
{
"status": "text",
"ticketIDs[]": "text"
}Successful response
Sets the priority of the tickets given in an array.
type: ^(low|medium|high|urgent)$
type: number
Successful response
POST /api/v2/ticket/setPriority HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 40
{
"priority": "text",
"ticketIDs[]": "text"
}Successful response
Unlinks the customer from the ticket provided.
type: number
Successful response
POST /api/v2/ticket/unlinkCustomerFromTicket HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 19
{
"ticketID": "text"
}Successful response
Performs miscellaneous actions on tickets given in an array.
type: ^[0-9, ]+$
Can be multiple ID's comma-separated (space allowed).
type: string
Needs to be an action type.
type: string
Needs to be the value the action would use.
Successful response
POST /api/v2/ticket/batch HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 79
{
"TicketIDs": "text",
"actions[0][actionType]": "text",
"actions[0][value]": "text"
}Successful response
Last updated