List all contracts count

GET {{baseUrl}}/v1/contracts/count?viewId=<long> &departmentId=<String>

This API lists the number of contracts made with the account.

OAuth Scope

  • Desk.settings.READ

Request Params

KeyDatatypeRequiredDescription
viewIdstringCustom view Id
departmentIdstringMandatory param to fetch the count of the contracts for a given ID of a department. You can also provide department as allDepartment to fetch the count of the contracts from all the departments
ownerIdstringDisplays the number of contracts of only a particular owner

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;count&quot;:&quot;10&quot;}