Guía para desarrolladores

Aprende cómo configurar y utilizar nuestras API abiertas,
¡para integrar libremente Deskero con cualquier otra solución de software!

Ticket areas

List

Get a paginated list of ticket areas

GET https://api.deskero.com/ticketArea/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/ticketArea/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/ticketArea/list?page=2",
		"records": [
			See ticket area detail
		]
	}
}

Search

Search a ticket area

GET https://api.deskero.com/ticketArea/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
{{fieldName}} a value to search false

Example request

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

Example response

{
	"ticket": {
		"totalRecords": 1,
		"recordsPerPage": 25,
		"previousQuery": null,
		"nextQuery": null,
		"records": [
			See ticket area detail
		]
	}
}

Detail

Show a single ticket area

GET https://api.deskero.com/ticketArea/{{ticketAreaId}}

Headers

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

Example request

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

Example response

{
	"id": "50913dd4c2e67797f82e5bb2",
	"area": "billing",
	"labels": {
		"en": "billing",
		"it": "fatturazione",
		"fr": "facturation",
		"es": "facturación"
		}
}

Create

Create a new ticket area

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

Headers

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

Example request

$ curl https://api.deskero.com/ticketArea/insert \ 
	-v \
	-H "Content-area: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef" \
	-X POST \
	-d '{
		"area": "billing",
		"labels": {
			"en": "billing",
			"it": "fatturazione",
			"fr": "facturation",
			"es": "facturación"
		}
	}'

Example response

Created ticket area id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Update

Update a ticket area

PUT https://api.deskero.com/ticketArea/update/{{ticketAreaId}}

Headers

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

Example request

$ curl https://api.deskero.com/ticketArea/update/50913dd4c2e67797f82e5bb2 \ 
	-v \
	-H "Content-area: application/json" \
	-H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
	-H "clientId: 51f01687e4b094c81d7b8bcdellef" \
	-X PUT \
	-d '{
		"area": "billing",
		"labels": {
			"en": "billing",
			"it": "fatturazione",
			"fr": "facturation",
			"es": "facturación"
		}
	}'

Example response

Updated ticket area id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Delete

Delete a ticket area

DELETE https://api.deskero.com/ticketArea/delete/{{ticketAreaId}}

Headers

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

Example request

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

Example response

Deleted ticket area id

{
	"id": "50913dd4c2e67797f82e5bb2"
}

Fields

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