# Count matches for several searches **POST /local-emails/{caseId}/search-counts** For each boolean search query, and each email address, returns how many emails in the case match (only in one mailbox when providerId is given; on a case shared with opposing counsel, only in threads the caller may see). A malformed query gets an error on its own row instead of failing the whole request. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) ### Body: application/json (object) - **queries** (array[string]) Boolean query strings. Each is counted independently against the indexed email fields (subject, body, snippet, from/to/cc/bcc). Supports the same AND / OR / NOT / -prefix, parentheses, "quoted phrases" and wildcards as the boolean query parser. - **emails** (array[string]) Email addresses. Each is counted as the number of emails where the address appears as any participant (from/to/cc/bcc), case-insensitive. - **providerId** (string) Optional: narrow the counts to a single email provider (mailbox) within the case. When omitted, counts span the whole case. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)