Get contacts count

GET {{baseUrl}}/v1/contacts/count?viewId=<long>

This API displays the count for the number of contacts in a custom view

OAuth Scope

  • Desk.contacts.READ

Request Params

KeyDatatypeRequiredDescription
viewIdstringCustom view ID
startsWithstringDisplays the number of contacts whose first name or last name begins with the letter you specify. Displays the total number of contacts if you do not specify a letter.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

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