List account SLAs

GET {{baseUrl}}/api/v1/accounts/:account_id/sla

This API lists a particular number of SLAs associated with an account, based on the limit defined.

OAuth Scope

  • Desk.settings.READ

Request Params

KeyDatatypeRequiredDescription
fromstringIndex number, starting from which the SLAs must be fetched
limitstringNumber of SLAs to list
departmentIdstringID of the department from which the SLAs must be fetched. If you do not pass this parameter in the API request, SLAs from all permitted departments will be listed.
statusstringActivation status of the SLAs. Values allowed are: ACTIVE and INACTIVE

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"data":[{"slaName":"Priority-based SLAs","id":"45794000000419372","isActive":true,"department":{"name":"Tesla","id":"45794000000418059"}},{"slaName":"SLA","id":"45794000000570017","isActive":true,"department":{"name":"BMW","id":"45794000000006907"}},{"slaName":"Silver SLAs","id":"45794000000587464","isActive":true,"department":{"name":"Jaguar","id":"45794000000586067"}}]}