Count Tickets in Views

GET {{baseUrl}}/api/v2/views/count_many?ids=<string>

Returns the ticket count of each view in a list of views. Accepts up to 20 view ids per request. For the ticket count of a single view, see Count Tickets in View.

Only returns values for personal and shared views accessible to the user performing the request.

This endpoint is rate limited to 6 requests every 5 minutes.

Allowed For

  • Agents

Request Params

KeyDatatypeRequiredDescription
idsstring(Required) List of view's ids separated by commas.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;view_counts&quot;:[{&quot;fresh&quot;:true,&quot;pretty&quot;:&quot;~700&quot;,&quot;url&quot;:&quot;https://company.zendesk.com/api/v2/views/25/count.json&quot;,&quot;value&quot;:719,&quot;view_id&quot;:25},{&quot;fresh&quot;:false,&quot;pretty&quot;:&quot;...&quot;,&quot;url&quot;:&quot;https://company.zendesk.com/api/v2/views/78/count.json&quot;,&quot;value&quot;:null,&quot;view_id&quot;:78}]}