# Count emails per tag **GET /local-emails/{caseId}/tags-count** Returns how many emails in the case carry each tag, for the given filters. On a case shared with opposing counsel, each side counts only its own tags. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) ### Query parameters - **page** (number) - **perPage** (number) - **skip** (number) If skip/limit not provided, page/perPage will take precedence - **limit** (number) If skip/limit not provided, page/perPage will take precedence - **sortOrder** (string) - **sourceEmail** (string) Source mailbox email to scope the counts to (the provider email). - **tagOrigin** (string) Filter tags by how they were created; omit for all origins. - **sortBy** (string) Sort by email count or alphabetically by tag name. Default order is desc for count and asc for name; override with sortOrder. - **searchText** (string) Case-insensitive substring match on tag name. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)