Developer's Guide

Learn how to configure and use our open APIs,
to freely integrate Deskero with any other software solution!

Ticket groups

List

Get a paginated list of ticket groups

GET https://api.deskero.com/ticketGroup/list

Headers

Header Value
Authorization Bearer {{bearer}}
Accept application/json
clientId {{clientId}}

URL parameters

Field name Value Required Default
page int value for page to show false 1

Example request

$ curl https://api.deskero.com/ticketGroup/list \ 
	-v \
	-H "Accept: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef"

Example response

{
	"ticket": {
		"totalRecords": 50,
		"recordsPerPage": 25,
		"previousQuery": null,
		"nextQuery": "https://api.deskero.com/ticketGroup/list?page=2",
		"records": [
			See ticket group detail
		]
	}
}

Detail

Show a single ticket group

GET https://api.deskero.com/ticketGroup/{{ticketGroupId}}

Headers

Header Value
Authorization Bearer {{bearer}}
Accept application/json
clientId {{clientId}}

Example request

$ curl https://api.deskero.com/ticketGroup/50913dd4c2e67797f82e5bb2 \ 
	-v \
	-H "Accept: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef"

Example response

{
	"id": "50913dd4c2e67797f82e5bb2",
	"group": "marketing",
	"labels": {
		"en": "marketing",
		"it": "marketing",
		"fr": "commercialisation",
		"es": "márketing"
		}
}

Create

Create a new ticket group

POST https://api.deskero.com/ticketGroup/insert

Headers

Header Value
Authorization Bearer {{bearer}}
Content-Type application/json
clientId {{clientId}}

Example request

$ curl https://api.deskero.com/ticketGroup/insert \ 
	-v \
	-H "Content-group: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef" \
	-X POST \
	-d '{
		"group": "marketing",
		"labels": {
			"en": "marketing",
			"it": "marketing",
			"fr": "commercialisation",
			"es": "márketing"
		}
	}'

Example response

Created ticket group id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Update

Update a ticket group

PUT https://api.deskero.com/ticketGroup/update/{{ticketGroupId}}

Headers

Header Value
Authorization Bearer {{bearer}}
Content-Type application/json
clientId {{clientId}}

Example request

$ curl https://api.deskero.com/ticketGroup/update/50913dd4c2e67797f82e5bb2 \ 
	-v \
	-H "Content-group: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef" \
	-X PUT \
	-d '{
		"group": "marketing",
		"labels": {
			"en": "marketing",
			"it": "marketing",
			"fr": "commercialisation",
			"es": "márketing"
		}
	}'

Example response

Updated ticket group id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Delete

Delete a ticket group

DELETE https://api.deskero.com/ticketGroup/delete/{{ticketGroupId}}

Headers

Header Value
Authorization Bearer {{bearer}}
Content-Type application/json
clientId {{clientId}}

Example request

$ curl https://api.deskero.com/ticketGroup/delete/50913dd4c2e67797f82e5bb2 \ 
	-v \
	-H "Content-group: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef" \
	-X DELETE

Example response

Deleted ticket group id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Fields

Field name Description
id auto-generated id
group unique group name
labels group name localization