# Search emails **GET /extraction/case/emails/search** Searches the emails in the mailboxes linked to the caller's extraction code. Bodies are not included. Asking for a mailbox outside that set returns 403. The firm's tags are not included. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### 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) - **searchText** (string) Text search applied to all indexed 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. - **folders** (array[string]) - **domains** (array[string]) Filter by participant domain(s) (part after @), any-of. Case-insensitive. Requires the `domains` field on the emailtext Atlas index. - **excludeDomains** (array[string]) Exclude items whose domain(s) match any of these (any-of). Case-insensitive. Must not overlap `domains`. - **tags** (array[string]) - **excludeTags** (array[string]) Exclude items carrying any of these tag ids. Must not overlap `tags`. - **untagged** (boolean) When truthy (1/true), return only emails with no tags attached. Takes precedence over the `tags` filter. - **participants** (array[string]) Filter by participant email address(es), any-of. - **excludeEmails** (array[string]) Exclude items whose participant address matches any of these (any-of). Must not overlap `participants`. - **startDate** (string(date-time)) Only return emails whose `date` is at/after this instant (inclusive). Accepts an ISO-8601 date-time. - **endDate** (string(date-time)) Only return emails whose `date` is at/before this instant (inclusive). Accepts an ISO-8601 date-time. - **sourceEmails** (array[string]) - **sortBy** (string) ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)